2.109.12 SENTx_Transmit Function

C

/* x refers to the instance number */

void SENTx_Transmit(const SENT_DATA_TRANSMIT *sentData)	

Summary

Transmits the data to the receiver of the SENT Peripheral when it acts like a transmitter.

Description

This function is responsible for transmitting data from the SENT peripheral. The function will transmit the desired data.

Precondition

The SENTx peripheral must have been initialized using the SENTx_Initialize API. The peripheral should be enabled using the SENTx_Enable() API.

Parameters

ParamDescription
sentDataa structure data type SENT_DATA_TRANSMIT Struct

Returns

None.

Example

struct SENT_DATA_TRANSMIT data;
data.data1 = 0x01;
data.data2 = 0x02;
data.data3 = 0x03;
data.status = 0x00;
SENT1_Initialize();
while(!SENT1_IsTransmissionComplete());
SENT1_Transmit(&data);

Remarks

None.