Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
Cosmos::Support::Ax25Handle Class Reference

Classes

struct  packet_content
 
struct  packet_header
 

Public Member Functions

 Ax25Handle (string dest_call, string sour_call, uint8_t dest_stat, uint8_t sour_stat, uint8_t cont, uint8_t prot)
 
void set_destination_callsign (string destination)
 
string get_destination_callsign ()
 
void set_destination_stationID (uint8_t ID)
 
uint8_t get_destination_stationID ()
 
void set_source_callsign (string source)
 
string get_source_callsign ()
 
void set_source_stationID (uint8_t ID)
 
uint8_t get_source_stationID ()
 
void set_control (uint8_t control_number)
 
uint8_t get_control ()
 
void set_protocolID (uint8_t protocol)
 
uint8_t get_protocolID ()
 
packet_header get_header ()
 
vector< uint8_t > get_data ()
 
vector< uint8_t > get_ax25_packet ()
 
vector< uint8_t > get_hdlc_packet ()
 
int32_t set_data (vector< uint8_t > input)
 
int32_t set_ax25_packet (vector< uint8_t > packet)
 
int32_t set_hdlc_packet (vector< uint8_t > packet)
 
int32_t unload (bool checkcrc=true)
 
int32_t load (vector< uint8_t > data={})
 
int32_t stuff (vector< uint8_t > ax25data={}, uint8_t flagcount=2, uint8_t flag=0x7e)
 
int32_t unstuff (vector< uint8_t > hdlcdata={}, uint8_t flag=0x7e)
 

Public Attributes

vector< uint8_t > hdlc_packet
 
vector< uint8_t > ax25_packet
 

Friends

::std::ostream & operator<< (::std::ostream &out, Ax25Handle &K)
 

The documentation for this class was generated from the following files: