2.109.14 SENTx_TransmitModeSet Function
C
/* x refers to the instance number */
void SENTx_TransmitModeSet(SENT_TRANSMIT_MODE mode)
Summary
Sets the SENTx transmit mode of the SENtx peripheral when it acts like a transmitter.
Description
This function determines how data is sent over the SENT interface. Asynchronous mode means that data frames are continuously sent. Synchronous mode means that data frames are sent only when SYNCTXEN bit is set.
Precondition
Ensure that the SENTx Peripheral is properly initialized and configured before calling this function.
Parameters
Param | Description |
mode | SENTx Synchronous or Asynchronous |
Returns
None.
Example
struct SENT_DATA_TRANSMIT data; data.data1 = 0x01; data.data2 = 0x02; data.data3 = 0x03; data.status = 0x00; SENT1_Initialize(); SENT1_TransmitModeSet(SENT_TRANSMIT_SYNCHRONOUS); SENT1_Transmit(&data);
Remarks
None.