2.109.5 SENTx_Initialize Function
C
/* x refers to the instance number */
void SENTx_Initialize(void)
Summary
Initializes the SENTx peripheral of the device.
Description
This function initializes the SENTx Peripheral Library (PLIB) of the device with the values configured in the MCC GUI. Once the peripheral is initialized, APIs can be used to transfer the data and receive the data.
Precondition
MCC GUI should be configured with the correct values. This function must be called only once and before any other SENTx receive/transfer function is called.
Parameters
None.
Returns
None.
Example
struct SENT_DATA_TRANSMIT data; data.data1 = 0x01; data.data2 = 0x02; data.data3 = 0x03; data.status = 0x00; SENTx_Initialize(); SENTx_Transmit(&data);
Remarks
None.