project de marde si tu touch le no-homo s'applique pas
Fork of XBeeLib by
Diff: XBee/XBee.h
- Revision:
- 2:2ee1b6d51df2
- Parent:
- 1:794d1d3e4a08
- Child:
- 3:8662ebe83570
--- a/XBee/XBee.h Mon May 11 17:58:00 2015 +0200 +++ b/XBee/XBee.h Thu May 14 16:21:39 2015 +0200 @@ -403,13 +403,18 @@ */ RadioStatus start_node_discovery(); +#define XBEEZB_ND_OPTION_APPEND_DD (1 << 0) +#define XBEEZB_ND_OPTION_SELF_RESPONSE (1 << 1) +#define XBEE802_ND_OPTION_SELF_RESPONSE (1 << 0) + /** config_node_discovery - configures the node discovery operation * * @param timeout_ms max allowed time for devices in the network to answer * to the Node Discovery request * @param options node discovery options (flags) - * ND_OPTION_APPEND_DD - to append the DD value to the response - * ND_OPTION_SELF_RESPONSE - to allow the module self responding + * XBEE802_ND_OPTION_SELF_RESPONSE - to allow the module self responding (802.15.4 only) + * XBEEZB_ND_OPTION_SELF_RESPONSE - to allow the module self responding (ZigBee only) + * XBEEZB_ND_OPTION_APPEND_DD - to append the DD value to the response (ZigBee only) * @returns * Success if the operation was successful, * Failure otherwise @@ -764,6 +769,15 @@ */ RadioStatus get_iosample(const RemoteXBee& remote, uint8_t * const io_sample, uint16_t * const len); + void _get_remote_node_by_id(const char * const node_id, uint64_t * addr64, uint16_t * addr16); + + /** check_radio_flow_control - checks that the radio has the CTS "D7" and RTS "D6" pins configured + * according to the serial hardware flow control selected by the user + * + * @returns true if check success. + */ + bool check_radio_flow_control(); + /** serial hardware flow control selected by the user (RTSCTS, RTS,CTS) */ SerialBase::Flow _serial_flow_type;