APP4 S5
Embed:
(wiki syntax)
Show/hide line numbers
radio.h
00001 00002 #pragma once 00003 00004 #define HEADER_DELIMITER 0b01010101 00005 00006 #define HEADER_START 0b01111110 00007 00008 #define FOOTER_END 0b11111110 00009 00010 #define MAX_MESSAGE_LENGTH 80 00011 00012 typedef char byte; 00013 00014 typedef struct { 00015 byte preambule; 00016 byte start; 00017 byte options; 00018 byte length; 00019 byte data[MAX_MESSAGE_LENGTH]; 00020 byte control; 00021 byte end; 00022 } radio_message_t; 00023 00024 // API 00025 // public functions 00026 void init_radio_system(); 00027 00028 bool send_message(char* buffer, int length); 00029 00030 bool get_message(radio_message_t* message);
Generated on Thu Jul 21 2022 17:35:45 by
1.7.2