dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bl_messages Struct Reference

#include <bl_messages.h>

Public Member Functions

union {
   struct msg_capabilities_req {
      uint8_t   unused [4]
 
      uint8_t   device_number
 
   }   cap_req
 
   struct msg_capabilities_rep_all {
      uint8_t   unused [4]
 
      uint16_t   number_of_devices
 
      uint16_t   wrflags
 
   }   cap_rep_all
 
   struct msg_capabilities_rep_specific {
      uint32_t   fw_size
 
      uint8_t   device_number
 
      uint8_t   bl_version
 
      uint8_t   desc_size
 
      uint8_t   board_rev
 
      uint32_t   fw_crc
 
      uint16_t   device_id
 
      uint16_t   cap_extension_magic
 
      uint32_t   partition_sizes [10]
 
   }   cap_rep_specific
 
   struct msg_enter_dfu {
      uint8_t   unused [4]
 
      uint8_t   device_number
 
   }   enter_dfu
 
   struct msg_jump_fw {
      uint8_t   unused [4]
 
      uint8_t   unused2 [2]
 
      uint16_t   safe_word
 
   }   jump_fw
 
   struct msg_reset {
   }   reset
 
   struct msg_op_abort {
   }   op_abort
 
   struct msg_op_end {
   }   op_end
 
   struct msg_xfer_start {
      uint32_t   packets_in_transfer
 
      enum dfu_partition_label   label
 
      uint8_t   words_in_last_packet
 
      uint32_t   expected_crc
 
   }   xfer_start
 
   struct msg_xfer_cont {
      uint32_t   current_packet_number
 
      uint8_t   data [XFER_BYTES_PER_PACKET]
 
   }   xfer_cont
 
   struct msg_status_req {
   }   status_req
 
   struct msg_status_rep {
      uint32_t   unused
 
      uint8_t   current_state
 
   }   status_rep
 
   struct msg_wipe_partition {
      enum dfu_partition_label   label
 
   }   wipe_partition
 
   uint8_t   pad [62]
 
__attribute__ ((aligned(1))) v
 

Data Fields

uint8_t flags_command
 

Detailed Description

Definition at line 77 of file bl_messages.h.

Member Function Documentation

union bl_messages::@23 bl_messages::__attribute__ ( (aligned(1))  )

Field Documentation

uint8_t bl_messages::bl_version

Definition at line 95 of file bl_messages.h.

uint8_t bl_messages::board_rev

Definition at line 97 of file bl_messages.h.

uint16_t bl_messages::cap_extension_magic

Definition at line 103 of file bl_messages.h.

struct { ... } ::msg_capabilities_rep_all bl_messages::cap_rep_all
struct { ... } ::msg_capabilities_rep_specific bl_messages::cap_rep_specific
struct { ... } ::msg_capabilities_req bl_messages::cap_req
uint32_t bl_messages::current_packet_number

Definition at line 140 of file bl_messages.h.

uint8_t bl_messages::current_state

Definition at line 150 of file bl_messages.h.

uint8_t bl_messages::data[XFER_BYTES_PER_PACKET]

Definition at line 141 of file bl_messages.h.

uint8_t bl_messages::desc_size

Definition at line 96 of file bl_messages.h.

uint16_t bl_messages::device_id

Definition at line 99 of file bl_messages.h.

uint8_t bl_messages::device_number

Definition at line 83 of file bl_messages.h.

struct { ... } ::msg_enter_dfu bl_messages::enter_dfu
uint32_t bl_messages::expected_crc

Definition at line 135 of file bl_messages.h.

uint8_t bl_messages::flags_command

Definition at line 78 of file bl_messages.h.

uint32_t bl_messages::fw_crc

Definition at line 98 of file bl_messages.h.

uint32_t bl_messages::fw_size

Definition at line 93 of file bl_messages.h.

struct { ... } ::msg_jump_fw bl_messages::jump_fw
enum dfu_partition_label bl_messages::label

Definition at line 133 of file bl_messages.h.

uint16_t bl_messages::number_of_devices

Definition at line 88 of file bl_messages.h.

struct { ... } ::msg_op_abort bl_messages::op_abort
struct { ... } ::msg_op_end bl_messages::op_end
uint32_t bl_messages::packets_in_transfer

Definition at line 132 of file bl_messages.h.

uint8_t bl_messages::pad[62]

Definition at line 157 of file bl_messages.h.

uint32_t bl_messages::partition_sizes[10]

Definition at line 104 of file bl_messages.h.

struct { ... } ::msg_reset bl_messages::reset
uint16_t bl_messages::safe_word

Definition at line 116 of file bl_messages.h.

struct { ... } ::msg_status_rep bl_messages::status_rep
struct { ... } ::msg_status_req bl_messages::status_req
uint8_t bl_messages::unused[4]

Definition at line 82 of file bl_messages.h.

uint32_t bl_messages::unused

Definition at line 149 of file bl_messages.h.

uint8_t bl_messages::unused2[2]

Definition at line 115 of file bl_messages.h.

struct { ... } ::msg_wipe_partition bl_messages::wipe_partition
uint8_t bl_messages::words_in_last_packet

Definition at line 134 of file bl_messages.h.

uint16_t bl_messages::wrflags

Definition at line 89 of file bl_messages.h.

struct { ... } ::msg_xfer_cont bl_messages::xfer_cont
struct { ... } ::msg_xfer_start bl_messages::xfer_start

The documentation for this struct was generated from the following file: