CAN Controller Mode.
- Note
- When setting the control mode configuration, setting a field to true/false sets the corresponding mode on or off. Leaving a field as std::nullopt means the mode will not be modified.
When getting the control mode configuration, fields corresponding to modes being turned on will be set to true. Fields corresponding to modes being turned off will be set to false.
#include <can_common.h>
|
|
std::optional< bool > | loopback |
| | Loopback mode.
|
|
std::optional< bool > | listenonly |
| | Listen-only mode.
|
|
std::optional< bool > | triple_sampling |
| | Triple sampling mode.
|
|
std::optional< bool > | one_shot |
| | One-Shot mode.
|
|
std::optional< bool > | berr_reporting |
| | Bus-error reporting.
|
|
std::optional< bool > | fd |
| | CAN FD mode.
|
|
std::optional< bool > | presume_ack |
| | Ignore missing CAN ACKs.
|
|
std::optional< bool > | fd_non_iso |
| | CAN FD in non-ISO mode.
|
|
std::optional< bool > | cc_len8_dlc |
| | Classic CAN DLC.
|
|
std::optional< bool > | tdc_auto |
| | TDC value automatically calculated by CAN transciever.
|
|
std::optional< bool > | tdc_manual |
| | TDC value manually set by the user.
|
CAN Controller Mode.
- Note
- When setting the control mode configuration, setting a field to true/false sets the corresponding mode on or off. Leaving a field as std::nullopt means the mode will not be modified.
When getting the control mode configuration, fields corresponding to modes being turned on will be set to true. Fields corresponding to modes being turned off will be set to false.
The documentation for this struct was generated from the following file: