Ares LoRa Firmware
Loading...
Searching...
No Matches
ares_frame Struct Reference

Structured representation of an ares frame. More...

#include <frame.h>

Data Fields

enum ares_frame_type type
union { 
   struct { 
      uint16_t   setting 
      uint32_t   value 
      bool   set 
   }   SETTING
 ARES_FRAME_SETTING.
   struct { 
      int64_t   sec 
      uint64_t   ns 
      uint16_t   id 
      uint16_t   packet_id 
      bool   broadcast 
      uint8_t   seq_cnt 
   }   START
 ARES_FRAME_START.
   struct { 
      uint32_t   freq_hz 
      uint16_t   preamble_len 
      uint8_t   bandwidth 
      uint8_t   data_rate 
      uint8_t   coding_rate 
      int8_t   tx_pow_dbm 
      uint8_t   cad_mode 
      uint8_t   cad_symbol_num 
      uint8_t   cad_detection_peak 
      uint8_t   cad_detection_min 
   }   LORA_CONFIG
 ARES_FRAME_LORA_CONFIG.
   struct { 
      struct { 
         uint8_t   ready: 1 
         uint8_t   broadcast: 1 
         uint8_t   padding: 6 
      }   flags
      uint8_t   tx_count 
      uint16_t   id 
   }   HEARTBEAT
 ARES_FRAME_HEARTBEAT.
   struct { 
      uint8_t   led 
      uint8_t   state 
   }   LED
 ARES_FRAME_LED.
   uint16_t   CLAIM 
 ARES_FRAME_CLAIM.
   struct { 
      bool   broadcast 
      uint8_t   tx_cnt 
      uint8_t   part 
      uint8_t   num_parts 
      uint16_t   id 
      uint16_t   log_id 
      size_t   msg_len 
      const char *   msg 
   }   LOG
 ARES_FRAME_LOG.
   struct { 
      uint8_t   part 
      uint8_t   num_parts 
      uint16_t   id 
      uint16_t   log_id 
   }   LOG_ACK
 ARES_FRAME_LOG_ACK.
   struct { 
      uint32_t   app 
      uint32_t   ncs 
      uint32_t   kernel 
   }   VERSION
 ARES_FRAME_VERSION.
   int   ACK 
 ARES_FRAME_ACK.
   enum ares_frame_error   FRAMING_ERROR 
 ARES_FRAME_FRAMING_ERROR.
   int   DBG 
 ARES_FRAME_DBG.
   struct { 
      uint16_t   packet_id 
      uint16_t   src_id 
      uint8_t   seq_cnt 
   }   PKT_RX
 ARES_FRAME_PKT_RX.
   uint32_t   PKT_TX 
 ARES_FRAME_PKT_TX.
payload

Detailed Description

Structured representation of an ares frame.

Field Documentation

◆ [union]

union { ... } ares_frame::payload

Frame payload.

◆ type

enum ares_frame_type ares_frame::type

Frame type.


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