2.109 Single-Edge Nibble Transmission (SENT)

This Plib implements software abstraction for SENT Peripheral.

Library Interface

Single-Edge Nibble Transmission peripheral library provides the following interfaces:

Functions

NameDescription
SENTx_InitializeInitializes the SENTx peripheral of the device
SENTx_DeinitializeDe-initializes the SENTx peripheral of the device
SENTx_EnableEnables the SENTx peripheral of the device
SENTx_DisableDisables the SENTx peripheral of the device
SENTx_Transmit Transmits the data to the receiver when SENTx peripheral acts as a transmitter
SENTx_TransmitModeSetSets the SENTx peripheral transmit mode
SENTx_IsTransmissionCompleteReturns the transmit complete status
SENTx_TransmitStatusGetGets the transmission status of the SENTx peripheral module
SENTx_TransmitCompleteCallbackRegisterRegisters a callback function to be called upon completing transmission for the SENTx peripheral
SENTx_ReceiveReads the received data at the receiver
SENTx_IsDataReceivedChecks if data has been received for SENTx peripheral
SENTx_ReceiveStatusGetRetrieves the receive status SENTx peripheral
SENTx_ReceiveErrorGetReturns the type of reception error
SENTx_ReceiveCompleteCallbackRegisterRegisters a callback function to be called upon the completion of data reception for the SENTx peripheral
SENTx_ErrorCallbackRegisterRegisters a callback function to be called upon encountering an error during data reception for the SENTx peripheral

Data types and constants

NameTypeDescription
SENT_DATA_RECEIVEStructConfigures the SENTx data receive packet
SENT_RECEIVE_STATUSEnumDefines the SENTx receive status
SENT_DATA_TRANSMITStructConfigure the SENTx data transmit packet
SENT_TRANSMIT_MODEEnumDefines the SENTx transmission mode (Asynchronous and Synchronous)
SENT_TRANSMIT_STATUSEnumDefines the SENTx transmit status
SENT_ERROR_CODEEnumDefines the SENTx error code
SENT_ERROR_CALLBACKTypedefDefines a function pointer type for a callback function when error occurs
SENT_RECEIVE_COMPLETE_CALLBACKTypedefDefines a function pointer type for a callback function when data reception is complete
SENT_TRANSMIT_COMPLETE_CALLBACKTypedefDefines a function pointer type for a callback function when data is successfully transmitted
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.