XPm_Notifier
- Notifier structure registered with a callback by app
Declaration
typedef struct
{
void(*const callback)(struct XPm_Ntfier *const notifier),
const u32 node,
u32 event,
u32 received_event,
u32 flags,
u32 oppoint,
u32 received,
struct XPm_Ntfier * next,
enum XPmNodeId
node,
enum XPmNotifyEvent
event
} XPm_Notifier;
Member | Description |
---|---|
callback |
Custom callback handler to be called when the notification is received. The custom handler would execute from interrupt context, it shall return quickly and must not block! (enables event-driven notifications) |
node |
Node argument (the node to receive notifications about) |
event |
Event argument (the event type to receive notifications about) |
received_event |
Event received from PLM) |
flags |
Flags |
oppoint |
Operating point of node in question. Contains the value updated when the last event notification is received. User shall not modify this value while the notifier is registered. |
received |
How many times the notification has been received - to be used by application (enables polling). User shall not modify this value while the notifier is registered. |
next |
Pointer to next notifier in linked list. Must not be modified while the notifier is registered. User shall not ever modify this value. |
node |
Node argument (the node to receive notifications about) |
event |
Event argument (the event type to receive notifications about) |