Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Functions | |
int | max22017_reg_read (const struct device *dev, uint8_t addr, uint16_t *value) |
Read register from max22017. | |
int | max22017_reg_write (const struct device *dev, uint8_t addr, uint16_t value) |
Write register to max22017. | |
#include <zephyr/drivers/mfd/max22017.h>
Read register from max22017.
dev | max22017 mfd device |
addr | register address to read from |
value | pointer to buffer for received data |
0 | If successful |
-errno | In case of any error (see spi_transceive_dt()) |
#include <zephyr/drivers/mfd/max22017.h>
Write register to max22017.
dev | max22017 mfd device |
addr | register address to write to |
value | content to write |
0 | If successful |
-errno | In case of any error (see spi_write_dt()) |