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::header Struct Reference

The Astrodev frame header structure. More...

#include <astrodev.h>

Classes

union  header_size_response
 The payload size/radio status field. More...
 

Public Attributes

uint8_t sync0
 The first synchronization byte.
 
uint8_t sync1
 The second synchronization byte.
 
uint8_t destination
 The destination of the frame.
 
Command command
 The packet command.
 
union Artemis::Devices::Astrodev::frame::frame_header::header::header_size_response header_size_response
 
uint8_t sizelo
 The low byte of the payload size value.
 
uint16_t cs
 Header checksum.
 

Detailed Description

The Astrodev frame header structure.

This structure defines the header for frames used to communicate with the Astrodev radio.

This struct contains seven members: syncronization characters (sync0 and sync1), the command (destination and command), a union between the size of the payload and the response from the radio (status, sizehi, sizelo), and a header checksum (cs).

Member Data Documentation

◆ command

Command Artemis::Devices::Astrodev::frame::frame_header::header::command

The packet command.

This represents the operation of the command, and corresponds to the low byte of the opcode. This identifies what the packet does and what sort of payload to expect.

See also
Command for listing of Astrodev commands.

◆ cs

uint16_t Artemis::Devices::Astrodev::frame::frame_header::header::cs

Header checksum.

This is a two-byte checksum appended to the end of the frame header.

◆ destination

uint8_t Artemis::Devices::Astrodev::frame::frame_header::header::destination

The destination of the frame.

This identifies the direction of travel for the frame and corresponds to the high byte of the opcode.

Possible options are:

  • TORADIO (0x10): A command being sent from the Teensy to the radio.
  • TOTEENSY (0x20): A response being sent from the radio to the Teensy.

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