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
Summary of Contents for USB-CANmodul
Page 1: ...A Product of PHYTEC Technologie Holding AG USB CANmodul Systems Manual Edition March 2001 ...
Page 10: ...USB CANmodul 8 SYS TEC electronic GmbH 2001 L 487e_6 ...
Page 22: ...USB CANmodul 20 SYS TEC electronic GmbH 2001 L 487e_6 ...
Page 70: ...USB CANmodul 68 SYS TEC electronic GmbH 2001 L 487e_6 ...
Page 74: ...Published by SYS TEC electronic 2001 Ordering No L 487e_6 Printed in Germany ...