iLLD_TC27xD  1.0
Operative Functions
Collaboration diagram for Operative Functions:

Functions

IFX_INLINE void IfxEray_receiveData (Ifx_ERAY *eray, boolean dataReceived)
 requests to receive data from message buffer. More...
 
IFX_INLINE void IfxEray_sendData (Ifx_ERAY *eray, boolean dataTransfered)
 sets the bit to send data in frame. More...
 
IFX_EXTERN uint16 IfxEray_calcHeaderCrc (uint8 payloadLength, uint16 frameId, boolean startupFrameIndicator, boolean syncFrameIndicator)
 Calculate and returns the CRC for frame. More...
 
IFX_EXTERN void IfxEray_readData (Ifx_ERAY *eray, uint32 *data, uint8 payloadLength)
 Reads the received data from output registers. More...
 
IFX_EXTERN void IfxEray_readFrame (Ifx_ERAY *eray, IfxEray_ReceivedHeader *header, uint32 *data, Ifx_SizeT maxPayloadLength)
 Reads header and data from output buffers. More...
 
IFX_EXTERN void IfxEray_setSlot (Ifx_ERAY *eray, const IfxEray_Header *header, const uint32 *data, const IfxEray_SlotConfig *slotConfig)
 Writes header and data to Input buffers and set the slots. More...
 
IFX_EXTERN void IfxEray_writeData (Ifx_ERAY *eray, const uint32 *data, uint8 payloadLength)
 Writes data section of a frame to input data registers. More...
 

Detailed Description

Function Documentation

IFX_EXTERN uint16 IfxEray_calcHeaderCrc ( uint8  payloadLength,
uint16  frameId,
boolean  startupFrameIndicator,
boolean  syncFrameIndicator 
)

Calculate and returns the CRC for frame.

Parameters
payloadLengthpayload length configured for frame.
frameIdslot id
startupFrameIndicatorwhether startup frame is indicated or not.
syncFrameIndicatorwhether sync frame is indicated or not.
Returns
calculated CRC value.

Definition at line 35 of file IfxEray.c.

Referenced by IfxEray_setSlot().

IFX_EXTERN void IfxEray_readData ( Ifx_ERAY *  eray,
uint32 data,
uint8  payloadLength 
)

Reads the received data from output registers.

Parameters
eraypointer to ERAY module registers.
datapointer to received data buffer.
payloadLengthpayload length received in a frame.
Returns
None

Definition at line 132 of file IfxEray.c.

Referenced by IfxEray_Eray_readData(), and IfxEray_readFrame().

IFX_EXTERN void IfxEray_readFrame ( Ifx_ERAY *  eray,
IfxEray_ReceivedHeader header,
uint32 data,
Ifx_SizeT  maxPayloadLength 
)

Reads header and data from output buffers.

Parameters
eraypointer to ERAY module registers.
headerheader received in a frame.
datadata received in a frame.
maxPayloadLengthmaximum payload length received in a frame.
Returns
None

Definition at line 147 of file IfxEray.c.

Referenced by IfxEray_Eray_readFrame().

IFX_INLINE void IfxEray_receiveData ( Ifx_ERAY *  eray,
boolean  dataReceived 
)

requests to receive data from message buffer.

Parameters
eraypointer to ERAY module registers.
dataReceivedwhether data to be received or not.
Returns
None

Definition at line 1350 of file IfxEray.h.

Referenced by IfxEray_Eray_receiveFifoFrame(), and IfxEray_Eray_receiveFrame().

IFX_INLINE void IfxEray_sendData ( Ifx_ERAY *  eray,
boolean  dataTransfered 
)

sets the bit to send data in frame.

Parameters
eraypointer to ERAY module registers.
dataTransferedwhether data transfered or not.
Returns
None

Definition at line 1362 of file IfxEray.h.

Referenced by IfxEray_Eray_transmitFrame().

IFX_EXTERN void IfxEray_setSlot ( Ifx_ERAY *  eray,
const IfxEray_Header header,
const uint32 data,
const IfxEray_SlotConfig slotConfig 
)

Writes header and data to Input buffers and set the slots.

Parameters
eraypointer to ERAY module registers.
headerHeader section of message buffer.
datadata section of message buffer.
slotConfigpointer slot allocation configuration structure.
Returns
None

Definition at line 233 of file IfxEray.c.

Referenced by IfxEray_Eray_bufferReconfig().

IFX_EXTERN void IfxEray_writeData ( Ifx_ERAY *  eray,
const uint32 data,
uint8  payloadLength 
)

Writes data section of a frame to input data registers.

Parameters
eraypointer to ERAY module registers.
datadata segment in a frame.
payloadLengthpayload length configured for slot buffer.
Returns
None

Definition at line 286 of file IfxEray.c.

Referenced by IfxEray_Eray_writeData(), and IfxEray_setSlot().