INSTANCE

group npmx_instance

nPM device instance.

struct npmx_instance_t
#include <npmx_instance.h>

npmx struct definition.

Public Members

void *p_user_context

Pointer to user-defined context data.

npmx_backend_t *p_backend

Pointer to specified backend instance used by this npmx instance to communicate with npmx device.

npmx_adc_t adc[NPM_ADC_COUNT]

ADC instances.

npmx_buck_t buck[NPM_BUCK_COUNT]

BUCK instances.

npmx_errlog_t errlog[NPM_ERRLOG_COUNT]

Error log instances.

npmx_gpio_t gpio[NPM_GPIOS_COUNT]

GPIO instances.

npmx_ldsw_t ldsw[NPM_LDSW_COUNT]

LDSW instances.

npmx_led_t led[NPM_LEDDRV_COUNT]

LED instances.

npmx_pof_t pof[NPM_POF_COUNT]

POF instances.

npmx_ship_t ship[NPM_SHPHLD_COUNT]

SHIP instances.

npmx_timer_t timer[NPM_TIMER_COUNT]

TIMER instances.

npmx_vbusin_t vbusin[NPM_VBUSIN_COUNT]

VBUSIN instances.

npmx_charger_t charger[NPM_BCHARGER_COUNT]

CHARGER instances.

npmx_callback_t generic_cb

Function used when registered_cb for npmx_callback_type_t is not set.

npmx_callback_t registered_cb[NPMX_CALLBACK_TYPE_COUNT]

Table of registered callbacks.

uint8_t event_group_enable_mask[NPMX_EVENT_GROUP_COUNT]

Enabled events in specified events group, see npmx_event_group_xxx_t for selected event.

bool interrupt

Flag set in interrupt to inform npmx_proc about incoming GPIO interrupt.

bool restore_values

True for reading initial values from nPM device, false for setting default values.