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

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.
 

Detailed Description

Function Documentation

◆ max22017_reg_read()

int max22017_reg_read ( const struct device * dev,
uint8_t addr,
uint16_t * value )

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

Read register from max22017.

Parameters
devmax22017 mfd device
addrregister address to read from
valuepointer to buffer for received data
Return values
0If successful
-errnoIn case of any error (see spi_transceive_dt())

◆ max22017_reg_write()

int max22017_reg_write ( const struct device * dev,
uint8_t addr,
uint16_t value )

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

Write register to max22017.

Parameters
devmax22017 mfd device
addrregister address to write to
valuecontent to write
Return values
0If successful
-errnoIn case of any error (see spi_write_dt())