Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
xbee.h File Reference
#include "subsystems/datalink/datalink.h"
#include "generated/airframe.h"
#include "subsystems/datalink/xbee24.h"
#include "subsystems/datalink/transport.h"
+ Include dependency graph for xbee.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xbee_transport
 

Macros

#define XBEE_START   0x7e
 Constants for the API protocol. More...
 
#define TX_OPTIONS   0x00
 
#define NO_FRAME_ID   0
 
#define GROUND_STATION_ADDR   0x100
 Ground station address. More...
 
#define XBEE_MY_ADDR   AC_ID
 Initialisation in API mode and setting of the local address FIXME: busy wait. More...
 
#define XBeeAPISizeOf(_dev, _x)   (_x+5)
 
#define XBeeTransportCheckFreeSpace(_dev, x)   TransportLink(_dev, CheckFreeSpace(x))
 
#define XBeeTransportPut1Byte(_dev, x)   TransportLink(_dev, Transmit(x))
 
#define XBeeTransportSendMessage(_dev)   TransportLink(_dev, SendMessage())
 
#define XBeeTransportPutUint8(_dev, _x)
 
#define XBeeTransportPut1ByteByAddr(_dev, _byte)
 
#define XBeeTransportPut2Bytes(_dev, _x)
 
#define XBeeTransportPut2ByteByAddr(_dev, _byte)
 
#define XBeeTransportPut4ByteByAddr(_dev, _byte)
 
#define XBeeTransportPutDoubleByAddr(_dev, _byte)
 
#define XBeeTransportPutUint64ByAddr(_dev, _byte)
 
#define XBeeTransportPutInt64ByAddr(_dev, _byte)
 
#define XBeeTransportPutInt8ByAddr(_dev, _x)   XBeeTransportPut1ByteByAddr(_dev, _x)
 
#define XBeeTransportPutUint8ByAddr(_dev, _x)   XBeeTransportPut1ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutInt16ByAddr(_dev, _x)   XBeeTransportPut2ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutUint16ByAddr(_dev, _x)   XBeeTransportPut2ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutInt32ByAddr(_dev, _x)   XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutUint32ByAddr(_dev, _x)   XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutFloatByAddr(_dev, _x)   XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutNamedUint8(_dev, _name, _byte)   XBeeTransportPutUint8(_dev, _byte)
 
#define XBeeTransportPutCharByAddr(_dev, _x)   XBeeTransportPut1ByteByAddr(_dev, (const uint8_t*)_x)
 
#define XBeeTransportPutArray(_dev, _put, _n, _x)
 
#define XBeeTransportPutInt8Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutInt8ByAddr, _n, _x)
 
#define XBeeTransportPutUint8Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutUint8ByAddr, _n, _x)
 
#define XBeeTransportPutCharArray(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutCharByAddr, _n, _x)
 
#define XBeeTransportPutInt16Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutInt16ByAddr, _n, _x)
 
#define XBeeTransportPutUint16Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutUint16ByAddr, _n, _x)
 
#define XBeeTransportPutInt32Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutInt32ByAddr, _n, _x)
 
#define XBeeTransportPutUint32Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutUint32ByAddr, _n, _x)
 
#define XBeeTransportPutFloatArray(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutFloatByAddr, _n, _x)
 
#define XBeeTransportPutInt64Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutInt64ByAddr, _n, _x)
 
#define XBeeTransportPutUint64Array(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutUint64ByAddr, _n, _x)
 
#define XBeeTransportPutDoubleArray(_dev, _n, _x)   XBeeTransportPutArray(_dev, XBeeTransportPutDoubleByAddr, _n, _x)
 
#define XBeeTransportPutFixedArray(_dev, _put, _n, _x)
 
#define XBeeTransportPutInt8FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt8ByAddr, _n, _x)
 
#define XBeeTransportPutUint8FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint8ByAddr, _n, _x)
 
#define XBeeTransportPutCharFixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutCharByAddr, _n, _x)
 
#define XBeeTransportPutInt16FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt16ByAddr, _n, _x)
 
#define XBeeTransportPutUint16FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint16ByAddr, _n, _x)
 
