project de marde si tu touch le no-homo s'applique pas
Fork of XBeeLib by
Diff: FrameHandlers/FH_IoDataSample802.cpp
- Revision:
- 4:629712865107
- Parent:
- 3:8662ebe83570
diff -r 8662ebe83570 -r 629712865107 FrameHandlers/FH_IoDataSample802.cpp --- a/FrameHandlers/FH_IoDataSample802.cpp Mon May 18 13:16:55 2015 +0200 +++ b/FrameHandlers/FH_IoDataSample802.cpp Mon Jun 01 18:59:43 2015 +0200 @@ -23,27 +23,25 @@ /** Class destructor */ FH_IoDataSampe64b802::~FH_IoDataSampe64b802() { + } -/** */ void FH_IoDataSampe64b802::register_io_data_cb(io_data_cb_802_t function) { - io_data_cb = function; + io_data_cb = function; } -/** */ void FH_IoDataSampe64b802::unregister_io_data_cb() { - io_data_cb = NULL; + io_data_cb = NULL; } #define IO_SAMPLE_64_802_DATA_OFFSET 10 -/** */ void FH_IoDataSampe64b802::process_frame_data(const ApiFrame *const frame) { const uint8_t * const datap = frame->get_data(); - + /* The caller checks that the type matches, so no need to check it here again */ if (io_data_cb == NULL) { return; @@ -68,13 +66,11 @@ { } -/** */ void FH_IoDataSampe16b802::register_io_data_cb(io_data_cb_802_t function) { io_data_cb = function; } -/** */ void FH_IoDataSampe16b802::unregister_io_data_cb() { io_data_cb = NULL; @@ -84,7 +80,6 @@ #define IO_SAMPLE_16_802_ADDR16_LSB_OFFSET 1 #define IO_SAMPLE_16_802_DATA_OFFSET 4 -/** */ void FH_IoDataSampe16b802::process_frame_data(const ApiFrame *const frame) { const uint8_t * const datap = frame->get_data();;