#ifndef ZBUS_MESSAGE_H
#define ZBUS_MESSAGE_H

/**
 * @file zbus_message.h
 * @brief ZBUS channel and message definitions for LED control
 */

#include <stdbool.h>
#include <zephyr/zbus/zbus.h>

/**
 * @brief Message published to leds_chan to control an LED.
 *
 * @param led_id    LED index (0 or 1)
 * @param led_value true = ON, false = OFF
 */
struct leds_message {
	uint8_t led_id;
	bool    led_value;
};

/**
 * @brief ZBUS channel for LED control messages.
 *
 * Publish a struct leds_message to this channel to set an LED state.
 */
ZBUS_CHAN_DECLARE(leds_chan);

#endif /* ZBUS_MESSAGE_H */