XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
Helper/IOSampleDecoder.h@6:5f31ddc17239, 2015-11-14 (annotated)
- Committer:
- yangcq88517
- Date:
- Sat Nov 14 16:42:36 2015 +0000
- Revision:
- 6:5f31ddc17239
- Parent:
- 2:700dc65ca3b1
change to unsigned char array
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yangcq88517 | 0:837e6c48e90d | 1 | #ifndef UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder |
yangcq88517 | 0:837e6c48e90d | 2 | #define UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder |
yangcq88517 | 0:837e6c48e90d | 3 | |
yangcq88517 | 0:837e6c48e90d | 4 | #include "mbed.h" |
yangcq88517 | 0:837e6c48e90d | 5 | #include "IOSamples.h" |
yangcq88517 | 0:837e6c48e90d | 6 | #include "XBeePins.h" |
yangcq88517 | 0:837e6c48e90d | 7 | #include "ZigBeePins.h" |
yangcq88517 | 0:837e6c48e90d | 8 | |
yangcq88517 | 0:837e6c48e90d | 9 | class IOSampleDecoder |
yangcq88517 | 0:837e6c48e90d | 10 | { |
yangcq88517 | 2:700dc65ca3b1 | 11 | private: |
yangcq88517 | 2:700dc65ca3b1 | 12 | static IOSamples * samples; |
yangcq88517 | 2:700dc65ca3b1 | 13 | |
yangcq88517 | 0:837e6c48e90d | 14 | public : |
yangcq88517 | 0:837e6c48e90d | 15 | // return the lenght of io ample |
yangcq88517 | 6:5f31ddc17239 | 16 | static IOSamples * XBeeSamplesParse(const unsigned char * IOSamplePayload, int offset = 0); |
yangcq88517 | 0:837e6c48e90d | 17 | |
yangcq88517 | 0:837e6c48e90d | 18 | // return the lenght of io ample |
yangcq88517 | 6:5f31ddc17239 | 19 | static IOSamples * ZigBeeSamplesParse(const unsigned char * IOSamplePayload, int offset = 0); |
yangcq88517 | 0:837e6c48e90d | 20 | }; |
yangcq88517 | 0:837e6c48e90d | 21 | |
yangcq88517 | 0:837e6c48e90d | 22 | #endif |