AX25
Files | |
file | ax25.h |
AX.25 module. | |
Data Structures | |
struct | ax25_addr_s |
Macros | |
#define | AX25_BUFFER_SIZE 255 |
#define | AX25_CHAR(c) ((char) ((c) << 1)) |
#define | AX25_ADDR_NOCALL |
#define | AX25_UI_CONTROL 0x03 |
#define | AX25_UI_PROTOCOL 0xF0 |
#define | ax25_ui_pkt_build(info, addrs, addrs_len) |
Typedefs | |
typedef struct ax25_addr_s | ax25_addr_t |
Functions | |
ax25_addr_t | ax25_addr_init (char *addr) |
Turn an ASCII encoded callsign / SSID into the 7-bit encoded and space padded 7 byte address that is used by AX.25. More... | |
void | ax25_print_addr (char *prefix, ax25_addr_t addr) |
Prints an AX.25 address using printf with the passed in prefix. More... | |
k_buffer_t * | ax25_pkt_build (k_buffer_t *info, ax25_addr_t *addrs, uint8_t addrs_len, uint8_t ctrl, uint8_t protocol) |
Macro Definition Documentation
#define AX25_ADDR_NOCALL |
#define AX25_BUFFER_SIZE 255 |
#define AX25_CHAR | ( | c | ) | ((char) ((c) << 1)) |
#define AX25_UI_CONTROL 0x03 |
#define ax25_ui_pkt_build | ( | info, | |
addrs, | |||
addrs_len | |||
) |
Value:
ax25_pkt_build(info, addrs, addrs_len, AX25_UI_CONTROL, \
k_buffer_t * ax25_pkt_build(k_buffer_t *info, ax25_addr_t *addrs, uint8_t addrs_len, uint8_t ctrl, uint8_t protocol)
#define AX25_UI_PROTOCOL 0xF0 |
Typedef Documentation
typedef struct ax25_addr_s ax25_addr_t |
Function Documentation
ax25_addr_t ax25_addr_init | ( | char * | addr | ) |
Turn an ASCII encoded callsign / SSID into the 7-bit encoded and space padded 7 byte address that is used by AX.25.
Callsign and SSID should be separated by a '-' (dash)
Examples: ax25_addr_init("MYCALL") (default SSID=0) ax25_addr_init("MYCALL-1")
k_buffer_t* ax25_pkt_build | ( | k_buffer_t * | info, |
ax25_addr_t * | addrs, | ||
uint8_t | addrs_len, | ||
uint8_t | ctrl, | ||
uint8_t | protocol | ||
) |
void ax25_print_addr | ( | char * | prefix, |
ax25_addr_t | addr | ||
) |
Prints an AX.25 address using printf with the passed in prefix.