Fujitsu F2MC-8FX Series User Manual page 104

8-bit microcontroller bits pot yellow lin board
Hide thumbs Also See for F2MC-8FX Series:
Table of Contents

Advertisement

void
l_ifc_rx(l_ifc_handle rx_data){
switch(ucLinStatus){
case LIN_TRANSMIT:
(Omitted)
case LIN_DATA_RECEPTION:
(Omitted)
case LIN_ID_RECEPTION:
ucCurrentId.byte = rx_data;
if( ucCurrentId.fields.parity != ucRightParity[ucCurrentId.fields.id] ) {
(Omitted)
else if( LinRxDataPtr[ucCurrentId.fields.id] != 0 ) {
ucLinStatus = LIN_DATA_RECEPTION;
(Omitted)
vSetLinFreerunTimersCompare(ucRxCount);
} else if ( LinTxDataPtr[ucCurrentId.fields.id] != 0 ) {
ucLinStatus = LIN_PRETRANSMIT;
(Omitted)
vLinWordCopy(ucUartTxBuffer, LinTxDataPtr[ucCurrentId.fields.id], ucTxCount);
vSetLinFreerunTimersCompare(hTINFRAME_SPACE_IND);
}
(Omitted)
case LIN_WAKEUP_TRANSMIT:
(Omitted)
}
}
DATA FIELD send status
DATA FIELD receive status
ID FIELD reception wait status
WAKEUP send status
Figure 5-17 Receive determination processing
104
Store received ID
Error processing
If ID received
State transition: DATA reception
wait status
8/16bit complex timer set
↓Copy send data to buffer
AN07-00200-03E
Parity check
8/16bitcomplex
timer set

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95f136jbs

Table of Contents