|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
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. | |
Unversioned data frame.
| union { ... } epacket_v0_unversioned_frame_format::associated_data |
AEAD associated data.
| uint8_t epacket_v0_unversioned_frame_format::ciphertext_tag[] |
Ciphertext + tag bytes.
| uint32_t epacket_v0_unversioned_frame_format::device_id_lower |
Infuse device ID (lower 4 bytes)
| uint32_t epacket_v0_unversioned_frame_format::device_id_upper |
Infuse device ID (upper 4 bytes)
| uint16_t epacket_v0_unversioned_frame_format::entropy |
Random entropy.
| uint16_t epacket_v0_unversioned_frame_format::flags |
Payload flags.
| uint32_t epacket_v0_unversioned_frame_format::gps_time |
Local GPS time (seconds)
| uint8_t epacket_v0_unversioned_frame_format::key_identifier[3] |
Network or device key identifier.
| union { ... } epacket_v0_unversioned_frame_format::nonce |
AEAD encryption nonce (IV)
| uint8_t epacket_v0_unversioned_frame_format::raw[12] |
Raw associated data bytes.
Raw nonce bytes.
| uint16_t epacket_v0_unversioned_frame_format::sequence |
Packet sequence number.
| uint8_t epacket_v0_unversioned_frame_format::type |
Payload type.