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

The structure for a response from the Astrodev radio. More...

#include <astrodev.h>

Public Attributes

uint8_t ack: 4
 The acknowledgement from the radio.
 
bool buffer_full: 1
 Whether or not the buffer is full.
 
bool gpio_a_high: 1
 Whether or not the GPIO A pin is on.
 
bool gpio_b_high: 1
 Whether or not the GPIO B pin is on.
 
bool external_event_high: 1
 Whether or not an external event has been triggered.
 

Detailed Description

The structure for a response from the Astrodev radio.

This defines the structure of a response to a command from the Teensy. The response from the radio replaces the high byte of the payload size field. See frame for more information.

The reply consists of five members: an acknowledgement from the radio (ack), the status of the buffer (buffer_full), the status of the GPIO pins (gpio_a_high and gpio_b_high), and the status of an external event trigger (external_event_high).A diagram of the struct is included below.

   4 bits  1 bit         1 bit         1 bit         1 bit
   +-------+-------------+-------------+-------------+---------------------+
   |  ack  | buffer_full | gpio_a_high | gpio_b_high |
external_event_high |
   +-------+-------------+-------------+-------------+---------------------+

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