1 /* 2 * Copyright (c) 2022 Rodrigo Peixoto <rodrigopex@gmail.com> 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 #ifndef _MESSAGES_H_ 6 #define _MESSAGES_H_ 7 #include <stdbool.h> 8 #include <stdint.h> 9 10 struct version_msg { 11 uint8_t major; 12 uint8_t minor; 13 uint16_t build; 14 }; 15 16 struct sensor_data_msg { 17 int value; 18 }; 19 20 struct action_msg { 21 bool status; 22 }; 23 24 #endif /* _MESSAGES_H_ */ 25