#define XBeeTransportPutInt32FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt32ByAddr, _n, _x)
 
#define XBeeTransportPutUint32FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint32ByAddr, _n, _x)
 
#define XBeeTransportPutFloatFixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutFloatByAddr, _n, _x)
 
#define XBeeTransportPutInt64FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt64ByAddr, _n, _x)
 
#define XBeeTransportPutUint64FixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint64ByAddr, _n, _x)
 
#define XBeeTransportPutDoubleFixedArray(_dev, _n, _x)   XBeeTransportPutFixedArray(_dev, XBeeTransportPutDoubleByAddr, _n, _x)
 
#define XBeeTransportHeader(_dev, _len)
 
#define XBeeTransportTrailer(_dev)
 
#define XBEE_UNINIT   0
 Status of the API packet receiver automata. More...
 
#define XBEE_GOT_START   1
 
#define XBEE_GOT_LENGTH_MSB   2
 
#define XBEE_GOT_LENGTH_LSB   3
 
#define XBEE_GOT_PAYLOAD   4
 
#define XBeeBuffer(_dev)   TransportLink(_dev,ChAvailable())
 
#define ReadXBeeBuffer(_dev, _trans)   { while (TransportLink(_dev,ChAvailable())&&!(_trans.trans.msg_received)) parse_xbee(&(_trans),TransportLink(_dev,Getch())); }
 
#define XBeeCheckAndParse(_dev, _trans)
 
#define XBeePrintString(_dev, s)   TransportLink(_dev,PrintString(s))
 
#define XBeePrintHex16(_dev, x)   TransportLink(_dev,PrintHex16(x))
 

Functions

void xbee_init (void)
 
static void parse_xbee (struct xbee_transport *t, uint8_t c)
 Parsing a XBee API frame. More...
 
static void xbee_parse_payload (struct xbee_transport *t)
 Parsing a frame data and copy the payload to the datalink buffer. More...
 

Variables

uint8_t xbee_cs
 
uint8_t xbee_rssi
 
struct xbee_transport xbee_tp
 

Macro Definition Documentation

#define GROUND_STATION_ADDR   0x100

Ground station address.

Definition at line 44 of file xbee.h.

#define NO_FRAME_ID   0

Definition at line 41 of file xbee.h.

#define ReadXBeeBuffer (   _dev,
  _trans 
)    { while (TransportLink(_dev,ChAvailable())&&!(_trans.trans.msg_received)) parse_xbee(&(_trans),TransportLink(_dev,Getch())); }

Definition at line 275 of file xbee.h.

#define TX_OPTIONS   0x00

Definition at line 40 of file xbee.h.

#define XBEE_GOT_LENGTH_LSB   3

Definition at line 199 of file xbee.h.

Referenced by parse_xbee().

#define XBEE_GOT_LENGTH_MSB   2

Definition at line 198 of file xbee.h.

Referenced by parse_xbee().

#define XBEE_GOT_PAYLOAD   4

Definition at line 200 of file xbee.h.

Referenced by parse_xbee().

#define XBEE_GOT_START   1

Definition at line 197 of file xbee.h.

Referenced by parse_xbee().

#define XBEE_MY_ADDR   AC_ID

Initialisation in API mode and setting of the local address FIXME: busy wait.

Definition at line 51 of file xbee.h.

Referenced by xbee_init().

#define XBEE_START   0x7e

Constants for the API protocol.

Definition at line 39 of file xbee.h.

Referenced by parse_xbee().

#define XBEE_UNINIT   0

Status of the API packet receiver automata.

Definition at line 196 of file xbee.h.

Referenced by parse_xbee(), and xbee_init().

#define XBeeAPISizeOf (   _dev,
  _x 
)    (_x+5)

Definition at line 55 of file xbee.h.

#define XBeeBuffer (   _dev)    TransportLink(_dev,ChAvailable())

Definition at line 274 of file xbee.h.

#define XBeeCheckAndParse (   _dev,
  _trans 
)
Value:
{ \
if (XBeeBuffer(_dev)) { \
ReadXBeeBuffer(_dev,_trans); \
if (_trans.trans.msg_received) { \
xbee_parse_payload(&(_trans)); \
_trans.trans.msg_received = FALSE; \
} \
} \
}
#define XBeeBuffer(_dev)
Definition: xbee.h:274
#define ReadXBeeBuffer(_dev, _trans)
Definition: xbee.h:275
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
#define FALSE
Definition: imu_chimu.h:141
static void xbee_parse_payload(struct xbee_transport *t)
Parsing a frame data and copy the payload to the datalink buffer.
Definition: xbee.h:259

Definition at line 276 of file xbee.h.

#define XBeePrintHex16 (   _dev,
 
)    TransportLink(_dev,PrintHex16(x))

Definition at line 287 of file xbee.h.

Referenced by xbee_init().

#define XBeePrintString (   _dev,
 
)    TransportLink(_dev,PrintString(s))

Definition at line 286 of file xbee.h.

Referenced by xbee_init(), and xbee_try_to_enter_api().

#define XBeeTransportCheckFreeSpace (   _dev,
 
)    TransportLink(_dev, CheckFreeSpace(x))

Definition at line 57 of file xbee.h.

#define XBeeTransportHeader (   _dev,
  _len 
)
Value:
{ \
uint8_t payload_len = XBeeAPISizeOf(_dev, _len); \
XBeeTransportPut2Bytes(_dev, payload_len); \
xbee_cs = 0; \
}
#define XBeeTransportPut2Bytes(_dev, _x)
Definition: xbee.h:71
uint8_t xbee_cs
Definition: xbee.c:31
#define XBeeTransportPutTXHeader(_dev)
Definition: xbee24.h:32
#define XBeeTransportPut1Byte(_dev, x)
Definition: xbee.h:58
#define XBEE_START
Constants for the API protocol.
Definition: xbee.h:39
unsigned char uint8_t
Definition: types.h:14
#define XBeeAPISizeOf(_dev, _x)
Definition: xbee.h:55

Definition at line 179 of file xbee.h.

#define XBeeTransportPut1Byte (   _dev,
 
)    TransportLink(_dev, Transmit(x))

Definition at line 58 of file xbee.h.

#define XBeeTransportPut1ByteByAddr (   _dev,
  _byte 
)
Value:
{ \
uint8_t _x = *(_byte); \
}
unsigned char uint8_t
Definition: types.h:14
#define XBeeTransportPutUint8(_dev, _x)
Definition: xbee.h:61

Definition at line 66 of file xbee.h.

#define XBeeTransportPut2ByteByAddr (   _dev,
  _byte 
)
Value:
{ \
XBeeTransportPut1ByteByAddr(_dev, (const uint8_t*)_byte+1); \
}
#define XBeeTransportPut1ByteByAddr(_dev, _byte)
Definition: xbee.h:66
unsigned char uint8_t
Definition: types.h:14

Definition at line 77 of file xbee.h.

#define XBeeTransportPut2Bytes (   _dev,
  _x 
)
Value:
{ \
uint16_t x16 = _x; \
XBeeTransportPut1Byte(_dev, x16>>8); \
XBeeTransportPut1Byte(_dev, x16 & 0xff); \
}
unsigned short uint16_t
Definition: types.h:16
#define XBeeTransportPut1Byte(_dev, x)
Definition: xbee.h:58

Definition at line 71 of file xbee.h.

#define XBeeTransportPut4ByteByAddr (   _dev,
  _byte 
)
Value:
{ \
XBeeTransportPut2ByteByAddr(_dev, (const uint8_t*)_byte+2); \
}
unsigned char uint8_t
Definition: types.h:14
#define XBeeTransportPut2ByteByAddr(_dev, _byte)
Definition: xbee.h:77

Definition at line 82 of file xbee.h.

#define XBeeTransportPutArray (   _dev,
  _put,
  _n,
  _x 
)
Value:
{ \
for(_i = 0; _i < _n; _i++) { \
_put(_dev, &_x[_i]); \
} \
}
unsigned char uint8_t
Definition: types.h:14
#define XBeeTransportPutUint8(_dev, _x)
Definition: xbee.h:61

Definition at line 126 of file xbee.h.

#define XBeeTransportPutCharArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutCharByAddr, _n, _x)

Definition at line 137 of file xbee.h.

#define XBeeTransportPutCharByAddr (   _dev,
  _x 
)    XBeeTransportPut1ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 124 of file xbee.h.

#define XBeeTransportPutCharFixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutCharByAddr, _n, _x)

Definition at line 163 of file xbee.h.

#define XBeeTransportPutDoubleArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutDoubleByAddr, _n, _x)

Definition at line 150 of file xbee.h.

#define XBeeTransportPutDoubleByAddr (   _dev,
  _byte 
)
Value:
{ \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte); \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte+4); \
}
#define XBeeTransportPut4ByteByAddr(_dev, _byte)
Definition: xbee.h:82
unsigned char uint8_t
Definition: types.h:14

Definition at line 101 of file xbee.h.

#define XBeeTransportPutDoubleFixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutDoubleByAddr, _n, _x)

Definition at line 176 of file xbee.h.

#define XBeeTransportPutFixedArray (   _dev,
  _put,
  _n,
  _x 
)
Value:
{ \
uint8_t _i; \
for(_i = 0; _i < _n; _i++) { \
_put(_dev, &_x[_i]); \
} \
}
unsigned char uint8_t
Definition: types.h:14

Definition at line 153 of file xbee.h.

#define XBeeTransportPutFloatArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutFloatByAddr, _n, _x)

Definition at line 145 of file xbee.h.

#define XBeeTransportPutFloatByAddr (   _dev,
  _x 
)    XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 122 of file xbee.h.

#define XBeeTransportPutFloatFixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutFloatByAddr, _n, _x)

Definition at line 171 of file xbee.h.

#define XBeeTransportPutInt16Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutInt16ByAddr, _n, _x)

Definition at line 139 of file xbee.h.

#define XBeeTransportPutInt16ByAddr (   _dev,
  _x 
)    XBeeTransportPut2ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 118 of file xbee.h.

#define XBeeTransportPutInt16FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt16ByAddr, _n, _x)

Definition at line 165 of file xbee.h.

#define XBeeTransportPutInt32Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutInt32ByAddr, _n, _x)

Definition at line 142 of file xbee.h.

#define XBeeTransportPutInt32ByAddr (   _dev,
  _x 
)    XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 120 of file xbee.h.

#define XBeeTransportPutInt32FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt32ByAddr, _n, _x)

Definition at line 168 of file xbee.h.

#define XBeeTransportPutInt64Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutInt64ByAddr, _n, _x)

Definition at line 147 of file xbee.h.

#define XBeeTransportPutInt64ByAddr (   _dev,
  _byte 
)
Value:
{ \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte); \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte+4); \
}
#define XBeeTransportPut4ByteByAddr(_dev, _byte)
Definition: xbee.h:82
unsigned char uint8_t
Definition: types.h:14

Definition at line 109 of file xbee.h.

#define XBeeTransportPutInt64FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt64ByAddr, _n, _x)

Definition at line 173 of file xbee.h.

#define XBeeTransportPutInt8Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutInt8ByAddr, _n, _x)

Definition at line 134 of file xbee.h.

#define XBeeTransportPutInt8ByAddr (   _dev,
  _x 
)    XBeeTransportPut1ByteByAddr(_dev, _x)

Definition at line 116 of file xbee.h.

#define XBeeTransportPutInt8FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutInt8ByAddr, _n, _x)

Definition at line 160 of file xbee.h.

#define XBeeTransportPutNamedUint8 (   _dev,
  _name,
  _byte 
)    XBeeTransportPutUint8(_dev, _byte)

Definition at line 123 of file xbee.h.

#define XBeeTransportPutUint16Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutUint16ByAddr, _n, _x)

Definition at line 140 of file xbee.h.

#define XBeeTransportPutUint16ByAddr (   _dev,
  _x 
)    XBeeTransportPut2ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 119 of file xbee.h.

#define XBeeTransportPutUint16FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint16ByAddr, _n, _x)

Definition at line 166 of file xbee.h.

#define XBeeTransportPutUint32Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutUint32ByAddr, _n, _x)

Definition at line 143 of file xbee.h.

#define XBeeTransportPutUint32ByAddr (   _dev,
  _x 
)    XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 121 of file xbee.h.

#define XBeeTransportPutUint32FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint32ByAddr, _n, _x)

Definition at line 169 of file xbee.h.

#define XBeeTransportPutUint64Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutUint64ByAddr, _n, _x)

Definition at line 148 of file xbee.h.

#define XBeeTransportPutUint64ByAddr (   _dev,
  _byte 
)
Value:
{ \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte); \
XBeeTransportPut4ByteByAddr(_dev, (const uint8_t*)_byte+4); \
}
#define XBeeTransportPut4ByteByAddr(_dev, _byte)
Definition: xbee.h:82
unsigned char uint8_t
Definition: types.h:14

Definition at line 105 of file xbee.h.

#define XBeeTransportPutUint64FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint64ByAddr, _n, _x)

Definition at line 174 of file xbee.h.

#define XBeeTransportPutUint8 (   _dev,
  _x 
)
Value:
{ \
xbee_cs += _x; \
}
uint8_t xbee_cs
Definition: xbee.c:31
#define XBeeTransportPut1Byte(_dev, x)
Definition: xbee.h:58

Definition at line 61 of file xbee.h.

#define XBeeTransportPutUint8Array (   _dev,
  _n,
  _x 
)    XBeeTransportPutArray(_dev, XBeeTransportPutUint8ByAddr, _n, _x)

Definition at line 135 of file xbee.h.

#define XBeeTransportPutUint8ByAddr (   _dev,
  _x 
)    XBeeTransportPut1ByteByAddr(_dev, (const uint8_t*)_x)

Definition at line 117 of file xbee.h.

#define XBeeTransportPutUint8FixedArray (   _dev,
  _n,
  _x 
)    XBeeTransportPutFixedArray(_dev, XBeeTransportPutUint8ByAddr, _n, _x)

Definition at line 161 of file xbee.h.

#define XBeeTransportSendMessage (   _dev)    TransportLink(_dev, SendMessage())

Definition at line 59 of file xbee.h.

#define XBeeTransportTrailer (   _dev)
Value:
{ \
xbee_cs = 0xff - xbee_cs; \
}
uint8_t xbee_cs
Definition: xbee.c:31
#define XBeeTransportPut1Byte(_dev, x)
Definition: xbee.h:58
#define XBeeTransportSendMessage(_dev)
Definition: xbee.h:59

Definition at line 187 of file xbee.h.

Function Documentation

void xbee_init ( void  )
  • busy wait 1.25s

Setting my address

Switching back to normal mode

Definition at line 87 of file xbee.c.

References AT_AP_MODE, AT_EXIT, AT_SET_MY, FALSE, transport::msg_received, xbee_transport::status, sys_time_usleep(), xbee_transport::trans, TransportLink, XBEE_ATBD_CODE, XBEE_BAUD_ALTERNATE, XBEE_MY_ADDR, xbee_tp, xbee_try_to_enter_api(), XBEE_UNINIT, XBeePrintHex16, XBeePrintString, and XBeeUartSetBaudrate.

Referenced by init_ap(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void xbee_parse_payload ( struct xbee_transport t)
inlinestatic

Parsing a frame data and copy the payload to the datalink buffer.

Definition at line 259 of file xbee.h.

References dl_buffer, dl_msg_available, transport::payload, transport::payload_len, xbee_transport::trans, TRUE, XBEE_RFDATA_OFFSET, XBEE_RX_ID, XBEE_TX_ID, and XbeeGetRSSI.

Variable Documentation

uint8_t xbee_cs

Definition at line 31 of file xbee.c.

uint8_t xbee_rssi

Definition at line 32 of file xbee.c.

struct xbee_transport xbee_tp

Definition at line 34 of file xbee.c.

Referenced by xbee_init().