Getstatus - ICP DAS USA mPAC-7186EXD-CAN User Manual

Table of Contents

Advertisement

3.1.13

GetStatus

Description:
Read the CAN controller status and software buffer overflow flag
message.
Syntax:
void GetStatus(unsigned char *CANReg, unsigned char *OverflowFlag)
Parameter:
 *CANReg: The pointer for obtain the current CAN controller status.
For the information about the CANReg value meaning, please refer
to the following table.
Bit NO.
7 (MSB)
Bus status. 1 for bus off, 0 for bus on.
6
Error status. 1 for at least one error, 0 for OK.
5
Transmit status. 1 for transmitting, 0 for idle.
4
Receive status. 1 for receiving, 0 for idle.
3
Transmit complete status. 1 for complete, 0 for incomplete.
2
Transmit buffer status. 1 for released, 0 for locked
1
Data overrun status. 1 for reception buffer overrun, 0 for OK.
0 (LSB)
Receive buffer status. 1 for at least one message stored in the
reception buffer, 0 for empty.
 *OverflowFlag: CAN reception and transmission overflow flag infor-
mation For the information about the OverflowFlag value meaning,
please refer to the following table.
Bit NO.
Others
Reserved
1
1 for reception software buffer overflow. 0 for normal.
0 (LSB)
1 for transmission software buffer overflow. 0 for normal.
Return:
None
Relative function:
3.1.14 ClearStatus
I-7188XBD-CAN/μPAC-7186EXD-CAN user manual (ver.1.0.3, May/09/2014)
Description
Description
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7188xbd-can

Table of Contents