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: XBeeZB/XBeeZB.h
- Revision:
- 3:8662ebe83570
- Parent:
- 2:2ee1b6d51df2
- Child:
- 4:629712865107
diff -r 2ee1b6d51df2 -r 8662ebe83570 XBeeZB/XBeeZB.h
--- a/XBeeZB/XBeeZB.h Thu May 14 16:21:39 2015 +0200
+++ b/XBeeZB/XBeeZB.h Mon May 18 13:16:55 2015 +0200
@@ -240,31 +240,19 @@
/** */
/*********************** send_data member methods ************************/
- /** send_data - sends data to a remote device waiting for the packet
- * answer with the result of the operation
+ /** send_data - sends data to a remote device
*
* @param remote remote device
* @param data pointer to the data that will be sent
* @param len number of bytes that will be transmitted
+ * @param syncr if true, method waits for the packet answer with the result of the operation
* @returns the result of the data transfer
* TxStatusSuccess if the operation was successful,
* the error code otherwise
*/
- virtual TxStatus send_data(const RemoteXBee& remote, const uint8_t *const data, uint16_t len);
+ virtual TxStatus send_data(const RemoteXBee& remote, const uint8_t *const data, uint16_t len, bool syncr = true);
- /** send_data_asyncr - sends data to a remote device not waiting for the packet answer
- *
- * @param remote remote device
- * @param data pointer to the data that will be sent
- * @param len number of bytes that will be transmitted
- * @returns the result of the data transfer
- * TxStatusSuccess if the operation was successful,
- * the error code otherwise
- */
- TxStatus send_data_asyncr(const RemoteXBee& remote, const uint8_t *const data, uint16_t len);
-
- /** send_data - sends data to a remote device waiting for the packet
- * answer with the result of the operation. This method uses
+ /** send_data - sends data to a remote device. This method uses
* the explicit addressing frame, allowing to use source and
* destination end points and cluster and profile IDs
*
@@ -275,24 +263,25 @@
* @param profile_id profile ID
* @param data pointer to the data that will be sent
* @param len number of bytes that will be transmitted
+ * @param syncr if true, method waits for the packet answer with the result of the operation
* @returns the result of the data transfer
* TxStatusSuccess if the operation was successful,
* the error code otherwise
*/
TxStatus send_data(const RemoteXBee& remote, uint8_t source_ep,
uint8_t dest_ep, uint16_t cluster_id, uint16_t profile_id,
- const uint8_t *const data, uint16_t len);
+ const uint8_t *const data, uint16_t len, bool syncr = true);
- /** send_data_to_coordinator - sends data to the ZigBee coordinator waiting for the
- * packet answer with the result of the operation
+ /** send_data_to_coordinator - sends data to the ZigBee coordinator
*
* @param data pointer to the data that will be sent
* @param len number of bytes that will be transmitted
+ * @param syncr if true, method waits for the packet answer with the result of the operation
* @returns the result of the data transfer
* TxStatusSuccess if the operation was successful,
* the error code otherwise
*/
- TxStatus send_data_to_coordinator(const uint8_t *const data, uint16_t len);
+ TxStatus send_data_to_coordinator(const uint8_t *const data, uint16_t len, bool syncr = true);
/** is_joined - checks if the device is joined to ZigBee network
* @returns true if joined, false otherwise
@@ -407,6 +396,13 @@
*/
RadioStatus get_adc(const RemoteXBee& remote, IoLine line, uint16_t * const val);
+ /** get_iosample - retrieves an @ref IOSampleZB from a remote node. This object can be used to get the remote node's ADC and DIO values.
+ *
+ * @param remote remote device
+ * @returns IOSampleZB object with the remote node's DIO and ADC values.
+ */
+ IOSampleZB get_iosample(const RemoteXBee& remote);
+
/** set_pin_pull_up - enables or disables the internal pull-up resistor of a line
*
* @param remote remote device
@@ -467,5 +463,3 @@
} /* namespace XBeeLib */
#endif /* __XBEE_ZB_H_ */
-
-
