#include <can.hpp>
Public Types | |
enum | { BitRateAutoDetect = 0 } |
Public Member Functions | |
CanInitHelper () | |
template<typename DelayCallable > | |
int | init (DelayCallable delay_callable, uavcan::uint32_t &inout_bitrate=BitRateAutoDetect) |
int | init (uavcan::uint32_t bitrate) |
Static Public Member Functions | |
static uavcan::MonotonicDuration | getRecommendedListeningDelay () |
Public Attributes | |
CanDriver | driver |
Private Attributes | |
CanRxItem | queue_storage_ [UAVCAN_KINETIS_NUM_IFACES][RxQueueCapacity] |
Helper class. Normally only this class should be used by the application. 145 usec per Extended CAN frame @ 1 Mbps, e.g. 32 RX slots * 145 usec --> 4.6 msec before RX queue overruns.
Definition at line 329 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
anonymous enum |
Enumerator | |
---|---|
BitRateAutoDetect |
Definition at line 334 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
|
inline |
Definition at line 338 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
|
inlinestatic |
Use this value for listening delay during automatic bit rate detection.
Definition at line 413 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
|
inline |
This function can either initialize the driver at a fixed bit rate, or it can perform automatic bit rate detection. For theory please refer to the CiA application note #801.
delay_callable | A callable entity that suspends execution for strictly more than one second. The callable entity will be invoked without arguments. getRecommendedListeningDelay(). |
inout_bitrate | Fixed bit rate or zero. Zero invokes the bit rate detection process. If auto detection was used, the function will update the argument with established bit rate. In case of an error the value will be undefined. |
Definition at line 369 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
|
inline |
This overload simply configures the provided bitrate. Auto bit rate detection will not be performed. Bitrate value must be positive.
Definition at line 349 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
CanDriver uavcan_kinetis::CanInitHelper< RxQueueCapacity >::driver |
Definition at line 336 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.
|
private |
Definition at line 331 of file platform_specific_components/kinetis/libuavcan/driver/include/uavcan_kinetis/can.hpp.