XBee API operation library for mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IOSampleDecoder.h Source File

IOSampleDecoder.h

00001 #ifndef UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder
00002 #define UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder
00003 
00004 #include "mbed.h"
00005 #include "IOSamples.h"
00006 #include "XBeePins.h"
00007 #include "ZigBeePins.h"
00008 
00009 class IOSampleDecoder
00010 {
00011 private:
00012     static IOSamples * samples;
00013     static int num;
00014 
00015 public :
00016     // return the lenght of io ample
00017     static IOSamples * XBeeSamplesParse(const unsigned  char * IOSamplePayload, int offset = 0);
00018 
00019     // return the lenght of io ample
00020     static IOSamples * ZigBeeSamplesParse(const unsigned  char * IOSamplePayload, int offset = 0);
00021 };
00022 
00023 #endif