5.3 JNMMCANRX

This function receives a message on the selected CAN port.

BYTE JNMMCANRX(HANDLE hHandle, CANMESSAGE* msg);

Name

Description

hHandle

HANDLE Handle received from JNMMCANOpen().

Pointer to CANMESSAGE structure

Can_ch : CAN port number 0-3

Msg_type : 0 : Standard

1 : Extended

Msg_ID : Hexadecimel value

Msg_len : length of the frames

Rtr : 0 : Disable

1 : Enable

Data : Holds the data frame of message length

Return Value

returns 1 on error

Usage Example

To receive message

ret = JNMMCANRX(device_handle,&Rx);
if(ret == 1)
{
    printf("JNMMCANRX failure \n");
}

Last updated