39 #define PACKETMAX 1024 48 uint8_t destination_callsign[6];
49 uint8_t destination_stationID;
50 uint8_t source_callsign[6];
51 uint8_t source_stationID;
52 uint8_t control = 0x03;
53 uint8_t protocolID = 0xf0;
62 Ax25Handle(
string dest_call=
"",
string sour_call=
"", uint8_t dest_stat=0x60, uint8_t sour_stat=0x61, uint8_t cont=0x03, uint8_t prot=0xf0);
packet_header get_packetHeader()
Definition: ax25class.cpp:140
void set_destination_stationID(uint8_t ID)
Definition: ax25class.cpp:70
uint8_t get_source_stationID()
Definition: ax25class.cpp:113
void set_control(uint8_t control_number)
Definition: ax25class.cpp:118
Definition: ax25class.h:56
vector< uint8_t > data
Definition: ax25class.h:59
int count
Definition: rw_test.cpp:36
vector< uint8_t > get_packetData()
Definition: ax25class.cpp:145
packet_header header
Definition: ax25class.h:84
int32_t load_packet()
Definition: ax25class.cpp:162
void set_source_callsign(string source)
Definition: ax25class.cpp:81
static string destination
Definition: ax25_recv.cpp:43
uint8_t get_protocolID()
Definition: ax25class.cpp:135
Definition: pic_lib.h:128
packet_header header
Definition: ax25class.h:58
vector< uint8_t > data
Definition: ax25class.h:85
int32_t error
Definition: ax25class.h:87
string get_source_callsign()
Definition: ax25class.cpp:97
Definition: ax25class.h:42
friend std::ostream & operator<<(std::ostream &out, Ax25Handle &K)
Definition: ax25class.cpp:180
vector< uint8_t > raw_packet
Definition: ax25class.h:86
void set_source_stationID(uint8_t ID)
Definition: ax25class.cpp:107
Headers and definitions common to all COSMOS.
void set_destination_callsign(string destination)
Definition: ax25class.cpp:44
int32_t set_raw_packet(vector< uint8_t > packet)
Definition: ax25class.cpp:156
uint8_t get_control()
Definition: ax25class.cpp:124
int32_t unload_packet()
Definition: ax25class.cpp:172
Ax25Handle(string dest_call="", string sour_call="", uint8_t dest_stat=0x60, uint8_t sour_stat=0x61, uint8_t cont=0x03, uint8_t prot=0xf0)
Definition: ax25class.cpp:33
void print_hex(unsigned char *packet, unsigned int count)
static string source
Definition: ax25_recv.cpp:42
string get_destination_callsign()
Definition: ax25class.cpp:60
void print_ascii(unsigned char *packet, unsigned int count)
void set_protocolID(uint8_t protocol)
Definition: ax25class.cpp:129
uint8_t get_destination_stationID()
Definition: ax25class.cpp:76
int32_t set_packetData(vector< uint8_t > input)
Definition: ax25class.cpp:150