PebbleOS v4.47.0-327-g7753e801d
Loading...
Searching...
No Matches
pbl_idle_hook Struct Reference

Idle hook, see PBL_IDLE_HOOK_DEFINE. More...

#include <idle.h>

Data Fields

void(* enter )(pbl_idle_state_id_t state, void *arg)
 Called before the CPU enters a state, may be NULL.
 
void(* exit )(pbl_idle_state_id_t state, void *arg)
 Called after the CPU left a state, may be NULL.
 
void * arg
 Passed to the functions.
 
struct pbl_idle_hook_times * times
 Times, NULL for a late hook.
 

Detailed Description

Idle hook, see PBL_IDLE_HOOK_DEFINE.

Field Documentation

◆ arg

void* pbl_idle_hook::arg

Passed to the functions.

◆ enter

void(* pbl_idle_hook::enter) (pbl_idle_state_id_t state, void *arg)

Called before the CPU enters a state, may be NULL.

◆ exit

void(* pbl_idle_hook::exit) (pbl_idle_state_id_t state, void *arg)

Called after the CPU left a state, may be NULL.

◆ times

struct pbl_idle_hook_times* pbl_idle_hook::times

Times, NULL for a late hook.


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