2.109.15 SENTx_TransmitStatusGet Function
C
/* x refers to the instance number */
SENT_TRANSMIT_STATUS SENTx_TransmitStatusGet(void)
Summary
Gets the transmission status of the SENTx Peripheral when it acts as a transmitter.
Description
This function returns the current status of the transmission process. It can be used to check whether the transmission is ongoing, completed, or if there was an error during transmission.
Precondition
Ensure that the SENTx Peripheral is properly initialized and configured before calling this function.
Parameters
None.
Returns
Returns the SENTx module transmission status SENT_TRANSMIT_STATUS Enum
Example
SENT_DATA_TRANSMIT data; SENT_TRANSMIT_STATUS status; data.data1 = 0x01; data.data2 = 0x02; data.data3 = 0x03; data.status = 0x00; SENT1_Initialize(); SENT1_Transmit(data); while(!SENT1_IsTransmissionComplete()); SENT1_TRANSMIT_STATUS status = SENT1_TransmitStatusGet();
Remarks
None.