Product Comparison: USB I2C | USB SPI | USB GPIO

USB PIC Bootloader. User Manual


7.4.5. BOOT_GET_FW_VER response

Bootloader sends this response after BOOT_GET_FW_VER command processing. The response contains Bootloader version number.

To ease data processing boot_rsp_get_fw_ver structure can be used:

typedef struct
{
   unsigned char cmd;  /* command code, see BOOT_xxx constants */
   unsigned char echo;  /* echo is used to link between command and response */
   unsigned char major;
   unsigned char minor;
   unsigned char sub_minor;
} boot_rsp_get_fw_ver;

Fields assignment:

cmd

Command code. cmd field contains BOOT_GET_FW_VER constant value for the given response.

echo

Package ID. Bootloader copies it from the corresponding command before the response is sent. Therefore, when response is received, PC program can associate this response with previously sent command.

major

Major version number.

minor

Minor version number.

sub_minor

Sub minor version number.