Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
epacket_v0_unversioned_frame_format Struct Reference

Unversioned data frame. More...

#include <common.h>

Data Fields

union { 
   struct { 
      uint8_t   type 
 Payload type. More...
      uint16_t   flags 
 Payload flags. More...
      uint8_t   key_identifier [3] 
 Network or device key identifier. More...
      uint32_t   device_id_upper 
 Infuse device ID (upper 4 bytes) More...
   } 
   uint8_t   raw [10] 
 Raw associated data bytes. More...
} associated_data
 AEAD associated data.
union { 
   struct { 
      uint32_t   device_id_lower 
 Infuse device ID (lower 4 bytes) More...
      uint32_t   gps_time 
 Local GPS time (seconds) More...
      uint16_t   sequence 
 Packet sequence number. More...
      uint16_t   entropy 
 Random entropy. More...
   } 
   uint8_t   raw [12] 
 Raw nonce bytes. More...
} nonce
 AEAD encryption nonce (IV)
uint8_t ciphertext_tag []
 Ciphertext + tag bytes.

Detailed Description

Unversioned data frame.

Field Documentation

◆ [union]

union { ... } epacket_v0_unversioned_frame_format::associated_data

AEAD associated data.

◆ ciphertext_tag

uint8_t epacket_v0_unversioned_frame_format::ciphertext_tag[]

Ciphertext + tag bytes.

◆ device_id_lower

uint32_t epacket_v0_unversioned_frame_format::device_id_lower

Infuse device ID (lower 4 bytes)

◆ device_id_upper

uint32_t epacket_v0_unversioned_frame_format::device_id_upper

Infuse device ID (upper 4 bytes)

◆ entropy

uint16_t epacket_v0_unversioned_frame_format::entropy

Random entropy.

◆ flags

uint16_t epacket_v0_unversioned_frame_format::flags

Payload flags.

◆ gps_time

uint32_t epacket_v0_unversioned_frame_format::gps_time

Local GPS time (seconds)

◆ key_identifier

uint8_t epacket_v0_unversioned_frame_format::key_identifier[3]

Network or device key identifier.

◆ [union]

union { ... } epacket_v0_unversioned_frame_format::nonce

AEAD encryption nonce (IV)

◆ raw

uint8_t epacket_v0_unversioned_frame_format::raw[12]

Raw associated data bytes.

Raw nonce bytes.

◆ sequence

uint16_t epacket_v0_unversioned_frame_format::sequence

Packet sequence number.

◆ type

uint8_t epacket_v0_unversioned_frame_format::type

Payload type.


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