Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Functions | |
bool | mfd_ad559x_has_pointer_byte_map (const struct device *dev) |
Check if the chip has a pointer byte map. | |
int | mfd_ad559x_read_raw (const struct device *dev, uint8_t *val, size_t len) |
Read raw data from the chip. | |
int | mfd_ad559x_write_raw (const struct device *dev, uint8_t *val, size_t len) |
Write raw data to chip. | |
int | mfd_ad559x_read_reg (const struct device *dev, uint8_t reg, uint8_t reg_data, uint16_t *val) |
Read data from provided register. | |
int | mfd_ad559x_write_reg (const struct device *dev, uint8_t reg, uint16_t val) |
Write data to provided register. | |
int | mfd_ad559x_read_adc_chan (const struct device *dev, uint8_t channel, uint16_t *result) |
Read ADC channel data from the chip. | |
int | mfd_ad559x_write_dac_chan (const struct device *dev, uint8_t channel, uint16_t value) |
Write ADC channel data to the chip. | |
int | mfd_ad559x_gpio_port_get_raw (const struct device *dev, uint8_t gpio, uint16_t *value) |
Read GPIO port from the chip. | |
#include <zephyr/drivers/mfd/ad559x.h>
Read GPIO port from the chip.
[in] | dev | Pointer to MFD device |
[in] | gpio | GPIO to read |
[in] | value | DAC channel value |
0 | if success |
negative | errno if failure |
#include <zephyr/drivers/mfd/ad559x.h>
Check if the chip has a pointer byte map.
[in] | dev | Pointer to MFD device |
true | if chip has a pointer byte map, false if it has normal register map |
#include <zephyr/drivers/mfd/ad559x.h>
Read ADC channel data from the chip.
[in] | dev | Pointer to MFD device |
[in] | channel | Channel to read |
[out] | result | ADC channel value read |
0 | if success |
negative | errno if failure |
#include <zephyr/drivers/mfd/ad559x.h>
Read raw data from the chip.
[in] | dev | Pointer to MFD device |
[in] | val | Pointer to data buffer |
[in] | len | Number of bytes to be read |
0 | if success |
negative | errno if failure |
int mfd_ad559x_read_reg | ( | const struct device * | dev, |
uint8_t | reg, | ||
uint8_t | reg_data, | ||
uint16_t * | val ) |
#include <zephyr/drivers/mfd/ad559x.h>
Read data from provided register.
[in] | dev | Pointer to MFD device |
[in] | reg | Register to be read |
[in] | reg_data | Additional data passed to selected register |
[in] | val | Pointer to data buffer |
0 | if success |
negative | errno if failure |
#include <zephyr/drivers/mfd/ad559x.h>
Write ADC channel data to the chip.
[in] | dev | Pointer to MFD device |
[in] | channel | Channel to write to |
[in] | value | DAC channel value |
0 | if success |
negative | errno if failure |
#include <zephyr/drivers/mfd/ad559x.h>
Write raw data to chip.
[in] | dev | Pointer to MFD device |
[in] | val | Data to be written |
[in] | len | Number of bytes to be written |
0 | if success |
negative | errno if failure |
#include <zephyr/drivers/mfd/ad559x.h>
Write data to provided register.
[in] | dev | Pointer to MFD device |
[in] | reg | Register to be written |
[in] | val | Data to be written |
0 | if success |
negative | errno if failure |