iLLD_TC27xD  1.0
Channel Functions
Collaboration diagram for Channel Functions:

Functions

IFX_INLINE Ifx_SENT_CH_INTSTAT IfxSent_Sent_getAndClearInterruptStatus (IfxSent_Sent_Channel *channel)
 Copies the current interrupt flags into the Ifx_SENT_CH_INTSTAT structure, and clears the flags in hardware. More...
 
IFX_EXTERN boolean IfxSent_Sent_initChannel (IfxSent_Sent_Channel *channel, const IfxSent_Sent_ChannelConfig *config)
 Initialize the channel with the supplied configuration. More...
 
IFX_EXTERN void IfxSent_Sent_initChannelConfig (IfxSent_Sent_ChannelConfig *config, IfxSent_Sent *driver)
 Initialise channel buffer with default SENT channel configuration. More...
 
IFX_EXTERN boolean IfxSent_Sent_readChannelSerialDataFrame (IfxSent_Sent_Channel *channel, IfxSent_Sent_Frame *frame)
 Reads the nibbles recieved in the Data register. More...
 
IFX_EXTERN boolean IfxSent_Sent_readChannelSerialMessageFrame (IfxSent_Sent_Channel *channel, IfxSent_Sent_SerialMessageFrame *message)
 reads the Serial data recieved and collected over several SENT frames More...
 

Detailed Description

Function Documentation

IFX_INLINE Ifx_SENT_CH_INTSTAT IfxSent_Sent_getAndClearInterruptStatus ( IfxSent_Sent_Channel channel)

Copies the current interrupt flags into the Ifx_SENT_CH_INTSTAT structure, and clears the flags in hardware.

This function should be used in an ISR to retrieve the events which triggered the interrupt.

Parameters
channelSpecifies the SENT Channel handle structure
Returns
Interrupt flags which have been cleared.

Usage example: see How to use the SENT Interface driver?

Definition at line 669 of file IfxSent_Sent.h.

IFX_EXTERN boolean IfxSent_Sent_initChannel ( IfxSent_Sent_Channel channel,
const IfxSent_Sent_ChannelConfig config 
)

Initialize the channel with the supplied configuration.

Parameters
channelpointer to the SENT channel
configpointer to the SENT channel configuration
Returns
TRUE if valid configuration otherwise FALSE

Usage example: see How to use the SENT Interface driver?

Definition at line 46 of file IfxSent_Sent.c.

IFX_EXTERN void IfxSent_Sent_initChannelConfig ( IfxSent_Sent_ChannelConfig config,
IfxSent_Sent driver 
)

Initialise channel buffer with default SENT channel configuration.

Parameters
configpointer to the SENT channel configuration
driverpointer to the SENT module handler
Returns
None

Usage example: see How to use the SENT Interface driver?

Definition at line 191 of file IfxSent_Sent.c.

IFX_EXTERN boolean IfxSent_Sent_readChannelSerialDataFrame ( IfxSent_Sent_Channel channel,
IfxSent_Sent_Frame frame 
)

Reads the nibbles recieved in the Data register.

Parameters
channelSENT Channel whose data has to be read
frameData read from the SENT Channel
Returns
TRUE if data received otherwise false

Usage example: see How to use the SENT Interface driver?

Definition at line 287 of file IfxSent_Sent.c.

IFX_EXTERN boolean IfxSent_Sent_readChannelSerialMessageFrame ( IfxSent_Sent_Channel channel,
IfxSent_Sent_SerialMessageFrame message 
)

reads the Serial data recieved and collected over several SENT frames

Parameters
channelreads the Serial data recieved and collected over several SENT frames
messageData pointer pointing to the serial data read from the SENT Channel
Returns
TRUE if serial message received otherwise false

Usage example: see How to use the SENT Interface driver?

Definition at line 301 of file IfxSent_Sent.c.