m2mb API docs  25.30.004.0
m2mb API sets documentation
m2mb_power.h File Reference

Power library implementation. More...

Go to the source code of this file.

Typedefs

typedef HANDLE M2MB_POWER_HANDLE
 Generic handle type for power operations.
 
typedef void(* m2mb_power_ind_callback) (M2MB_POWER_HANDLE h, M2MB_POWER_EVT_E power_event, UINT16 resp_size, void *resp_struct, void *userdata)
 Power events indication callback type. More...
 

Enumerations

enum  M2MB_POWER_EVT_E { M2MB_POWER_SYSHALT_EVT, M2MB_POWER_DUMMY_EVT }
 Enumeration representing all power related events. More...
 
enum  M2MB_POWER_ACTION_E { M2MB_POWER_DO_RBT, M2MB_POWER_DO_SHDN }
 Enumeration representing all power related actions. More...
 

Functions

M2MB_RESULT_E m2mb_power_init (M2MB_POWER_HANDLE *pHandle, m2mb_power_ind_callback callback, void *userdata)
 Initializes the power system. More...
 
M2MB_RESULT_E m2mb_power_deinit (M2MB_POWER_HANDLE handle)
 Deinitializes the power management system. More...
 
M2MB_RESULT_E m2mb_power_reboot (M2MB_POWER_HANDLE handle)
 Restarts all the system. More...
 
M2MB_RESULT_E m2mb_power_shutdown (M2MB_POWER_HANDLE handle)
 Turns off the system. More...
 

Detailed Description

Power library implementation.

m2m/m2m_generic/common/m2mb_inc/m2mb_power.h

The following functions are implemented:

Note
Dependencies: m2mb_types.h
Author
Alessandro Bonetti
Date
24/05/2018