// MESSAGE BOOT PACKING#define MESSAGE_ID_BOOT 1/** * @brief Send a boot message * * @param version The onboard software version * @return length of the message in bytes (excluding serial stream start sign) */staticinlineuint16_tmessage_boot_pack(uint8_tsystem_id,CommMessage_t*msg,uint32version){msg->msgid=MESSAGE_ID_BOOT;uint16_ti=0;i+=put_uint32_by_index(version,i,msg->payload);//The onboard software versionreturnfinalize_message(msg,system_id,i);}// MESSAGE BOOT UNPACKING/** * @brief Get field version from boot message * * @return The onboard software version */staticinlineuint32message_boot_get_version(CommMessage_t*msg){return*((uint32*)(void*)msg->payload);}