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_tax25_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
Value:
{ .callsign = { \
AX25_CHAR('N'), AX25_CHAR('0'), AX25_CHAR('C'), AX25_CHAR('A'), \
AX25_CHAR('L'), AX25_CHAR('L') }, .ssid = AX25_CHAR('0') }
#define AX25_CHAR(c)
Definition: ax25.h:42
#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
Definition: ax25.h:48
#define AX25_UI_CONTROL
Definition: ax25.h:47
#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.