6#ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_ADP5360_H_
7#define ZEPHYR_INCLUDE_DRIVERS_MFD_ADP5360_H_
int mfd_adp5360_shipment_mode_disable(const struct device *dev)
Disable shipment mode on the ADP5360 device.
int mfd_adp5360_interrupt_trigger_set(const struct device *dev, enum adp5360_interrupt_type type, mfd_adp5360_interrupt_callback handler, void *user_data)
Register a callback for a specific interrupt type.
adp5360_interrupt_type
ADP5360 interrupt types.
Definition adp5360.h:36
pgood_pin
Power good pin selection.
Definition adp5360.h:54
int mfd_adp5360_pgood_trigger_set(const struct device *dev, enum pgood_pin pin, enum adp5360_pgood_status_type type, mfd_adp5360_interrupt_callback handler, void *user_data)
Register a callback for power good (PGOOD) pin status changes.
adp5360_pgood_status_type
Power good status types.
Definition adp5360.h:62
void(* mfd_adp5360_interrupt_callback)(const struct device *dev, void *user_data)
Interrupt callback function type for ADP5360 MFD interrupts.
Definition adp5360.h:76
int mfd_adp5360_reset_trigger_set(const struct device *dev, mfd_adp5360_interrupt_callback handler, void *user_data)
Register a callback for reset interrupt events.
int mfd_adp5360_software_reset(const struct device *dev)
Perform software reset of the ADP5360 device.
int mfd_adp5360_hardware_reset(const struct device *dev)
Perform hardware reset of the ADP5360 device.
child_dev
Child device of adp5360.
Definition adp5360.h:26
int mfd_adp5360_shipment_mode_enable(const struct device *dev)
Enable shipment mode on the ADP5360 device.
@ ADP5360_INTERRUPT_MANUAL_RESET
Manual reset interrupt.
Definition adp5360.h:48
@ ADP5360_INTERRUPT_VBUS_VOLTAGE_THRESHOLD
VBUS voltage threshold interrupt.
Definition adp5360.h:37
@ ADP5360_INTERRUPT_TEMP_THRESHOLD
Temperature threshold interrupt.
Definition adp5360.h:40
@ ADP5360_INTERRUPT_BUCKBSTPGOOD
Buck boost power good interrupt.
Definition adp5360.h:45
@ ADP5360_INTERRUPT_SOC_ACM
State of charge ACM interrupt.
Definition adp5360.h:43
@ ADP5360_INTERRUPT_BUCKPGOOD
Buck power good interrupt.
Definition adp5360.h:46
@ ADP5360_INTERRUPT_ADPICHG
Adaptive charge interrupt.
Definition adp5360.h:42
@ ADP5360_INTERRUPT_WATCHDOG_TIMEOUT
Watchdog timeout interrupt.
Definition adp5360.h:47
@ ADP5360_INTERRUPT_CHARGER_MODE_CHANGE
Charger mode change interrupt.
Definition adp5360.h:38
@ ADP5360_INTERRUPT_SOC_LOW
Low state of charge interrupt.
Definition adp5360.h:44
@ ADP5360_INTERRUPT_BAT_VOLTAGE_THRESHOLD
Battery voltage threshold interrupt.
Definition adp5360.h:39
@ ADP5360_INTERRUPT_BAT_PROTECTION
Battery protection interrupt.
Definition adp5360.h:41
@ ADP5360_PGOOD1
Power good pin 1.
Definition adp5360.h:55
@ ADP5360_PGOOD2
Power good pin 2.
Definition adp5360.h:56
@ ADP5360_PGOOD_STATUS_VOUT1_OK
VOUT1 OK status.
Definition adp5360.h:67
@ ADP5360_PGOOD_STATUS_BATTERY_OK
Battery OK status.
Definition adp5360.h:65
@ ADP5360_PGOOD_STATUS_CHARGE_COMPLETE
Charge complete status.
Definition adp5360.h:63
@ ADP5360_PGOOD_STATUS_VOUT2_OK
VOUT2 OK status.
Definition adp5360.h:66
@ ADP5360_PGOOD_STATUS_VBUS_OK
VBUS OK status.
Definition adp5360.h:64
@ ADP5360_DEV_CHG
Charger.
Definition adp5360.h:28
@ ADP5360_DEV_REG
Regulator.
Definition adp5360.h:27
@ ADP5360_DEV_MAX
Maximum number of child devices.
Definition adp5360.h:30
@ ADP5360_DEV_FG
Fuelgauge.
Definition adp5360.h:29
Child device interrupt callback structure.
Definition adp5360.h:81
void * user_data
User data for the callback.
Definition adp5360.h:83
mfd_adp5360_interrupt_callback handler
Interrupt handler callback.
Definition adp5360.h:82
Runtime device structure (in ROM) per driver instance.
Definition device.h:513