USB-CANmodul
48
SYS TEC electronic GmbH 2001 L-487e_6
UcanReadCanMsg
Syntax:
BYTE STDCALL UcanReadCanMsg (tUcanHandle UcanHandle_p,
tCanMsgStruct* pCanMsg_p);
Usability:
CAN_INIT
Parameter:
UcanHandle_p: USB-CAN handle received with the function
UcanInitHardware ().
pCanMsg_p: Address to a CAN message structure. This address
must not be ZERO.
typedef struct
{
DWORD m_dwID; // CAN identifier
BYTE m_bFF; // CAN frame format
BYTE m_bDLC; // CAN data length code
BYTE m_bData[8]; // CAN data
DWORD m_dwTime; // Receipt time in ms
} tCanMsgStruct;