2.109.6 SENTx_IsDataReceived Function
C
/* x refers to the instance number */
bool SENTx_IsDataReceived(void)
Summary
Checks if data has been received for SENT Peripheral when it acts as a receiver.
Description
The function returns a boolean value indicating whether new data has been successfully received and is available for processing.
Precondition
The SENTx peripheral must have been initialized using the SENTx_Initialize API. The peripheral should be enabled using the SENTx_Enable() API.
Parameters
None.
Returns
true - SENTx receive completed.
false - SENTx receive not completed.
Example
struct SENT_DATA_RECEIVE data; SENT1_Initialize(); data = SENT1_Receive(); while(!SENT1_IsDataReceived()); { }
Remarks
None.