4.1.21 CAN_RxMsgCount
Description:
Obtain the amount of CAN messages available within the CAN
controller’s RXFIFO or the software buffer (4KBytes). After calling the
functions
CAN_EnableRxIrq
and
CAN_InstallIrq
, the amount of CAN
messages is within the software buffer; otherwise it is within the CAN
controller’s RXFIFO.
Syntax:
int CAN_RxMsgCount(BYTE BoardNo, BYTE Port);
Parameter:
BoardNo: [input] PISO-CAN board number (0~7)
Port: [input] CAN port number (1~8)
Return:
The amount of CAN messages.
Note.
If the parameter for
BoardNo
or
Port
isn’t correct, the return value
will always be 0.
PISO-CAN/PEX-CAN/PCM-CAN Series User’s Manual (v2.6 Dec/2013) -------
55
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru