iLLD_TC27xC  1.0
Elementary Transactions
Collaboration diagram for Elementary Transactions:

Functions

IFX_EXTERN void IfxAsclin_Lin_ignoreHeader (IfxAsclin_Lin *asclin)
 Ignores the latest header. More...
 
IFX_EXTERN void IfxAsclin_Lin_receiveHeader (IfxAsclin_Lin *asclin, uint8 *id)
 Receives the header. More...
 
IFX_EXTERN void IfxAsclin_Lin_receiveResponse (IfxAsclin_Lin *asclin, uint8 *data, uint32 length)
 Receives the response. More...
 
IFX_EXTERN void IfxAsclin_Lin_sendHeader (IfxAsclin_Lin *asclin, uint8 *id)
 Sends the header. More...
 
IFX_EXTERN void IfxAsclin_Lin_sendResponse (IfxAsclin_Lin *asclin, uint8 *data, uint32 length)
 sends the response More...
 

Detailed Description

Function Documentation

IFX_EXTERN void IfxAsclin_Lin_ignoreHeader ( IfxAsclin_Lin asclin)

Ignores the latest header.

Parameters
asclinmodule handle
Returns
None

Usage Example:

//IfxAsclin_Lin lin; // defined globally

Definition at line 238 of file IfxAsclin_Lin.c.

IFX_EXTERN void IfxAsclin_Lin_receiveHeader ( IfxAsclin_Lin asclin,
uint8 id 
)

Receives the header.

Parameters
asclinmodule handle
idthe id byte which should be received
Returns
None

Usage Example:

uint8 receivedId;
// receive the header
//IfxAsclin_Lin lin; // defined globally
IfxAsclin_Lin_receiveHeader(&lin, &receivedId);

Definition at line 425 of file IfxAsclin_Lin.c.

IFX_EXTERN void IfxAsclin_Lin_receiveResponse ( IfxAsclin_Lin asclin,
uint8 data,
uint32  length 
)

Receives the response.

Parameters
asclinmodule handle
dataPointer to the start of data which should be received
lengthcount of data (in bytes).
Returns
None

Usage Example:

// prepare receive buffer
uint8 rxData[8] = {0, 0, 0, 0, 0, 0, 0, 0};
uint32 length = 8;
// start the transmission
//IfxAsclin_Lin lin; // defined globally
IfxAsclin_Lin_receiveResponse(&lin, rxData, length);

Definition at line 437 of file IfxAsclin_Lin.c.

IFX_EXTERN void IfxAsclin_Lin_sendHeader ( IfxAsclin_Lin asclin,
uint8 id 
)

Sends the header.

Parameters
asclinmodule handle
idthe id byte which should be sent
Returns
None

Usage Example:

// set the id byte
uint8 id = 0x80 // for sending respose after header
// send the header
//IfxAsclin_Lin lin; // defined globally

Definition at line 450 of file IfxAsclin_Lin.c.

IFX_EXTERN void IfxAsclin_Lin_sendResponse ( IfxAsclin_Lin asclin,
uint8 data,
uint32  length 
)

sends the response

Parameters
asclinmodule handle
dataPointer to the start of data which should be sent
lengthcount of data (in bytes).
Returns
None

Usage Example:

//prepare transmit bytes
uint8 txData[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
uint32 length = 8;
// send the response
//IfxAsclin_Lin lin; // defined globally
IfxAsclin_Lin_sendResponse(&lin, txData, length);

Definition at line 473 of file IfxAsclin_Lin.c.