Library to easily communicate with XBee modules.
Fork of XBeeLib by
Diff: FrameHandlers/FH_AtCmdResp.h
- Revision:
- 4:629712865107
- Parent:
- 3:8662ebe83570
- Child:
- 6:06522f3a6642
--- a/FrameHandlers/FH_AtCmdResp.h Mon May 18 13:16:55 2015 +0200 +++ b/FrameHandlers/FH_AtCmdResp.h Mon Jun 01 18:59:43 2015 +0200 @@ -24,12 +24,12 @@ private: /** Callback function, invoked (if registered) when an at command response packet is received */ at_cmd_resp_cb_t at_cmd_resp_cb; - + public: - + /** Class constructor */ FH_AtCmdResp(); - + /** Class constructor */ FH_AtCmdResp(ApiFrame::ApiFrameType type); @@ -38,11 +38,9 @@ virtual ~FH_AtCmdResp(); virtual void process_frame_data(const ApiFrame *const frame); - - /** */ + virtual void register_at_cmd_resp_cb(at_cmd_resp_cb_t function); - /** */ virtual void unregister_at_cmd_resp_cb(); }; @@ -57,16 +55,16 @@ typedef void (*node_discovery_zb_cb_t)(const RemoteXBeeZB& remote, char const * const node_id); /** * @} - */ + */ class FH_NodeDiscoveryZB : public FH_AtCmdResp { private: /** Callback function, invoked (if registered) when an at command response packet is received */ node_discovery_zb_cb_t node_discovery_cb; - + public: - + /** Class constructor */ FH_NodeDiscoveryZB(); @@ -74,11 +72,9 @@ virtual ~FH_NodeDiscoveryZB(); virtual void process_frame_data(const ApiFrame *const frame); - - /** */ + virtual void register_node_discovery_cb(node_discovery_zb_cb_t function); - /** */ virtual void unregister_node_discovery_cb(); }; @@ -93,16 +89,16 @@ typedef void (*node_discovery_802_cb_t)(const RemoteXBee802& remote, char const * const node_id); /** * @} - */ + */ class FH_NodeDiscovery802 : public FH_AtCmdResp { private: /** Callback function, invoked (if registered) when an at command response packet is received */ node_discovery_802_cb_t node_discovery_cb; - + public: - + /** Class constructor */ FH_NodeDiscovery802(); @@ -110,11 +106,9 @@ virtual ~FH_NodeDiscovery802(); virtual void process_frame_data(const ApiFrame *const frame); - - /** */ + virtual void register_node_discovery_cb(node_discovery_802_cb_t function); - /** */ virtual void unregister_node_discovery_cb(); };