Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
leds.h
Go to the documentation of this file.
1
12
13#ifndef INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_LEDS_H_
14#define INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_LEDS_H_
15
16#include <zephyr/device.h>
17#include <zephyr/drivers/gpio.h>
18#include <zephyr/drivers/led.h>
19#include <zephyr/sys/util.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
29
30enum {
32};
33
44int infuse_validation_leds_gpio(const struct gpio_dt_spec *leds, uint8_t num_leds, uint8_t flags);
45
56int infuse_validation_leds_controller(const struct led_dt_spec *leds, uint8_t num_leds,
57 uint8_t flags);
58
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* INFUSE_SDK_INCLUDE_INFUSE_VALIDATION_LEDS_H_ */
int infuse_validation_leds_gpio(const struct gpio_dt_spec *leds, uint8_t num_leds, uint8_t flags)
Validate GPIO LED devices.
int infuse_validation_leds_controller(const struct led_dt_spec *leds, uint8_t num_leds, uint8_t flags)
Validate LED devices.
@ VALIDATION_LEDS_OBSERVE_ONLY
Definition leds.h:31