32 #include "generated/airframe.h"
41 #define XBEE_START 0x7e
49 #define XBEE_GOT_START 1
50 #define XBEE_GOT_LENGTH_MSB 2
51 #define XBEE_GOT_LENGTH_LSB 3
52 #define XBEE_GOT_PAYLOAD 4
102 if (c + t->
cs_rx != 0xff) {
137 #define XBeeCheckAndParse(_dev, _trans) xbee_check_and_parse(&(_dev).device, &(_trans))
struct xbee_transport xbee_tp
volatile bool_t msg_received
message received flag
Generic reception transport header.
Generic transmission transport header.
uint8_t payload[TRANSPORT_PAYLOAD_LEN]
payload buffer
#define XbeeGetRSSI(_payload)
Configuration for 2.4GHz "series 1" and 900MHz modules.
Handling of messages coming from ground and other A/Cs.
#define XBEE_GOT_LENGTH_MSB
volatile uint8_t payload_len
payload buffer length
void * periph
pointer to parent implementation
#define XBEE_RFDATA_OFFSET
void xbee_init(void)
Initialisation in API mode and setting of the local address FIXME: busy wait.
static void parse_xbee(struct xbee_transport *t, uint8_t c)
Parsing a XBee API frame.
get_byte_t get_byte
get a new char
#define XBEE_UNINIT
Status of the API packet receiver automata.
static const struct usb_device_descriptor dev
static void xbee_check_and_parse(struct link_device *dev, struct xbee_transport *trans)
struct transport_rx trans_rx
uint8_t dl_buffer[MSG_SIZE]
char_available_t char_available
check if a new character is available
static void xbee_parse_payload(struct xbee_transport *t)
Parsing a frame data and copy the payload to the datalink buffer.
#define XBEE_GOT_LENGTH_LSB
uint8_t error
overrun and error flags
Configuration for 868MHz modules.
struct transport_tx trans_tx