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_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
