Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of XBeeLib by
Diff: XBee/XBee.h
- Revision:
- 6:06522f3a6642
- Parent:
- 5:da2ea7a76243
- Child:
- 8:b5f4a0e92249
diff -r da2ea7a76243 -r 06522f3a6642 XBee/XBee.h
--- a/XBee/XBee.h Thu Mar 31 11:39:30 2016 +0200
+++ b/XBee/XBee.h Thu Jul 28 10:17:20 2016 +0200
@@ -165,15 +165,6 @@
*/
uint64_t get_addr64() const;
- /** get_network_address - gets the 16bit network address of the device
- *
- * @param addr pointer where the device 16bit network address will be stored
- * @returns
- * Success if the operation was successful,
- * Failure otherwise
- */
- RadioStatus get_network_address(uint16_t * const addr);
-
/** hardware_reset - performs a hardware reset. The reset GPIO must have
* been provided to the constructor
*
@@ -338,7 +329,7 @@
/** config_node_discovery - configures the node discovery operation
*
- * @param timeout_ms max allowed time for devices in the network to answer
+ * @param backoff_ms max allowed time for devices in the network to answer
* to the Node Discovery request
* @param options node discovery options (flags)
* XBEE802_ND_OPTION_SELF_RESPONSE - to allow the module self responding (802.15.4 only)
@@ -348,18 +339,18 @@
* Success if the operation was successful,
* Failure otherwise
*/
- RadioStatus config_node_discovery(uint16_t timeout_ms, uint8_t options = 0);
+ RadioStatus config_node_discovery(uint16_t backoff_ms, uint8_t options = 0);
/** get_config_node_discovery - reads the configuration of the node discovery
* settings
*
- * @param timeout_ms pointer where the node discovery time out value will be stored
+ * @param backoff_ms pointer where the configured node discovery back-off time value will be stored
* @param options pointer whre the node discovery options (flags) will be saved
* @returns
* Success if the operation was successful,
* Failure otherwise
*/
- RadioStatus get_config_node_discovery(uint16_t * const timeout_ms, uint8_t * const options);
+ RadioStatus get_config_node_discovery(uint16_t * const backoff_ms, uint8_t * const options);
/** set_timeout - sets the timeout in ms, used by sync methods
*
@@ -638,6 +629,19 @@
*/
int get_AI(void);
+ /** get_node_discovery_timeout - gets the node discovery timeout
+ *
+ * @param timeout_ms pointer where the node discovery timeout value will be stored
+ * @param wait_for_complete_timeout pointer where the function will store if the operator
+ * has to wait for the complete nd timeout after issuing
+ * a directed nd request
+ * @returns
+ * Success if the operation was successful,
+ * Failure otherwise
+ */
+ virtual RadioStatus get_node_discovery_timeout(uint16_t * const timeout_ms) = 0;
+ virtual RadioStatus get_node_discovery_timeout(uint16_t * const timeout_ms, bool * const wait_for_complete_timeout) = 0;
+
/** serial hardware flow control selected by the user (RTSCTS, RTS,CTS) */
SerialBase::Flow _serial_flow_type;
