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 <stddef.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 external_data_msg { 17 void *reference; 18 size_t size; 19 }; 20 21 struct ack_msg { 22 uint8_t value; 23 }; 24 25 #endif /* _MESSAGES_H_ */ 26