Éric Bisson
/
Code_APP3_R
app3
Fork of Code_APP1 by
xbee.h
- Committer:
- ericbisson
- Date:
- 2017-02-14
- Revision:
- 9:dc81d8ee4a97
File content as of revision 9:dc81d8ee4a97:
#include "mbed.h" #ifndef XBEE_H #define XBEE_H struct Addresse_64Bit { char bit[8]; }; struct Addresse_16Bit { char bit[2]; }; struct CArray { char* _ptr; short size; char _FrameType; Addresse_64Bit _64bit; Addresse_16Bit _16bit; char* options; char opt_size; }; char calculate_checksum(CArray* message, short header_size); void send(Serial* COM, CArray* message); void read(Serial* COM, CArray* returnValue); void read(Serial* COM, CArray* returnValue); void setPAN(Serial* COM, short pan_id); #endif // XBEE_H