Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pca9422.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <zephyr/device.h>

Go to the source code of this file.

Typedefs

typedef void(* child_isr_t) (const struct device *dev)

Enumerations

enum  child_dev { PCA9422_DEV_REG = 0 , PCA9422_DEV_CHG , PCA9422_DEV_FG , PCA9422_DEV_MAX }
 Child device of pca9422. More...

Functions

void mfd_pca9422_set_irqhandler (const struct device *dev, const struct device *child_dev, enum child_dev child_idx, child_isr_t handler)
 Set child interrupt handler of pca9422.
int mfd_pca9422_reg_burst_read (const struct device *dev, uint8_t reg, uint8_t *value, size_t len)
 Read multiple registers from pca9422.
int mfd_pca9422_reg_read_byte (const struct device *dev, uint8_t reg, uint8_t *value)
 Read single register from pca9422.
int mfd_pca9422_reg_burst_write (const struct device *dev, uint8_t reg, uint8_t *value, size_t len)
 Write multiple registers to pca9422.
int mfd_pca9422_reg_write_byte (const struct device *dev, uint8_t reg, uint8_t value)
 Write single register to pca9422.
int mfd_pca9422_reg_update_byte (const struct device *dev, uint8_t reg, uint8_t mask, uint8_t value)
 Update selected bits in pca9422 register.