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

The PDU telemetry packet structure. More...

#include <pdu.h>

Public Attributes

PDU_Type type = PDU_Type::DataSwitchTelem
 The type of packet.
 
uint8_t sw_state [12]
 The switch state data.
 

Detailed Description

The PDU telemetry packet structure.

This defines the structure of a PDU telemetry packet.

The PDU packet consists of two members: the type of packet (type), and the switch state data (sw_state[]).A diagram of the struct is included below.

 1 byte 12 bytes
+------+------------+
| type | sw_state[] |
+------+------------+

Member Data Documentation

◆ sw_state

uint8_t Artemis::Devices::PDU::pdu_telem::sw_state[12]

The switch state data.

The switch state values are stored as an array of unsigned integer values. Each value in the array corresponds to a switch's status. Values greater than zero are on, and zero or less is off.

Todo:
update array size to be a macro constant

◆ type

PDU_Type Artemis::Devices::PDU::pdu_telem::type = PDU_Type::DataSwitchTelem

The type of packet.

The PDU_Type of the packet, which is set to DataSwitchTelem.


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