29 #ifndef BAREMETAL_PLATFORM_CASCODA_NUVOTON_CHILI2_LDROM_HID_LDROM_HID_H_
30 #define BAREMETAL_PLATFORM_CASCODA_NUVOTON_CHILI2_LDROM_HID_LDROM_HID_H_
46 #pragma GCC diagnostic push
47 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
49 #pragma GCC diagnostic pop
Global error declarations for use across the Cascoda SDK.
Definitions relating to EVBME API messages.
void HID_Init(void)
USBD Endpoint Config.
Definition: hid_transfer.c:271
struct SerialBuf gRxBuffer
Definition: hid_transfer.c:61
struct SerialBuf gTxBuffer
Definition: hid_transfer.c:62
ca_static_assert(sizeof(struct dfu_write_cmd_aligned)==248)
void RxHandled(void)
Definition: hid_transfer.c:212
void TxReady(void)
Definition: hid_transfer.c:218
void EP3_Handler(void)
Definition: hid_transfer.c:202
void EP2_Handler(void)
Definition: hid_transfer.c:188
Cascoda serialbuffer structure.
Definition: ldrom_hid.h:67
uint8_t dfu_cmdid
DFU cmdid.
Definition: ldrom_hid.h:71
volatile uint8_t isReady
Is ready to: Tx-Write, Rx-Read.
Definition: ldrom_hid.h:68
uint8_t len
Length of data.
Definition: ldrom_hid.h:70
uint8_t cmdid
Cascoda command ID = EVBME_DFU_CMD (0xA3)
Definition: ldrom_hid.h:69
union dfu_cmd_aligned dfu_cmd
dfu command
Definition: ldrom_hid.h:72
Write command to write words of data - aligned for codespace and speed.
Definition: ldrom_hid.h:41
uint32_t data[61]
Data to write, must be whole words.
Definition: ldrom_hid.h:43
uint8_t startAddr[4]
Start address for writing - must be word aligned.
Definition: ldrom_hid.h:42
Check command to validate flash against a checksum.
Definition: evbme_messages.h:148
Erase command to erase whole pages.
Definition: evbme_messages.h:130
Reboot command to boot into DFU or APROM.
Definition: evbme_messages.h:122
Status command used as a reply from the Chili2 to host.
Definition: evbme_messages.h:158
Union of all DFU commands - version with dfu_write_cmd_aligned.
Definition: ldrom_hid.h:55
struct evbme_dfu_reboot_cmd reboot_cmd
Definition: ldrom_hid.h:56
struct evbme_dfu_erase_cmd erase_cmd
Definition: ldrom_hid.h:57
struct evbme_dfu_check_cmd check_cmd
Definition: ldrom_hid.h:59
struct dfu_write_cmd_aligned write_cmd
Definition: ldrom_hid.h:58
struct evbme_dfu_status_cmd status_cmd
Definition: ldrom_hid.h:60