6#ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_NPM1300_H_
7#define ZEPHYR_INCLUDE_DRIVERS_MFD_NPM1300_H_
Public APIs for GPIO drivers.
static struct fdata_t data2[4]
Definition main.c:51
static struct fdata_t data1[4]
Definition main.c:50
int mfd_npm1300_reg_read_burst(const struct device *dev, uint8_t base, uint8_t offset, void *data, size_t len)
Read multiple registers from npm1300.
int mfd_npm1300_add_callback(const struct device *dev, struct gpio_callback *callback)
Add npm1300 event callback.
int mfd_npm1300_reg_write(const struct device *dev, uint8_t base, uint8_t offset, uint8_t data)
Write single register to npm1300.
int mfd_npm1300_reset(const struct device *dev)
npm1300 full power reset
int mfd_npm1300_hibernate(const struct device *dev, uint32_t time_ms)
npm1300 hibernate
int mfd_npm1300_remove_callback(const struct device *dev, struct gpio_callback *callback)
Remove npm1300 event callback.
int mfd_npm1300_reg_write2(const struct device *dev, uint8_t base, uint8_t offset, uint8_t data1, uint8_t data2)
Write two registers to npm1300.
mfd_npm1300_event_t
Definition npm1300.h:25
int mfd_npm1300_reg_update(const struct device *dev, uint8_t base, uint8_t offset, uint8_t data, uint8_t mask)
Update selected bits in npm1300 register.
int mfd_npm1300_set_timer(const struct device *dev, uint32_t time_ms)
Write npm1300 timer register.
int mfd_npm1300_reg_read(const struct device *dev, uint8_t base, uint8_t offset, uint8_t *data)
Read single register from npm1300.
@ NPM1300_EVENT_CHG_COMPLETED
Definition npm1300.h:26
@ NPM1300_EVENT_GPIO4_EDGE
Definition npm1300.h:39
@ NPM1300_EVENT_CHG_ERROR
Definition npm1300.h:27
@ NPM1300_EVENT_GPIO0_EDGE
Definition npm1300.h:35
@ NPM1300_EVENT_WATCHDOG_WARN
Definition npm1300.h:32
@ NPM1300_EVENT_MAX
Definition npm1300.h:40
@ NPM1300_EVENT_SHIPHOLD_PRESS
Definition npm1300.h:30
@ NPM1300_EVENT_GPIO1_EDGE
Definition npm1300.h:36
@ NPM1300_EVENT_BATTERY_DETECTED
Definition npm1300.h:28
@ NPM1300_EVENT_GPIO2_EDGE
Definition npm1300.h:37
@ NPM1300_EVENT_GPIO3_EDGE
Definition npm1300.h:38
@ NPM1300_EVENT_VBUS_REMOVED
Definition npm1300.h:34
@ NPM1300_EVENT_BATTERY_REMOVED
Definition npm1300.h:29
@ NPM1300_EVENT_SHIPHOLD_RELEASE
Definition npm1300.h:31
@ NPM1300_EVENT_VBUS_DETECTED
Definition npm1300.h:33
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
GPIO callback structure.
Definition gpio.h:740
static fdata_t data[2]
Definition test_fifo_contexts.c:15