20#include "bootloader_error.h"
48typedef enum { CAN_CONTINUOUS = 0, CAN_ONE_SHOT_MODE, NUM_CAN_MODES } Boot_CanMode;
BootloaderError boot_can_receive(Boot_CanMessage *msg)
Receive a CAN message in the bootloader.
Definition: bootloader_can.c:25
BootloaderError boot_can_init(const Boot_CanSettings *settings)
Initialize the CAN interface for the bootloader.
Definition: bootloader_can.c:17
Boot_CanBitrate
Selection for the supported CAN Bitrates.
Definition: bootloader_can.h:40
BootloaderError boot_can_transmit(uint32_t id, bool extended, const uint8_t *data, size_t len)
Transmit a CAN message in the bootloader.
Definition: bootloader_can.c:21
struct CanSettings Boot_CanSettings
CAN Settings.
BootloaderError
Bootloader error definitions.
Definition: bootloader_error.h:28
@ BOOT_CAN_BITRATE_250KBPS
Definition: bootloader_can.h:42
@ BOOT_CAN_BITRATE_125KBPS
Definition: bootloader_can.h:41
@ BOOT_CAN_BITRATE_1000KBPS
Definition: bootloader_can.h:44
@ BOOT_CAN_BITRATE_500KBPS
Definition: bootloader_can.h:43
@ NUM_BOOT_CAN_BITRATES
Definition: bootloader_can.h:45
CAN message structure.
Definition: bootloader_can.h:72
size_t dlc
Definition: bootloader_can.h:75
uint32_t id
Definition: bootloader_can.h:73
uint8_t extended
Definition: bootloader_can.h:74
uint64_t data
Definition: bootloader_can.h:77
CAN Settings.
Definition: bootloader_can.h:58
bool loopback
Definition: bootloader_can.h:61
bool silent
Definition: bootloader_can.h:62
uint16_t device_id
Definition: bootloader_can.h:59
Boot_CanBitrate bitrate
Definition: bootloader_can.h:60