1 /* 2 * Copyright (c) 2022 Rodrigo Peixoto <rodrigopex@gmail.com> 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 #ifndef _ZBUS_MESSAGES_H_ 6 #define _ZBUS_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 a; 18 int b; 19 }; 20 21 struct net_pkt_msg { 22 int total; 23 }; 24 25 struct action_msg { 26 bool status; 27 }; 28 29 struct net_log_msg { 30 int count_net; 31 int pkt_total; 32 }; 33 #endif /* _ZBUS_MESSAGES_H_ */ 34