App1_S5
/
APP4_IRQ
APP4 S5
radio.h
- Committer:
- Cheroukee
- Date:
- 2017-10-12
- Revision:
- 9:081324663b8c
- Parent:
- 3:6ea97936f6fa
- Child:
- 10:c4629b6c42f8
File content as of revision 9:081324663b8c:
#define HEADER_DELIMITER 0b01010101 #define HEADER_START 0b11111110 #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]; byte control; byte end; } radio_message_t; // Private void setup_radio_out(); void setup_radio_in(); void radio_out(void const *args); // API void init_radio_system(); void send_message(radio_message_t* message); bool send_message_complete();