![Tews Technologies TIP810-SW-42 User Manual Download Page 29](http://html1.mh-extra.com/html/tews-technologies/tip810-sw-42/tip810-sw-42_user-manual_1093635029.webp)
TIP810-SW-42 - VxWorks Device Driver
Page 29 of 36
4.4.5 FIO_T810_GET_CANSTATUS
NAME
FIO_T810_GET_CANSTATUS - Returns CAN controller status information
DESCRIPTION
This ioctl function returns the actual contents of several CAN controller registers for diagnostic
purposes. A pointer to the callers status buffer (
T810_STATUS
) is passed by the parameter
arg
to the
device driver.
typedef struct
{
unsigned char
arbitration_lost_capture;
unsigned char
error_code_capture;
unsigned char
tx_error_counter;
unsigned char
rx_error_counter;
unsigned char
error_warning_limit;
unsigned char
status_register;
unsigned char
mode_register;
unsigned char
rx_message_counter_max;
} T810_STATUS, *PT810_STATUS;
arbitration_lost_capture
This parameter receives content of the arbitration lost capture register. This register contains
information about the bit position of losing arbitration.
error_code_capture
This parameter receives content of the error code capture register. This register contains
information about the type and location of errors on the bus.
tx_error_counter
This parameter receives content of the TX error counter register. This register contains the
current value of the transmit error counter.
rx_error_counter
This parameter receives content of the RX error counter register. This register contains the
current value of the receive error counter.
error_warning_limit
This parameter receives content of the error warning limit register.
status_register
This parameter receives content of the status register.