Ke Ao Teensy Flight Software
The software on the Teensy in the Ke Ao cubesat.
Loading...
Searching...
No Matches
Artemis::Devices::Astrodev::frame::frame_header Union Reference

The header of the radio data frame. More...

#include <astrodev.h>

Classes

struct  header
 The Astrodev frame header structure. More...
 

Public Attributes

struct Artemis::Devices::Astrodev::frame::frame_header::header header
 
uint8_t header_bytes [8]
 Direct header/preamble bytes.
 

Detailed Description

The header of the radio data frame.

This field can be used in two ways:

  • By accessing the fields of the pre-defined header struct.
  • By directly accessing the bytes of the header_bytes.

Member Data Documentation

◆ header

A diagram of the struct is included below.

    Header of an Astrodev frame from Teensy to radio
   1 byte    1 byte    1 byte          1 byte      1 byte     1 byte
2 bytes
   +---------+---------+---------------+-----------+----------+----------+--------+
   |  sync0  |  sync1  |  destination  |  command  |  sizehi  |
sizelo  |   cs   |
   +---------+---------+---------------+-----------+----------+----------+--------+

   Header of an Astrodev frame from radio to Teensy
   1 byte    1 byte    1 byte          1 byte      1 byte     1 byte
2 bytes
   +---------+---------+---------------+-----------+----------+----------+--------+
   |  sync0  |  sync1  |  destination  |  command  |  status  |
sizelo  |   cs   |
   +---------+---------+---------------+-----------+----------+----------+--------+

◆ header_bytes

uint8_t Artemis::Devices::Astrodev::frame::frame_header::header_bytes[8]

Direct header/preamble bytes.

This field allows direct access to the eight-byte preamble of an Astrodev frame, rather than using the pre-defined header struct.


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