Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mfd_npm2100_event_callback Struct Reference

nPM2100 event callback. More...

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

Data Fields

sys_snode_t node
 Internal list node.
npm2100_event_t event_mask
 Events to subscribe to, as a bitwise OR of BIT(NPM2100_EVENT_*) values.
npm2100_callback_handler_t handler
 Handler called for a matching event.

Detailed Description

nPM2100 event callback.

Keep the callback valid while registered and during dispatch. A handler may remove its own callback, but not another callback. List updates from other threads must be serialized with each other and with dispatch.

Field Documentation

◆ event_mask

npm2100_event_t mfd_npm2100_event_callback::event_mask

Events to subscribe to, as a bitwise OR of BIT(NPM2100_EVENT_*) values.

◆ handler

npm2100_callback_handler_t mfd_npm2100_event_callback::handler

Handler called for a matching event.

◆ node

sys_snode_t mfd_npm2100_event_callback::node

Internal list node.


The documentation for this struct was generated from the following file: