Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Fake LED controller

Fake LED controller driver API functions. More...

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.

Function Documentation

◆ DECLARE_FAKE_VALUE_FUNC() [1/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_blink ,
const struct device * ,
uint32_t ,
uint32_t ,
uint32_t  )

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

Blink a fake LED controller LED.

See also
led_blink

◆ DECLARE_FAKE_VALUE_FUNC() [2/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_get_info ,
const struct device * ,
uint32_t ,
const struct led_info **  )

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

Get info of a fake LED controller LED.

See also
led_get_info

◆ DECLARE_FAKE_VALUE_FUNC() [3/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_off ,
const struct device * ,
uint32_t  )

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

Turn a fake LED controller LED off.

See also
led_off

◆ DECLARE_FAKE_VALUE_FUNC() [4/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_on ,
const struct device * ,
uint32_t  )

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

Turn a fake LED controller LED on.

See also
led_on

◆ DECLARE_FAKE_VALUE_FUNC() [5/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_set_brightness ,
const struct device * ,
uint32_t ,
uint8_t  )

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

Set brightness of a fake LED controller LED.

See also
led_set_brightness

◆ DECLARE_FAKE_VALUE_FUNC() [6/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_set_color ,
const struct device * ,
uint32_t ,
uint8_t ,
const uint8_t *  )

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

Set the color of a fake LED controller LED.

See also
led_set_color

◆ DECLARE_FAKE_VALUE_FUNC() [7/7]

DECLARE_FAKE_VALUE_FUNC ( int ,
fake_led_write_channels ,
const struct device * ,
uint32_t ,
uint32_t ,
const uint8_t *  )

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

Write/update a strip of a fake LED controller LEDs.

See also
led_write_channels