19#include "bootloader_can.h"
20#include "bootloader_error.h"
BootloaderDatagram deserialize_datagram(Boot_CanMessage *msg, uint16_t *target_nodes)
Deserialize an incoming CAN message.
Definition: bootloader_can_datagram.c:17
void send_ack_datagram(bool ack, BootloaderError error)
Send Bootloader ACK/NACK message over CAN.
Definition: bootloader_can_datagram.c:23
BootloaderCanID
Bootloader reserved CAN arbitration IDs.
Definition: bootloader_can_datagram.h:37
BootloaderError
Bootloader error definitions.
Definition: bootloader_error.h:28
@ BOOTLOADER_CAN_JUMP_BOOTLOADER
Definition: bootloader_can_datagram.h:43
@ BOOTLOADER_CAN_FLASH_ID
Definition: bootloader_can_datagram.h:39
@ BOOTLOADER_CAN_JUMP_APPLICATION_ID
Definition: bootloader_can_datagram.h:40
@ BOOTLOADER_CAN_SEQUENCING_ID
Definition: bootloader_can_datagram.h:38
@ BOOTLOADER_CAN_ACK_ID
Definition: bootloader_can_datagram.h:41
@ BOOTLOADER_CAN_START_ID
Definition: bootloader_can_datagram.h:42
CAN message structure.
Definition: bootloader_can.h:72
Datagram message definition.
Definition: bootloader_can_datagram.h:49
uint32_t data_len
Definition: bootloader_can_datagram.h:61
uint32_t crc32
Definition: bootloader_can_datagram.h:69
uint16_t sequence_num
Definition: bootloader_can_datagram.h:68
uint16_t bootloader_error
Definition: bootloader_can_datagram.h:91
uint8_t ack_status
Definition: bootloader_can_datagram.h:90
uint8_t * data
Definition: bootloader_can_datagram.h:76
uint16_t node_ids
Definition: bootloader_can_datagram.h:60
uint8_t datagram_type_id
Definition: bootloader_can_datagram.h:50