EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Page 45

Sys Tec Electronic USB-CANmodul
74 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software
SYS TEC electronic GmbH 2001 L-487e_6
43
UcanGetStatus
Syntax:
BYTE STDCALL UcanGetStatus (tUcanHandle UcanHandle_p,
tStatusStruct* pStatus_p);
Usability:
HW_INIT, CAN_INIT
Parameter:
UcanHandle_p: USB-CAN handle received with the function
UcanInitHardware ().
pStatus_p: Error status of the USB-CANmodul.
typedef struct
{
WORD m_wCanStatus; // present CAN status
WORD m_wUsbStatus; // present USB status
} tStatusStruct;
Return values: Error code of the function.
USBCAN_SUCCESSFUL
USBCAN_ERR_MAXINSTANCES
USBCAN_ERR_ILLHANDLE
USBCAN_ERR_ILLPARAM
The WORD m wCanStatus, found in the tStatusStruct structure,
returns the following values:
USBCAN_CANERR_OK = 0x0000
No error
USBCAN_CANERR_XMTFULL = 0x0001
Transmit buffer in CAN controller is overrun
USBCAN_CANERR_OVERRUN = 0x0002

Table of Contents