![]() |
MySensors Library & Examples
2.3.2-97-g788a030c
|
FW config structure, stored in eeprom.
SX126x LoRa ACK packet structure.
SX126x LoRa header.
LoRa packet structure.
RFM95 LoRa ACK packet structure.
RFM95 LoRa header.
Packet structure IMPORTANT: Do not change order.
RFM69 ACK packet structure.
RFM69 header IMPORTANT: Do not change order (see datasheet for packet structure)
Packet structure.
cc1101 ACK packet structure
cc1101 header
FW block reply structure (RLE)
FW block reply structure.
FW block request structure.
FW config request structure.
Definition at line 117 of file MyOTAFirmwareUpdate.h.
#include <MyOTAFirmwareUpdate.h>
Collaboration diagram for __attribute__:Public Attributes | |
| uint16_t | type |
| Type of config. | |
| uint16_t | version |
| Version of config. More... | |
| uint16_t | blocks |
| Number of blocks. | |
| uint16_t | crc |
| CRC of block data. | |
| uint16_t | BLVersion |
| Bootloader version. | |
| uint8_t | blockSize |
| Blocksize, when protocol version >= 3.1 is reported. Otherwhise the blocksize is 16. | |
| uint8_t | img_commited |
| mcuboot image_ok attribute commited firmware=0x01(mcuboot)|0x02(DualOptiboot), when protocol version >= 3.1 is reported | |
| uint16_t | img_revision |
| mcuboot revision attribute, when protocol version >= 3.1 is reported | |
| uint32_t | img_build_num |
| mcuboot build_num attribute, when protocol version >= 3.1 is reported | |
| uint16_t | block |
| Block index. | |
| uint8_t | data [FIRMWARE_BLOCK_SIZE] |
| Block data. More... | |
| uint16_t | number_of_blocks |
| Number of blocks to fill with data. | |
| uint8_t | length |
| Length of data - 1 byte. | |
| uint8_t | recipient |
| Payload recipient. More... | |
| uint8_t | version |
| Header version. More... | |
| uint8_t | sender |
| Payload sender. More... | |
| cc1101_controlFlags_t | controlFlags |
| Control flags, used for ACK. | |
| cc1101_sequenceNumber_t | sequenceNumber |
| Packet sequence number, used for ACK. More... | |
| cc1101_RSSI_t | RSSI |
| RSSI. More... | |
| cc1101_LQI_t | LQI |
| LQI. More... | |
| union { | |
| struct { | |
| cc1101_header_t header | |
| header | |
| union { | |
| uint8_t payload [CC1101_MAX_PAYLOAD_LEN] | |
| message More... | |
| cc1101_ack_t ACK | |
| Union: ACK. | |
| } | |
| } | |
| uint8_t data [CC1101_MAX_PACKET_LEN] | |
| RAW. | |
| }; | |
| uint8_t | payloadLen |
| Length of payload (excluding header) | |
| uint8_t | packetLen |
| packet length | |
| rfm69_controlFlags_t | controlFlags |
| control flags, used for ACK | |
| rfm69_sequenceNumber_t | sequenceNumber |
| packet sequence number, used for ACK More... | |
| rfm69_RSSI_t | RSSI |
| RSSI. More... | |
| union { | |
| struct { | |
| rfm69_header_t header | |
| Packet header. | |
| union { | |
| uint8_t payload [RFM69_MAX_PAYLOAD_LEN] | |
| Union: Data Payload, i.e. MySensors message. | |
| rfm69_ack_t ACK | |
| Union: ACK payload (internal) | |
| } | |
| } | |
| uint8_t data [RFM69_MAX_PACKET_LEN] | |
| RAW data access. | |
| }; | |
| rfm95_controlFlags_t | controlFlags |
| Control flags, used for ACK. | |
| rfm95_sequenceNumber_t | sequenceNumber |
| Packet sequence number, used for ACK. More... | |
| rfm95_RSSI_t | RSSI |
| RSSI. More... | |
| rfm95_SNR_t | SNR |
| SNR. More... | |
| union { | |
| struct { | |
| rfm95_header_t header | |
| LoRa header. | |
| union { | |
| uint8_t payload [RFM95_MAX_PAYLOAD_LEN] | |
| Payload, i.e. MySensors message. | |
| rfm95_ack_t ACK | |
| Union: ACK. | |
| } | |
| } | |
| uint8_t data [RFM95_MAX_PACKET_LEN] | |
| RAW. | |
| }; | |
| sx126x_controlFlags_t | controlFlags |
| Control flags, used for ACK. | |
| sx126x_sequenceNumber_t | sequenceNumber |
| Packet sequence number, used for ACK. More... | |
| sx126x_RSSI_t | RSSI |
| RSSI. More... | |
| sx126x_SNR_t | SNR |
| SNR. More... | |
| union { | |
| struct { | |
| sx126x_header_t header | |
| LoRa header. | |
| union { | |
| uint8_t payload [SX126x_MAX_PAYLOAD_LEN] | |
| Payload, i.e. MySensors message. | |
| sx126x_ack_t ACK | |
| Union: ACK. | |
| } | |
| } | |
| uint8_t data [SX126x_MAX_PACKET_LEN] | |
| RAW. | |
| }; | |
| uint8_t __attribute__::data |
| cc1101_LQI_t __attribute__::LQI |
| uint8_t __attribute__::payload[SX126x_MAX_PAYLOAD_LEN] |
| uint8_t __attribute__::recipient |
| rfm95_RSSI_t __attribute__::RSSI |
| sx126x_RSSI_t __attribute__::RSSI |
| rfm69_RSSI_t __attribute__::RSSI |
| sx126x_RSSI_t __attribute__::RSSI |
| uint8_t __attribute__::sender |
| rfm95_sequenceNumber_t __attribute__::sequenceNumber |
| sx126x_sequenceNumber_t __attribute__::sequenceNumber |
| rfm69_sequenceNumber_t __attribute__::sequenceNumber |
| sx126x_sequenceNumber_t __attribute__::sequenceNumber |
| sx126x_SNR_t __attribute__::SNR |
| sx126x_SNR_t __attribute__::SNR |
| uint8_t __attribute__::version |
Version of config.
Header version.
header version (20180128tk: >=3.0.0 fused with controlFlags)
Definition at line 119 of file MyOTAFirmwareUpdate.h.
| uint8_t __attribute__::version |