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.
radio.h
- Committer:
- Cheroukee
- Date:
- 2017-10-15
- Revision:
- 10:c4629b6c42f8
- Parent:
- 3:6ea97936f6fa
- Child:
- 13:b44c1f678aff
File content as of revision 10:c4629b6c42f8:
#pragma once
#define HEADER_DELIMITER 0b01010101
#define HEADER_START 0b01111110
#define FOOTER_END 0b11111110
#define MAX_MESSAGE_LENGTH 80
typedef char byte;
typedef struct {
byte preambule;
byte start;
byte options;
byte length;
byte data[MAX_MESSAGE_LENGTH] = { 0 };
byte control;
byte end;
} radio_message_t;
// API
// public functions
void init_radio_system();
bool send_message(char* buffer, int length);