#include <ax25class.h>
      
        
          | Ax25Handle::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 | 
        
          |  | ) |  |  | 
      
 
void set_destination_stationID(uint8_t ID)
Definition: ax25class.cpp:70
void set_control(uint8_t control_number)
Definition: ax25class.cpp:118
void set_source_callsign(string source)
Definition: ax25class.cpp:81
void set_source_stationID(uint8_t ID)
Definition: ax25class.cpp:107
void set_destination_callsign(string destination)
Definition: ax25class.cpp:44
void set_protocolID(uint8_t protocol)
Definition: ax25class.cpp:129
 
 
  
  | 
        
          | struct Ax25Handle::__attribute__ | ( | (packed) |  | ) |  |  | inline | 
 
   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;
  
 
      
        
          | void Ax25Handle::set_destination_callsign | ( | string | destination | ) |  | 
      
 
   46     for (uint16_t 
i=0; 
i<6; ++
i)
    50             header.destination_callsign[
i] = 0x20 << 1;
 int i
Definition: rw_test.cpp:37
packet_header header
Definition: ax25class.h:84
static string destination
Definition: ax25_recv.cpp:43
 
 
      
        
          | string Ax25Handle::get_destination_callsign | ( |  | ) |  | 
      
 
   63     for (uint8_t byte : 
header.destination_callsign)
    65         callsign.push_back(byte >> 1);
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | void Ax25Handle::set_destination_stationID | ( | uint8_t | ID | ) |  | 
      
 
   72     header.destination_stationID = ID;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | uint8_t Ax25Handle::get_destination_stationID | ( |  | ) |  | 
      
 
   78     return header.destination_stationID;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | void Ax25Handle::set_source_callsign | ( | string | source | ) |  | 
      
 
   83     for (uint16_t 
i=0; 
i<6; ++
i)
    87             header.source_callsign[
i] = 0x20 << 1;
 int i
Definition: rw_test.cpp:37
packet_header header
Definition: ax25class.h:84
static string source
Definition: ax25_recv.cpp:42
 
 
      
        
          | std::string Ax25Handle::get_source_callsign | ( |  | ) |  | 
      
 
  100     for (uint8_t byte : 
header.source_callsign)
   102         callsign.push_back(byte >> 1);
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | void Ax25Handle::set_source_stationID | ( | uint8_t | ID | ) |  | 
      
 
  109     header.source_stationID = ID;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | uint8_t Ax25Handle::get_source_stationID | ( |  | ) |  | 
      
 
  115     return header.source_stationID;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | void Ax25Handle::set_control | ( | uint8_t | control_number | ) |  | 
      
 
  120     header.control = control_number;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | uint8_t Ax25Handle::get_control | ( |  | ) |  | 
      
 
packet_header header
Definition: ax25class.h:84
 
 
      
        
          | void Ax25Handle::set_protocolID | ( | uint8_t | protocol | ) |  | 
      
 
  131     header.protocolID = protocol;
 packet_header header
Definition: ax25class.h:84
 
 
      
        
          | uint8_t Ax25Handle::get_protocolID | ( |  | ) |  | 
      
 
packet_header header
Definition: ax25class.h:84
 
 
      
        
          | Ax25Handle::packet_header Ax25Handle::get_packetHeader | ( |  | ) |  | 
      
 
packet_header header
Definition: ax25class.h:84
 
 
      
        
          | vector< uint8_t > Ax25Handle::get_packetData | ( |  | ) |  | 
      
 
vector< uint8_t > data
Definition: ax25class.h:85
 
 
      
        
          | int32_t Ax25Handle::set_packetData | ( | vector< uint8_t > | input | ) |  | 
      
 
vector< uint8_t > data
Definition: ax25class.h:85
 
 
      
        
          | int32_t Ax25Handle::set_raw_packet | ( | vector< uint8_t > | packet | ) |  | 
      
 
vector< uint8_t > raw_packet
Definition: ax25class.h:86
 
 
      
        
          | int32_t Ax25Handle::unload_packet | ( |  | ) |  | 
      
 
packet_header header
Definition: ax25class.h:84
vector< uint8_t > data
Definition: ax25class.h:85
vector< uint8_t > raw_packet
Definition: ax25class.h:86
 
 
      
        
          | int32_t Ax25Handle::load_packet | ( |  | ) |  | 
      
 
  164     int32_t tsize = 16 + 
data.size();
 packet_header header
Definition: ax25class.h:84
vector< uint8_t > data
Definition: ax25class.h:85
vector< uint8_t > raw_packet
Definition: ax25class.h:86
 
 
  
  | 
        
          | std::ostream& operator<< | ( | std::ostream & | out, |  
          |  |  | Ax25Handle & | K |  
          |  | ) |  |  |  | friend | 
 
  181     out<<
"destination callsign=<"<< K.
header.destination_callsign<<
">"<<std::endl;
   182     out<<
"destination station ID="<< K.
header.destination_stationID<<std::endl;
   183     out<<
"source callsign=<"<< K.
header.source_callsign<<
">"<<std::endl;
   184     out<<
"source station ID="<< K.
header.source_stationID<<std::endl;
   185     out<<
"control="<< K.
header.control<<std::endl;
   186     out<<
"protocol ID="<< K.
header.protocolID<<std::endl;
 packet_header header
Definition: ax25class.h:84
 
 
  
  | 
        
          | packet_header Ax25Handle::header |  | private | 
 
 
  
  | 
        
          | vector<uint8_t> Ax25Handle::data |  | private | 
 
 
  
  | 
        
          | vector<uint8_t> Ax25Handle::raw_packet |  | private | 
 
 
  
  | 
        
          | int32_t Ax25Handle::error |  | private | 
 
 
The documentation for this class was generated from the following files: