Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
xbee.c File Reference
#include "mcu_periph/sys_time.h"
#include "print.h"
#include "subsystems/datalink/xbee.h"
+ Include dependency graph for xbee.c:

Go to the source code of this file.


#define AT_COMMAND_SEQUENCE   "+++"
#define AT_INIT_PERIOD_US   2000000
#define AT_SET_MY   "ATMY"
#define AT_AP_MODE   "ATAP1\r"
#define AT_EXIT   "ATCN\r"


void xbee_init (void)


uint8_t xbee_cs
uint8_t xbee_rssi
struct xbee_transport xbee_tp
uint32_t xbee_delay_time

Macro Definition Documentation

#define AT_AP_MODE   "ATAP1\r"

Definition at line 41 of file xbee.c.

Referenced by xbee_init().

#define AT_COMMAND_SEQUENCE   "+++"

Definition at line 38 of file xbee.c.

Referenced by xbee_init().

#define AT_EXIT   "ATCN\r"

Definition at line 42 of file xbee.c.

Referenced by xbee_init().

#define AT_INIT_PERIOD_US   2000000

Definition at line 39 of file xbee.c.

#define AT_SET_MY   "ATMY"

Definition at line 40 of file xbee.c.

Referenced by xbee_init().

Function Documentation

void xbee_init ( void  )
  • busy wait 1.25s

Switching to AT mode (FIXME: busy waiting)

  • busy wait 1.25s

Setting my address

Switching back to normal mode

Definition at line 47 of file xbee.c.

References AT_AP_MODE, AT_COMMAND_SEQUENCE, AT_EXIT, AT_SET_MY, FALSE, transport::msg_received, xbee_transport::status, sys_time_usleep(), xbee_transport::trans, XBEE_MY_ADDR, xbee_tp, XBEE_UNINIT, XBeePrintHex16, and XBeePrintString.

Referenced by init_ap(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint8_t xbee_cs

Definition at line 33 of file xbee.c.

uint32_t xbee_delay_time

Definition at line 44 of file xbee.c.

uint8_t xbee_rssi

Definition at line 34 of file xbee.c.

struct xbee_transport xbee_tp

Definition at line 36 of file xbee.c.

Referenced by xbee_init().