#include <asf.h>
#include <string>
#include "conf_board.h"
#include "drivers/d_usartDMA.h"
#include "globals.h"
#include "../../../src/ISComm.h"
#include "xbee.h"
Go to the source code of this file.
|
enum | {
XSTATE_RUN_TIME_DEFAULT = 0,
XSTATE_START_CONFIG,
XSTATE_AT_CMD_MODE_START_1,
XSTATE_AT_CMD_MODE_START_2,
XSTATE_AT_CMD_MODE_CONFIG,
XSTATE_AT_CMD_MODE_FAILURE,
XSTATE_AT_CMD_MODE_FAILURE_DELAY,
XSTATE_AT_CMD_MODE_FINISH,
XSTATE_AT_CMD_MODE_FINISH_DELAY
} |
|
enum | xbee_frame_id {
AT_COMMAND_FRAME = 0x08,
AT_COMMAND_QUEUE_FRAME = 0x09,
TX_REQUEST_FRAME = 0x10,
TX_EXPLICIT_REQUEST_FRAME = 0x11,
AT_REMOTE_COMMAND_FRAME = 0x17,
AT_SECURE_REMOTE_COMMAND_FRAME = 0x18,
AT_COMMAND_RESPONSE_FRAME = 0x88,
RX_INDICATOR_FRAME = 0x90,
RX_EXPLICIT_INDICATOR_FRAME = 0x91,
NODE_ID_FRAME = 0x95,
REMOTE_COMMAND_RESPONSE_FRAME = 0x97
} |
|
◆ BUF_SIZE
◆ XBEE_API_ENABLE
#define XBEE_API_ENABLE "AP" |
◆ XBEE_APPLY_CHANGES
#define XBEE_APPLY_CHANGES "AC" |
Special Commands
Definition at line 40 of file xbee.cpp.
◆ XBEE_BAUD_RATE
#define XBEE_BAUD_RATE "BD" |
◆ XBEE_BCAST_MULTITX
#define XBEE_BCAST_MULTITX "MT" |
◆ XBEE_EXIT_COMMAND_MODE
#define XBEE_EXIT_COMMAND_MODE "CN" |
◆ XBEE_NETWORK_ID
#define XBEE_NETWORK_ID "ID" |
◆ XBEE_PACKETIZATION_TO
#define XBEE_PACKETIZATION_TO "RO" |
◆ XBEE_PREAMBLE_ID
#define XBEE_PREAMBLE_ID "HP" |
Settable parameters. Only list the ones that are different from the stock config.
Definition at line 47 of file xbee.cpp.
◆ XBEE_RESTORE_DEFAULTS
#define XBEE_RESTORE_DEFAULTS "RE" |
◆ XBEE_RSSI
Readable parameters. Only list the ones you want to read
Definition at line 59 of file xbee.cpp.
◆ XBEE_SLEEP_MODE
#define XBEE_SLEEP_MODE "SM" |
◆ XBEE_SOFTWARE_RESET
#define XBEE_SOFTWARE_RESET "FR" |
◆ XBEE_TRANSMIT_OPTIONS
#define XBEE_TRANSMIT_OPTIONS "TO" |
◆ XBEE_TX_POWER_LEVEL
#define XBEE_TX_POWER_LEVEL "PL" |
◆ XBEE_UCAST_RETRIES
#define XBEE_UCAST_RETRIES "RR" |
◆ XBEE_WRITE_VALUES
#define XBEE_WRITE_VALUES "WR" |
◆ anonymous enum
Enumerator |
---|
XSTATE_RUN_TIME_DEFAULT | |
XSTATE_START_CONFIG | |
XSTATE_AT_CMD_MODE_START_1 | |
XSTATE_AT_CMD_MODE_START_2 | |
XSTATE_AT_CMD_MODE_CONFIG | |
XSTATE_AT_CMD_MODE_FAILURE | |
XSTATE_AT_CMD_MODE_FAILURE_DELAY | |
XSTATE_AT_CMD_MODE_FINISH | |
XSTATE_AT_CMD_MODE_FINISH_DELAY | |
Definition at line 84 of file xbee.cpp.
◆ xbee_frame_id
Enumerator |
---|
AT_COMMAND_FRAME | |
AT_COMMAND_QUEUE_FRAME | |
TX_REQUEST_FRAME | |
TX_EXPLICIT_REQUEST_FRAME | |
AT_REMOTE_COMMAND_FRAME | |
AT_SECURE_REMOTE_COMMAND_FRAME | |
AT_COMMAND_RESPONSE_FRAME | |
RX_INDICATOR_FRAME | |
RX_EXPLICIT_INDICATOR_FRAME | |
NODE_ID_FRAME | |
REMOTE_COMMAND_RESPONSE_FRAME | |
Definition at line 24 of file xbee.cpp.
◆ send_at_command()
static void send_at_command |
( |
string |
cmd | ) |
|
|
static |
◆ send_next_at_command()
static bool send_next_at_command |
( |
| ) |
|
|
static |
◆ xbee_init()
◆ xbee_receive()
◆ xbee_runtime_mode()
int xbee_runtime_mode |
( |
void |
| ) |
|
◆ xbee_step()
◆ s_at_command_idx
◆ s_at_ok
◆ s_baud_rate
◆ s_timer_ms
◆ s_xstate
◆ xbee_diff
◆ xbee_read