Lely core libraries 2.3.4
co_wtm_can Struct Reference

A CANopen WTM CAN interface. More...

Data Fields

uint_least8_t st
 The current CAN controller status (one of CAN_STATE_ACTIVE, CAN_STATE_PASSIVE or CAN_STATE_BUSOFF, or 0xf if the information is not available).
 
uint_least8_t err
 The last detected error (0 if no error was detected, one of CAN_ERROR_BIT, CAN_ERROR_STUFF, CAN_ERROR_CRC, CAN_ERROR_FORM or CAN_ERROR_ACK in case of an error, or 0xf if the information is not available).
 
uint_least8_t load
 The current busload percentage (in the range [0..100], or 0xff if the information is not available).
 
uint_least16_t ec
 The number of detected errors that led to the increase of one of the CAN controller internal error counters (in the range [0..0xfffe], or 0xffff if the information is not available).
 
uint_least16_t foc
 The FIFO overrun counter (in the range [0..0xfffe], or 0xffff if the information is not available).
 
uint_least16_t coc
 The CAN controller overrun counter (in the range [0..0xfffe], or 0xffff if the information is not available).
 
struct timespec recv_time
 The current time of the CAN frame receiver.
 
struct timespec send_time
 The current time of the CAN frame sender.
 
struct timespec send_next
 The time at which the next frame is sent.
 

Detailed Description

A CANopen WTM CAN interface.

Definition at line 46 of file wtm.c.


The documentation for this struct was generated from the following file: