API for communicating with XBee devices.

Dependencies:   CircularBuffer FixedLengthList

Dependents:   XBeeApiTest XBeeApiSimpleATCmdsExample XBeeApiBroadcastExample XBeeApiBroadcastExampleRTOS ... more

Overview

XBeeApi is intended to be a library for providing a high-level API interface to the XBee - for example getChannel() and setChannel(2) methods rather than needing to send( "ATCH" ) and send( "ATCH 2" ) - and then de-code the responses.

See the notebook page here for a description of how the API works & some details on the various classes.

Features:

  • Support for transmission & reception of data packets
  • Support for reading & changing settings
  • Support for "Remote AT" interface to access settings & I/O channels on remote XBees
  • XBeeApi should work if you're using mbed-rtos, though it is not currently threadsafe. Take a look at the XBeeApiBroadcastExampleRTOS example if you're including mbed-rtos.

Example Programs

There are also example programs available:

Transmit

Import programXBeeApiSimpleBroadcastExample

Simple example of how to use XBeeApi - set up the XBee, configure P2P networking then transmit a frame.

Import programXBeeApiBroadcastExample

Example for XBeeAPI; a little more involved than XBeeApiSimpleBroadcastExample with report on failure to set up the XBee and on the transmit status of the message.

Import programXBeeApiBroadcastExampleRTOS

Example of using the XBeeApi library to broadcast a message, based on XBeeApiBroadcastExample. This example shows how to use the library when using mbed-rtos. Before compiling you must open "XbeeApi\Config\XBeeApiCfg.hpp" and change the '#if 0' to '#if 1' on the line above the comment reading "Use RTOS features to make XBeeApi threadsafe"

Settings/Status

Import programXBeeApiSimpleATCmdsExample

Simple example of using XBeeApi to send AT-style commands to the XBee

Import programXBeeApiRemoteATCmdsExample

Example of using the XBeeApi library to send AT commands to remote XBee devices in order to read/write settings

Receive

Import programXBeeApiSimpleReceiveExample

Simple example of using XBeeApi to receive data packets via wireless

Import programXBeeApiReceiveCallbackExample

Example of using the XBeeApi library to receive a message via a callback method

Import programXBeeApiReceiveCallbackExampleRTOS

Example of using the XBeeApi library to receive a message via a callback method. This example shows how to use the library when using mbed-rtos. See the comment at the top of main.cpp

Remote I/O

Import programXBeeApiRemoteIOExample

Example of using the XBeeApi library to read inputs on a remote XBee

If you have 2 mbed connected XBees available then you can use XBeeApiSimpleReceiveExample and XBeeApiSimpleBroadcastExample as a pair.

Note that this is still a work in progress! XBeeApiTodoList tracks some of the functionality still to be added.

Committer:
johnb
Date:
Sun Jul 13 15:47:40 2014 +0000
Revision:
50:f76b7e7959a2
Parent:
32:af4e495afd62
Child:
51:a7d0d2ef9261
Add support for Remote AT commands

Who changed what in which revision?

UserRevisionLine numberNew contents of line
johnb 8:1b48b619d7f6 1 /**
johnb 8:1b48b619d7f6 2 @file
johnb 8:1b48b619d7f6 3 @brief Class to abstract AT commands send to the XBee API
johnb 8:1b48b619d7f6 4
johnb 8:1b48b619d7f6 5 AT commands have the payload:
johnb 8:1b48b619d7f6 6
johnb 8:1b48b619d7f6 7 Byte 1 : Frame ID
johnb 8:1b48b619d7f6 8 Byte 2 & 3 : AT command
johnb 8:1b48b619d7f6 9 Byte 4-n : Parameter Value
johnb 8:1b48b619d7f6 10
johnb 8:1b48b619d7f6 11 @author John Bailey
johnb 8:1b48b619d7f6 12
johnb 8:1b48b619d7f6 13 @copyright Copyright 2014 John Bailey
johnb 8:1b48b619d7f6 14
johnb 8:1b48b619d7f6 15 @section LICENSE
johnb 8:1b48b619d7f6 16
johnb 8:1b48b619d7f6 17 Licensed under the Apache License, Version 2.0 (the "License");
johnb 8:1b48b619d7f6 18 you may not use this file except in compliance with the License.
johnb 8:1b48b619d7f6 19 You may obtain a copy of the License at
johnb 8:1b48b619d7f6 20
johnb 8:1b48b619d7f6 21 http://www.apache.org/licenses/LICENSE-2.0
johnb 8:1b48b619d7f6 22
johnb 8:1b48b619d7f6 23 Unless required by applicable law or agreed to in writing, software
johnb 8:1b48b619d7f6 24 distributed under the License is distributed on an "AS IS" BASIS,
johnb 8:1b48b619d7f6 25 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
johnb 8:1b48b619d7f6 26 See the License for the specific language governing permissions and
johnb 8:1b48b619d7f6 27 limitations under the License.
johnb 8:1b48b619d7f6 28
johnb 8:1b48b619d7f6 29 */
johnb 8:1b48b619d7f6 30
johnb 8:1b48b619d7f6 31 #if !defined XBEEAPICMDAT_HPP
johnb 8:1b48b619d7f6 32 #define XBEEAPICMDAT_HPP
johnb 8:1b48b619d7f6 33
johnb 8:1b48b619d7f6 34 #include "XBeeApiFrame.hpp"
johnb 8:1b48b619d7f6 35 #include "XBeeDevice.hpp"
johnb 8:1b48b619d7f6 36
johnb 8:1b48b619d7f6 37 #include <stdint.h>
johnb 8:1b48b619d7f6 38
johnb 26:f5df80e990f4 39 #define XBEE_API_CMD_SET_HEADER_LEN 3U
johnb 50:f76b7e7959a2 40 #define XBEE_API_CMD_REQ_HEADER_LEN 3U
johnb 50:f76b7e7959a2 41
johnb 50:f76b7e7959a2 42 #define XBEE_API_DIO_CHANNEL_COUNT 8U
johnb 26:f5df80e990f4 43
johnb 26:f5df80e990f4 44 /** Class to access the configuration interface of the XBee.
johnb 26:f5df80e990f4 45 Requests to the XBee are non-blocking meaning that code
johnb 26:f5df80e990f4 46 which utilises this class must deal with the fact that
johnb 26:f5df80e990f4 47 there will be a delay between requesting the data from
johnb 26:f5df80e990f4 48 the XBee and the data being available via the API. See
johnb 26:f5df80e990f4 49 XBeeApiCmdAtBlocking for a blocking version.
johnb 26:f5df80e990f4 50
johnb 26:f5df80e990f4 51 Parameters from the XBee are cached in the object so
johnb 26:f5df80e990f4 52 subsequent requests do not need have the overhead of
johnb 26:f5df80e990f4 53 communication with the XBee */
johnb 8:1b48b619d7f6 54 class XBeeApiCmdAt : public XBeeApiFrameDecoder
johnb 8:1b48b619d7f6 55 {
johnb 13:302e7c1ea0b3 56 public:
johnb 26:f5df80e990f4 57 /** Type to represent the ID of a PAN (Personal Area Network) */
johnb 26:f5df80e990f4 58 typedef uint16_t panId_t;
johnb 26:f5df80e990f4 59 /** Type to represent a wireless channel number */
johnb 26:f5df80e990f4 60 typedef uint8_t channel_t;
johnb 32:af4e495afd62 61 /** Type to represent the different MAC modes supported by the XBee */
johnb 32:af4e495afd62 62 typedef enum {
johnb 32:af4e495afd62 63 XBEE_API_MAC_MODE_DIGI_ACK = 0,
johnb 32:af4e495afd62 64 XBEE_API_MAC_MODE_802_15_4_NO_ACK = 1,
johnb 32:af4e495afd62 65 XBEE_API_MAC_MODE_802_15_4_ACK = 2,
johnb 32:af4e495afd62 66 XBEE_API_MAC_MODE_DIGI_NO_ACK = 3,
johnb 32:af4e495afd62 67 } XBeeApiMACMode_e;
johnb 13:302e7c1ea0b3 68
johnb 50:f76b7e7959a2 69 typedef enum
johnb 50:f76b7e7959a2 70 {
johnb 50:f76b7e7959a2 71 XBEE_API_DIO_DISABLED = 0,
johnb 50:f76b7e7959a2 72 XBEE_API_DIO_SPECIAL = 1,
johnb 50:f76b7e7959a2 73 XBEE_API_DIO_INPUT = 3,
johnb 50:f76b7e7959a2 74 XBEE_API_DIO_OUT_LOW = 4,
johnb 50:f76b7e7959a2 75 XBEE_API_DIO_OUT_HIGH = 5,
johnb 50:f76b7e7959a2 76 XBEE_API_DIO_RS485_TX_LOW = 6,
johnb 50:f76b7e7959a2 77 XBEE_API_DIO_RS485_TX_HIGH = 7
johnb 50:f76b7e7959a2 78 } XBeeApiDioConfig_e;
johnb 50:f76b7e7959a2 79
johnb 8:1b48b619d7f6 80 protected:
johnb 26:f5df80e990f4 81 /** Indicates whether or not m_hwVer contains data retrieved from the XBee */
johnb 31:c144106e55b5 82 bool m_have_hwVer;
johnb 26:f5df80e990f4 83 /** Indicates whether or not m_fwVer contains data retrieved from the XBee */
johnb 31:c144106e55b5 84 bool m_have_fwVer;
johnb 26:f5df80e990f4 85 /** Indicates whether or not m_chan contains data retrieved from the XBee */
johnb 31:c144106e55b5 86 bool m_have_chan;
johnb 26:f5df80e990f4 87 /** Indicates whether or not m_PANId contains data retrieved from the XBee */
johnb 31:c144106e55b5 88 bool m_have_PANId;
johnb 26:f5df80e990f4 89 /** Indicates whether or not m_EDA contains data retrieved from the XBee */
johnb 31:c144106e55b5 90 bool m_have_EDA;
johnb 26:f5df80e990f4 91 /** Indicates whether or not m_CE contains data retrieved from the XBee */
johnb 31:c144106e55b5 92 bool m_have_CE;
johnb 31:c144106e55b5 93 bool m_have_sourceAddress;
johnb 32:af4e495afd62 94 bool m_have_snLow;
johnb 32:af4e495afd62 95 bool m_have_snHigh;
johnb 32:af4e495afd62 96 bool m_have_retries;
johnb 32:af4e495afd62 97 bool m_have_randomDelaySlots;
johnb 32:af4e495afd62 98 bool m_have_macMode;
johnb 50:f76b7e7959a2 99 bool m_have_d[ XBEE_API_DIO_CHANNEL_COUNT ];
johnb 13:302e7c1ea0b3 100
johnb 8:1b48b619d7f6 101 uint16_t m_hwVer;
johnb 8:1b48b619d7f6 102 uint16_t m_fwVer;
johnb 13:302e7c1ea0b3 103 channel_t m_chan;
johnb 13:302e7c1ea0b3 104 channel_t m_chanPend;
johnb 13:302e7c1ea0b3 105 panId_t m_PANId;
johnb 13:302e7c1ea0b3 106 panId_t m_PANIdPend;
johnb 13:302e7c1ea0b3 107 bool m_EDA;
johnb 13:302e7c1ea0b3 108 bool m_EDAPend;
johnb 13:302e7c1ea0b3 109 bool m_CE;
johnb 13:302e7c1ea0b3 110 bool m_CEPend;
johnb 31:c144106e55b5 111 uint16_t m_sourceAddress;
johnb 31:c144106e55b5 112 uint16_t m_sourceAddressPend;
johnb 32:af4e495afd62 113 uint32_t m_snLow;
johnb 32:af4e495afd62 114 uint32_t m_snHigh;
johnb 32:af4e495afd62 115 uint8_t m_retries;
johnb 32:af4e495afd62 116 uint8_t m_retriesPend;
johnb 32:af4e495afd62 117 uint8_t m_randomDelaySlots;
johnb 32:af4e495afd62 118 uint8_t m_randomDelaySlotsPend;
johnb 50:f76b7e7959a2 119 XBeeApiMACMode_e m_macMode;
johnb 50:f76b7e7959a2 120 XBeeApiMACMode_e m_macModePend;
johnb 50:f76b7e7959a2 121 XBeeApiDioConfig_e m_d[ XBEE_API_DIO_CHANNEL_COUNT ];
johnb 50:f76b7e7959a2 122 XBeeApiDioConfig_e m_dPend[ XBEE_API_DIO_CHANNEL_COUNT ];
johnb 8:1b48b619d7f6 123
johnb 50:f76b7e7959a2 124 virtual void SendCmd_uint8_t( const uint8_t p_frameId,
johnb 50:f76b7e7959a2 125 const uint8_t* const p_data,
johnb 50:f76b7e7959a2 126 const uint8_t& p_val );
johnb 50:f76b7e7959a2 127 virtual void SendCmd_uint16_t( const uint8_t p_frameId,
johnb 50:f76b7e7959a2 128 const uint8_t* const p_data,
johnb 50:f76b7e7959a2 129 const uint16_t& p_val );
johnb 50:f76b7e7959a2 130 virtual void SendReq( const uint8_t p_frameId,
johnb 50:f76b7e7959a2 131 const uint8_t* p_data );
johnb 13:302e7c1ea0b3 132
johnb 50:f76b7e7959a2 133 virtual size_t getResponseStatusPos( void ) const;
johnb 50:f76b7e7959a2 134
johnb 50:f76b7e7959a2 135
johnb 50:f76b7e7959a2 136 /* Implement XBeeApiCmdDecoder interface */
johnb 50:f76b7e7959a2 137 virtual bool decodeCallback( const uint8_t* const p_data, size_t p_len );
johnb 50:f76b7e7959a2 138
johnb 50:f76b7e7959a2 139 virtual bool processResponseFrame( const uint8_t* const p_data, size_t p_len );
johnb 50:f76b7e7959a2 140
johnb 26:f5df80e990f4 141
johnb 8:1b48b619d7f6 142 public:
johnb 13:302e7c1ea0b3 143
johnb 29:c6d037cceb02 144 /** Constructor
johnb 29:c6d037cceb02 145
johnb 29:c6d037cceb02 146 \param p_device XBee device with which this object should be associated */
johnb 29:c6d037cceb02 147 XBeeApiCmdAt( XBeeDevice* const p_device = NULL );
johnb 26:f5df80e990f4 148
johnb 26:f5df80e990f4 149 /** Destructor */
johnb 26:f5df80e990f4 150 virtual ~XBeeApiCmdAt( void ) {};
johnb 8:1b48b619d7f6 151
johnb 26:f5df80e990f4 152 /** Request the hardware version identifier from the XBee.
johnb 26:f5df80e990f4 153 As the data is retrieved asynchronously to this call,
johnb 26:f5df80e990f4 154 once the response is received it can be accessed via
johnb 26:f5df80e990f4 155 getHardwareVersion() */
johnb 26:f5df80e990f4 156 bool requestHardwareVersion( void );
johnb 26:f5df80e990f4 157 bool requestFirmwareVersion( void );
johnb 26:f5df80e990f4 158 bool requestChannel( void );
johnb 26:f5df80e990f4 159 bool requestCoordinatorEnabled( void );
johnb 26:f5df80e990f4 160 bool requestEndDeviceAssociationEnabled( void );
johnb 26:f5df80e990f4 161 bool requestPanId( void );
johnb 31:c144106e55b5 162 bool requestSourceAddress( void );
johnb 32:af4e495afd62 163 bool requestSerialNumber( void );
johnb 50:f76b7e7959a2 164 bool requestSerialNumberHigh( void );
johnb 50:f76b7e7959a2 165 bool requestSerialNumberLow( void );
johnb 50:f76b7e7959a2 166 bool requestDioConfig( const uint8_t p_chanNo );
johnb 50:f76b7e7959a2 167
johnb 50:f76b7e7959a2 168
johnb 32:af4e495afd62 169 /** Request the number of retries the XBee is configured to make.
johnb 32:af4e495afd62 170 Note that the 802.15.4 MAC already allows 3 retries, so this parameter
johnb 32:af4e495afd62 171 specifies an additional multiple of 3 retries
johnb 32:af4e495afd62 172 As the data is retrieved asynchronously to this call,
johnb 32:af4e495afd62 173 once the response is received it can be accessed via
johnb 32:af4e495afd62 174 getRetries()
johnb 32:af4e495afd62 175 */
johnb 32:af4e495afd62 176 bool requestRetries( void );
johnb 32:af4e495afd62 177
johnb 32:af4e495afd62 178 /** Request the minimum value of the back-off exponent in the CSMA-CA algorithm
johnb 32:af4e495afd62 179 used in collision avoidance.
johnb 32:af4e495afd62 180 */
johnb 32:af4e495afd62 181 bool requestRandomDelaySlots( void );
johnb 32:af4e495afd62 182
johnb 32:af4e495afd62 183 bool requestMacMode( void );
johnb 8:1b48b619d7f6 184
johnb 26:f5df80e990f4 185 /** Read the XBee's hardware version identifier.
johnb 26:f5df80e990f4 186
johnb 26:f5df80e990f4 187 This method does not initiate any communication with the
johnb 26:f5df80e990f4 188 XBee - the identifier must previously have been requested
johnb 26:f5df80e990f4 189 via requestHardwareVersion(). The method is non-blocking. */
johnb 26:f5df80e990f4 190 virtual bool getHardwareVersion( uint16_t* const p_ver );
johnb 26:f5df80e990f4 191
johnb 26:f5df80e990f4 192 /** Read the XBee's firmware version identifier.
johnb 26:f5df80e990f4 193
johnb 26:f5df80e990f4 194 This method does not initiate any communication with the
johnb 26:f5df80e990f4 195 XBee - the identifier must previously have been requested
johnb 26:f5df80e990f4 196 via requestFirmwareVersion(). The method is non-blocking. */
johnb 26:f5df80e990f4 197 virtual bool getFirmwareVersion( uint16_t* const p_ver );
johnb 32:af4e495afd62 198
johnb 32:af4e495afd62 199 virtual bool getSerialNumber( uint64_t* const p_sn );
johnb 13:302e7c1ea0b3 200
johnb 32:af4e495afd62 201 virtual bool getChannel( uint8_t* const p_chan );
johnb 32:af4e495afd62 202 virtual bool setChannel( uint8_t const p_chan );
johnb 8:1b48b619d7f6 203
johnb 32:af4e495afd62 204 virtual bool getCoordinatorEnabled( bool* const p_en );
johnb 32:af4e495afd62 205 virtual bool setCoordinatorEnabled( const bool p_en );
johnb 32:af4e495afd62 206
johnb 32:af4e495afd62 207 virtual bool getEndDeviceAssociationEnabled( bool* const p_en );
johnb 32:af4e495afd62 208 virtual bool setEndDeviceAssociationEnabled( const bool p_en );
johnb 13:302e7c1ea0b3 209
johnb 32:af4e495afd62 210 virtual bool getPanId( panId_t* const p_id );
johnb 32:af4e495afd62 211 virtual bool setPanId( const panId_t p_id );
johnb 32:af4e495afd62 212
johnb 32:af4e495afd62 213 virtual bool getSourceAddress( uint16_t* const p_addr );
johnb 32:af4e495afd62 214 virtual bool setSourceAddress( const uint16_t p_addr );
johnb 31:c144106e55b5 215
johnb 32:af4e495afd62 216 virtual bool getRetries( uint8_t* const p_addr );
johnb 32:af4e495afd62 217 virtual bool setRetries( const uint8_t p_addr );
johnb 31:c144106e55b5 218
johnb 32:af4e495afd62 219 virtual bool getRandomDelaySlots( uint8_t* const p_addr );
johnb 32:af4e495afd62 220 virtual bool setRandomDelaySlots( const uint8_t p_addr );
johnb 32:af4e495afd62 221
johnb 32:af4e495afd62 222 virtual bool getMacMode( XBeeApiMACMode_e* const p_mode );
johnb 50:f76b7e7959a2 223 virtual bool setMacMode( const XBeeApiMACMode_e p_mode );
johnb 50:f76b7e7959a2 224
johnb 50:f76b7e7959a2 225 virtual bool getDioConfig( const uint8_t p_chanNo, XBeeApiDioConfig_e* const p_conf );
johnb 50:f76b7e7959a2 226 virtual bool setDioConfig( const uint8_t p_chanNo, const XBeeApiDioConfig_e p_conf );
johnb 8:1b48b619d7f6 227 };
johnb 8:1b48b619d7f6 228
johnb 26:f5df80e990f4 229 /** Class to access the configuration interface of the XBee.
johnb 26:f5df80e990f4 230 In contrast to XBeeApiCmdAt, the getXXX methods block
johnb 26:f5df80e990f4 231 until the data is received (or a timeout has occurred)
johnb 26:f5df80e990f4 232 which means that the caller doesn't have to deal with the
johnb 26:f5df80e990f4 233 asynchronous nature of the API provided by XBeeApiCmdAt.
johnb 26:f5df80e990f4 234
johnb 26:f5df80e990f4 235 It's not necessary to use any of the requestXXX methods
johnb 26:f5df80e990f4 236 (as the getXXX methods will take care of this, however
johnb 26:f5df80e990f4 237 calling a requestXXX method will effectively pre-fetch the
johnb 26:f5df80e990f4 238 data meaning that getXXX will not have to block */
johnb 8:1b48b619d7f6 239 class XBeeApiCmdAtBlocking : public XBeeApiCmdAt
johnb 8:1b48b619d7f6 240 {
johnb 8:1b48b619d7f6 241 protected:
johnb 26:f5df80e990f4 242 /** Timeout used for blocking methods in milliseconds */
johnb 8:1b48b619d7f6 243 uint16_t m_timeout;
johnb 26:f5df80e990f4 244
johnb 26:f5df80e990f4 245 /** Wait slice time while blocking. The function will
johnb 26:f5df80e990f4 246 wait_ms(m_slice) until the XBee responds with the
johnb 26:f5df80e990f4 247 data or m_timeout elapses */
johnb 8:1b48b619d7f6 248 uint16_t m_slice;
johnb 8:1b48b619d7f6 249
johnb 8:1b48b619d7f6 250 public:
johnb 26:f5df80e990f4 251 /** Constructor
johnb 26:f5df80e990f4 252
johnb 29:c6d037cceb02 253 \param p_device XBee device with which this object should
johnb 29:c6d037cceb02 254 be associated
johnb 26:f5df80e990f4 255 \param p_timeout Timeout to be used when waiting for
johnb 26:f5df80e990f4 256 data from the XBee, specified in
johnb 26:f5df80e990f4 257 milliseconds
johnb 26:f5df80e990f4 258 \param p_slice While waiting for data, blocking methods
johnb 26:f5df80e990f4 259 will call the OS wait_ms() function, using
johnb 26:f5df80e990f4 260 the value specified by p_slice */
johnb 29:c6d037cceb02 261 XBeeApiCmdAtBlocking( XBeeDevice* const p_device = NULL,
johnb 29:c6d037cceb02 262 const uint16_t p_timeout = 1000,
johnb 29:c6d037cceb02 263 const uint16_t p_slice = 100);
johnb 8:1b48b619d7f6 264
johnb 26:f5df80e990f4 265 /** Destructor */
johnb 8:1b48b619d7f6 266 virtual ~XBeeApiCmdAtBlocking( void ) {};
johnb 26:f5df80e990f4 267
johnb 8:1b48b619d7f6 268 /* Implement XBeeApiCmdAt's virtual methods */
johnb 26:f5df80e990f4 269
johnb 50:f76b7e7959a2 270 virtual bool getHardwareVersion( uint16_t* const p_ver );
johnb 50:f76b7e7959a2 271 virtual bool getFirmwareVersion( uint16_t* const p_ver );
johnb 32:af4e495afd62 272 virtual bool getSerialNumber( uint64_t* const p_sn );
johnb 13:302e7c1ea0b3 273
johnb 50:f76b7e7959a2 274 virtual bool getChannel( uint8_t* const p_chan );
johnb 50:f76b7e7959a2 275 virtual bool setChannel( uint8_t const p_chan );
johnb 13:302e7c1ea0b3 276
johnb 50:f76b7e7959a2 277 virtual bool getCoordinatorEnabled( bool* constp_en );
johnb 50:f76b7e7959a2 278 virtual bool setCoordinatorEnabled( const bool p_en );
johnb 8:1b48b619d7f6 279
johnb 50:f76b7e7959a2 280 virtual bool getEndDeviceAssociationEnabled( bool* const p_en );
johnb 50:f76b7e7959a2 281 virtual bool setEndDeviceAssociationEnabled( const bool p_en );
johnb 13:302e7c1ea0b3 282
johnb 50:f76b7e7959a2 283 virtual bool getPanId( panId_t* const p_id );
johnb 50:f76b7e7959a2 284 virtual bool setPanId( const panId_t p_id );
johnb 31:c144106e55b5 285
johnb 50:f76b7e7959a2 286 virtual bool getSourceAddress( uint16_t* const p_addr );
johnb 50:f76b7e7959a2 287 virtual bool setSourceAddress( const uint16_t p_addr );
johnb 32:af4e495afd62 288
johnb 32:af4e495afd62 289 virtual bool getRetries( uint8_t* const p_addr );
johnb 32:af4e495afd62 290 virtual bool setRetries( const uint8_t p_addr );
johnb 32:af4e495afd62 291
johnb 32:af4e495afd62 292 virtual bool getRandomDelaySlots( uint8_t* const p_addr );
johnb 32:af4e495afd62 293 virtual bool setRandomDelaySlots( const uint8_t p_addr );
johnb 32:af4e495afd62 294
johnb 32:af4e495afd62 295 virtual bool getMacMode( XBeeApiMACMode_e* const p_mode );
johnb 50:f76b7e7959a2 296 virtual bool setMacMode( const XBeeApiMACMode_e p_mode );
johnb 50:f76b7e7959a2 297
johnb 50:f76b7e7959a2 298 virtual bool getDioConfig( const uint8_t p_chanNo, XBeeApiDioConfig_e* const p_conf );
johnb 50:f76b7e7959a2 299 virtual bool setDioConfig( const uint8_t p_chanNo, const XBeeApiDioConfig_e p_conf );
johnb 50:f76b7e7959a2 300
johnb 8:1b48b619d7f6 301 };
johnb 8:1b48b619d7f6 302
johnb 8:1b48b619d7f6 303 #endif