Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
led_fake.h File Reference

Fake LED controller driver API functions. More...

#include <zephyr/drivers/led.h>
#include <zephyr/fff.h>

Go to the source code of this file.

Functions

 DECLARE_FAKE_VALUE_FUNC (int, fake_led_on, const struct device *, uint32_t)
 Turn a fake LED controller LED on.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_off, const struct device *, uint32_t)
 Turn a fake LED controller LED off.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_set_brightness, const struct device *, uint32_t, uint8_t)
 Set brightness of a fake LED controller LED.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_blink, const struct device *, uint32_t, uint32_t, uint32_t)
 Blink a fake LED controller LED.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_get_info, const struct device *, uint32_t, const struct led_info **)
 Get info of a fake LED controller LED.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_set_color, const struct device *, uint32_t, uint8_t, const uint8_t *)
 Set the color of a fake LED controller LED.
 DECLARE_FAKE_VALUE_FUNC (int, fake_led_write_channels, const struct device *, uint32_t, uint32_t, const uint8_t *)
 Write/update a strip of a fake LED controller LEDs.

Detailed Description

Fake LED controller driver API functions.