RadioLib
Universal wireless communication library for Arduino
|
Abstraction of AX.25 frame format. More...
#include <AX25.h>
Public Member Functions | |
AX25Frame (const char *destCallsign, uint8_t destSSID, const char *srcCallsign, uint8_t srcSSID, uint8_t control) | |
Overloaded constructor, for frames without info field. More... | |
AX25Frame (const char *destCallsign, uint8_t destSSID, const char *srcCallsign, uint8_t srcSSID, uint8_t control, uint8_t protocolID, const char *info) | |
Overloaded constructor, for frames with C-string info field. More... | |
AX25Frame (const char *destCallsign, uint8_t destSSID, const char *srcCallsign, uint8_t srcSSID, uint8_t control, uint8_t protocolID, uint8_t *info, uint16_t infoLen) | |
Default constructor. More... | |
AX25Frame (const AX25Frame &frame) | |
Copy constructor. More... | |
~AX25Frame () | |
Default destructor. | |
AX25Frame & | operator= (const AX25Frame &frame) |
Overload for assignment operator. More... | |
int16_t | setRepeaters (char **repeaterCallsigns, uint8_t *repeaterSSIDs, uint8_t numRepeaters) |
Method to set the repeater callsigns and SSIDs. More... | |
void | setRecvSequence (uint8_t seqNumber) |
Method to set receive sequence number. More... | |
void | setSendSequence (uint8_t seqNumber) |
Method to set send sequence number. More... | |
Public Attributes | |
char | destCallsign [RADIOLIB_AX25_MAX_CALLSIGN_LEN+1] |
Callsign of the destination station. | |
uint8_t | destSSID |
SSID of the destination station. | |
char | srcCallsign [RADIOLIB_AX25_MAX_CALLSIGN_LEN+1] |
Callsign of the source station. | |
uint8_t | srcSSID |
SSID of the source station. | |
uint8_t | numRepeaters |
Number of repeaters to be used. | |
uint8_t | control |
The control field. | |
uint8_t | protocolID |
The protocol identifier (PID) field. | |
uint16_t | infoLen |
Number of bytes in the information field. | |
uint8_t | rcvSeqNumber |
Receive sequence number. | |
uint16_t | sendSeqNumber |
Send sequence number. | |
uint8_t * | info |
The info field. | |
char ** | repeaterCallsigns |
Array of repeater callsigns. | |
uint8_t * | repeaterSSIDs |
Array of repeater SSIDs. | |
Abstraction of AX.25 frame format.
AX25Frame::AX25Frame | ( | const char * | destCallsign, |
uint8_t | destSSID, | ||
const char * | srcCallsign, | ||
uint8_t | srcSSID, | ||
uint8_t | control | ||
) |
Overloaded constructor, for frames without info field.
destCallsign | Callsign of the destination station. |
destSSID | SSID of the destination station. |
srcCallsign | Callsign of the source station. |
srcSSID | SSID of the source station. |
control | The control field. |
AX25Frame::AX25Frame | ( | const char * | destCallsign, |
uint8_t | destSSID, | ||
const char * | srcCallsign, | ||
uint8_t | srcSSID, | ||
uint8_t | control, | ||
uint8_t | protocolID, | ||
const char * | info | ||
) |
Overloaded constructor, for frames with C-string info field.
destCallsign | Callsign of the destination station. |
destSSID | SSID of the destination station. |
srcCallsign | Callsign of the source station. |
srcSSID | SSID of the source station. |
control | The control field. |
protocolID | The protocol identifier (PID) field. Set to zero if the frame doesn't have this field. |
info | Information field, in the form of null-terminated C-string. |
AX25Frame::AX25Frame | ( | const char * | destCallsign, |
uint8_t | destSSID, | ||
const char * | srcCallsign, | ||
uint8_t | srcSSID, | ||
uint8_t | control, | ||
uint8_t | protocolID, | ||
uint8_t * | info, | ||
uint16_t | infoLen | ||
) |
Default constructor.
destCallsign | Callsign of the destination station. |
destSSID | SSID of the destination station. |
srcCallsign | Callsign of the source station. |
srcSSID | SSID of the source station. |
control | The control field. |
protocolID | The protocol identifier (PID) field. Set to zero if the frame doesn't have this field. |
info | Information field, in the form of arbitrary binary buffer. |
infoLen | Number of bytes in the information field. |
AX25Frame::AX25Frame | ( | const AX25Frame & | frame | ) |
Copy constructor.
frame | AX25Frame instance to copy. |
Overload for assignment operator.
frame | rvalue AX25Frame. |
void AX25Frame::setRecvSequence | ( | uint8_t | seqNumber | ) |
Method to set receive sequence number.
seqNumber | Sequence number to set, 0 to 7. |
int16_t AX25Frame::setRepeaters | ( | char ** | repeaterCallsigns, |
uint8_t * | repeaterSSIDs, | ||
uint8_t | numRepeaters | ||
) |
Method to set the repeater callsigns and SSIDs.
repeaterCallsigns | Array of repeater callsigns in the form of null-terminated C-strings. |
repeaterSSIDs | Array of repeater SSIDs. |
numRepeaters | Number of repeaters, maximum is 8. |
void AX25Frame::setSendSequence | ( | uint8_t | seqNumber | ) |
Method to set send sequence number.
seqNumber | Sequence number to set, 0 to 7. |