MySensors Library & Examples  2.3.2-36-g2e00bf6
Public Attributes | List of all members

Detailed Description

FW config structure, stored in eeprom.

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)

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 packetLen
 packet length
 
uint8_t recipient
 payload recipient More...
 
uint8_t version
 header version (20180128tk: >=3.0.0 fused with controlFlags) More...
 
uint8_t sender
 payload sender More...
 
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.
 
}; 
 
uint8_t payloadLen
 Length of payload (excluding header)
 
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.
 
}; 
 

Member Data Documentation

◆ data

uint8_t __attribute__::data

Block data.

RAW.

RAW data access.

Definition at line 157 of file MyOTAFirmwareUpdate.h.

◆ payload

uint8_t __attribute__::payload[RFM95_MAX_PAYLOAD_LEN]

Union: Data Payload, i.e. MySensors message.

Payload, i.e. MySensors message.

Definition at line 305 of file RFM69_new.h.

◆ recipient

uint8_t __attribute__::recipient

payload recipient

Payload recipient.

Definition at line 278 of file RFM69_new.h.

◆ RSSI [1/2]

rfm95_RSSI_t __attribute__::RSSI

RSSI.

RSSI of current packet, RSSI = value - 137.

Definition at line 239 of file RFM95.h.

◆ RSSI [2/2]

rfm95_RSSI_t __attribute__::RSSI

RSSI.

RSSI of current packet, RSSI = value - 137.

Definition at line 290 of file RFM69_new.h.

◆ sender

uint8_t __attribute__::sender

payload sender

Payload sender.

Definition at line 280 of file RFM69_new.h.

◆ sequenceNumber [1/2]

rfm95_sequenceNumber_t __attribute__::sequenceNumber

Packet sequence number, used for ACK.

sequence number

Definition at line 231 of file RFM95.h.

◆ sequenceNumber [2/2]

rfm95_sequenceNumber_t __attribute__::sequenceNumber

packet sequence number, used for ACK

sequence number

Definition at line 282 of file RFM69_new.h.

◆ SNR

rfm95_SNR_t __attribute__::SNR

SNR.

SNR of current packet.

Definition at line 240 of file RFM95.h.

◆ version [1/2]

uint8_t __attribute__::version

Version of config.

Header version.

Definition at line 119 of file MyOTAFirmwareUpdate.h.

◆ version [2/2]

uint8_t __attribute__::version

header version (20180128tk: >=3.0.0 fused with controlFlags)

Header version.

Definition at line 279 of file RFM69_new.h.


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