Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Code_APP3_R by
xbee.h
00001 #include "mbed.h" 00002 00003 #ifndef XBEE_H 00004 #define XBEE_H 00005 00006 struct Addresse_64Bit { 00007 char bit[8]; 00008 }; 00009 00010 struct Addresse_16Bit { 00011 char bit[2]; 00012 }; 00013 00014 struct CArray { 00015 char* _ptr; 00016 short size; 00017 char _FrameType; 00018 Addresse_64Bit _64bit; 00019 Addresse_16Bit _16bit; 00020 char* options; 00021 char opt_size; 00022 }; 00023 00024 char calculate_checksum(CArray* message, short header_size); 00025 void send(Serial* COM, CArray* message); 00026 void read(Serial* COM, CArray* returnValue); 00027 void setPAN(Serial* COM, short pan_id); 00028 00029 #endif // XBEE_H
Generated on Mon Jul 18 2022 14:56:15 by
