Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.
 

Detailed Description

Function Documentation

◆ mfd_ad559x_gpio_port_get_raw()

int mfd_ad559x_gpio_port_get_raw ( const struct device * dev,
uint8_t gpio,
uint16_t * value )

#include <zephyr/drivers/mfd/ad559x.h>

Read GPIO port from the chip.

Parameters
[in]devPointer to MFD device
[in]gpioGPIO to read
[in]valueDAC channel value
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_has_pointer_byte_map()

bool mfd_ad559x_has_pointer_byte_map ( const struct device * dev)

#include <zephyr/drivers/mfd/ad559x.h>

Check if the chip has a pointer byte map.

Parameters
[in]devPointer to MFD device
Return values
trueif chip has a pointer byte map, false if it has normal register map

◆ mfd_ad559x_read_adc_chan()

int mfd_ad559x_read_adc_chan ( const struct device * dev,
uint8_t channel,
uint16_t * result )

#include <zephyr/drivers/mfd/ad559x.h>

Read ADC channel data from the chip.

Parameters
[in]devPointer to MFD device
[in]channelChannel to read
[out]resultADC channel value read
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_read_raw()

int mfd_ad559x_read_raw ( const struct device * dev,
uint8_t * val,
size_t len )

#include <zephyr/drivers/mfd/ad559x.h>

Read raw data from the chip.

Parameters
[in]devPointer to MFD device
[in]valPointer to data buffer
[in]lenNumber of bytes to be read
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_read_reg()

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.

Parameters
[in]devPointer to MFD device
[in]regRegister to be read
[in]reg_dataAdditional data passed to selected register
[in]valPointer to data buffer
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_write_dac_chan()

int mfd_ad559x_write_dac_chan ( const struct device * dev,
uint8_t channel,
uint16_t value )

#include <zephyr/drivers/mfd/ad559x.h>

Write ADC channel data to the chip.

Parameters
[in]devPointer to MFD device
[in]channelChannel to write to
[in]valueDAC channel value
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_write_raw()

int mfd_ad559x_write_raw ( const struct device * dev,
uint8_t * val,
size_t len )

#include <zephyr/drivers/mfd/ad559x.h>

Write raw data to chip.

Parameters
[in]devPointer to MFD device
[in]valData to be written
[in]lenNumber of bytes to be written
Return values
0if success
negativeerrno if failure

◆ mfd_ad559x_write_reg()

int mfd_ad559x_write_reg ( const struct device * dev,
uint8_t reg,
uint16_t val )

#include <zephyr/drivers/mfd/ad559x.h>

Write data to provided register.

Parameters
[in]devPointer to MFD device
[in]regRegister to be written
[in]valData to be written
Return values
0if success
negativeerrno if failure