Software Support
© SYS TEC electronic GmbH 2007 L-1032e_9 75
Return Value: (see Section 7.3.3 and 7.3.4)
ETHCAN_SUCCESSFUL
ETHCAN_ERR_ILLPARAM
ETHCAN_ERR_ILLHANDLE
ETHCAN_ERR_HWNOINIT
ETHCAN_ERR_HWNOTCONNECTED
ETHCAN_CANERR_QRCVEMPTY
ETHCAN_CANERR_QOVERRUN
Application Example:
tEthCanHandle EthCanHandle;
tCANMsg RecvCanMsg;
tCANTimestamp RecvTime;
DWORD dwRetcode;
//Read CAN-message
dwRetcode = EthCanReadCanMsg(EthCanHandle,&RecvCanMsg,&RecvTime);
if(dwRetcode == ETHCAN_SUCCESSFUL)
{
//CAN-message received
}
else
if(dwRetcode & ETHCAN_CANERR_
QRCVEMPTY)
{
//no CAN-message in the message buffer
}
else
{
//error during receipt of the CAN-message
}