Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Semtech SX1509B low-voltage level-shifting GPIO controller. More...
Files | |
file | gpio_sx1509b.h |
Header file for SX1509B GPIO driver. | |
Functions | |
int | sx1509b_led_intensity_pin_configure (const struct device *dev, gpio_pin_t pin) |
Configure a pin for LED intensity. | |
int | sx1509b_led_intensity_pin_set (const struct device *dev, gpio_pin_t pin, uint8_t intensity_val) |
Set LED intensity of selected pin. | |
Semtech SX1509B low-voltage level-shifting GPIO controller.
int sx1509b_led_intensity_pin_configure | ( | const struct device * | dev, |
gpio_pin_t | pin | ||
) |
#include <include/zephyr/drivers/gpio/gpio_sx1509b.h>
Configure a pin for LED intensity.
Configure a pin to be controlled by SX1509B LED driver using the LED intensity functionality. To get back normal GPIO functionality, configure the pin using the standard GPIO API.
dev | Pointer to the device structure for the driver instance. |
pin | Pin number. |
0 | If successful. |
-EWOULDBLOCK | if function is called from an ISR. |
-ERANGE | if pin number is out of range. |
-EIO | if I2C fails. |
int sx1509b_led_intensity_pin_set | ( | const struct device * | dev, |
gpio_pin_t | pin, | ||
uint8_t | intensity_val | ||
) |
#include <include/zephyr/drivers/gpio/gpio_sx1509b.h>
Set LED intensity of selected pin.
dev | Pointer to the device structure for the driver instance. |
pin | Pin number. |
intensity_val | Intensity value. |
0 | If successful. |
-EIO | if I2C fails. |