pre commentaire
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
Fork of Code_APP3_C by
xbee.h
- Committer:
- JoeyDionne
- Date:
- 2017-02-14
- Revision:
- 11:f0ceb634d85c
- Parent:
- 10:565271e4d52a
File content as of revision 11:f0ceb634d85c:
#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 setPAN(Serial* COM, short pan_id); #endif // XBEE_H