i am using SCI communication ( GPIO28, GPIO29 pins as RX and TX). i did not find the below mentioned functions in any Lab Programs.
i have a doubt. is this functions are in-built or the user have to write in the code? how can i receive and send the data? i did not find any function that sends and receives data.
mySci = SCI_init((void *)SCIA_BASE_ADDR, sizeof(SCI_Obj));
void scia_init()
{
CLK_enableSciaClock(myClk);
SCI_disableParity(mySci);
SCI_setNumStopBits(mySci, SCI_NumStopBits_One);
SCI_setCharLength(mySci, SCI_CharLength_8_Bits);
SCI_enableTx(mySci);
SCI_enableRx(mySci);
SCI_enableTxInt(mySci);
SCI_enableRxInt(mySci);
SCI_setBaudRate(mySci, SCI_BaudRate_115_2_kBaud); // value is 15
SCI_enableFifoEnh(mySci);
SCI_resetTxFifo(mySci);
SCI_clearTxFifoInt(mySci);
SCI_resetChannels(mySci);
SCI_setTxFifoIntLevel(mySci, SCI_FifoLevel_Empty);
SCI_resetRxFifo(mySci);
SCI_clearRxFifoInt(mySci);
SCI_setRxFifoIntLevel(mySci, SCI_FifoLevel_4_Words);
SCI_setPriority(mySci, SCI_Priority_FreeRun);
SCI_enable(mySci);
return;
}