Chapter 30. Configuration

The CAN subsystem has a number of configuration options.

cdl_interface CYGINT_IO_CAN_TIMESTAMP

A hardware device driver that supports timestamps should implement this interface.

cdl_option CYGOPT_IO_CAN_SUPPORT_TIMESTAMP

If the CAN hardware driver supports some kind of timestamps then this option enables propagation of timestamps to higher layers. This may add some extra code to hardware drivers.

cdl_option CYGOPT_IO_CAN_TX_EVENT_SUPPORT

This option enables support for TX events. If a CAN message is transmitted successfully a TX event will be inserted into the receive event queue and propagated to higher layers. If this option is enabled the RX event queue will be filled faster.

cdl_option CYGOPT_IO_CAN_SUPPORT_NONBLOCKING

This option enables extra code in the generic CAN driver which allows clients to switch read() and write() call semantics from blocking to non-blocking.

cdl_option CYGNUM_IO_CAN_DEFAULT_TIMEOUT_READ

The initial timeout value in clock ticks for cyg_io_read() calls.

cdl_option CYGNUM_IO_CAN_DEFAULT_TIMEOUT_WRITE

The initial timeout value in clock ticks for cyg_io_write() calls.