![]() |
Midnight Sun Firmware
|
CAN Settings. More...
#include <bootloader_can.h>

Public Attributes | |
| uint16_t | device_id |
| Boot_CanBitrate | bitrate |
| bool | loopback |
| bool | silent |
| CanHwBitrate | bitrate |
| GpioAddress | tx |
| GpioAddress | rx |
| CanRxAllCallback | can_rx_all_cb |
CAN Settings.
TX Pin will transmit data. RX pin will receive data. The bitrate is the number of bits sent per second. The device ID is the CAN ID of the STM32 node. Loopback will internally connect the transmit and receive CAN lines for testing. Silent mode is used for only listening to the bus.
| CanHwBitrate bitrate |
Bits per second
| Boot_CanBitrate bitrate |
Bits per second
| CanRxAllCallback can_rx_all_cb |
Callback function to be called when receiving all data
| uint16_t device_id |
Device CAN ID
| bool loopback |
Enables self-listening for message debugging
| GpioAddress rx |
GPIO Pin for CAN RX
| bool silent |
Device can listen but not transmit messages
| GpioAddress tx |
GPIO Pin for CAN TX