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.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Helper/IOSampleDecoder.h

Committer:
yangcq88517
Date:
2015-11-14
Revision:
6:5f31ddc17239
Parent:
2:700dc65ca3b1

File content as of revision 6:5f31ddc17239:

#ifndef UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder
#define UK_AC_HERTS_SMARTLAB_XBEE_IOSampleDecoder

#include "mbed.h"
#include "IOSamples.h"
#include "XBeePins.h"
#include "ZigBeePins.h"

class IOSampleDecoder
{
private:
    static IOSamples * samples;

public :
    // return the lenght of io ample
    static IOSamples * XBeeSamplesParse(const unsigned  char * IOSamplePayload, int offset = 0);

    // return the lenght of io ample
    static IOSamples * ZigBeeSamplesParse(const unsigned  char * IOSamplePayload, int offset = 0);
};

#endif