WE310F5  39.00.000
m2mb_pwr_mgmt.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
23 #ifndef M2MB_PWR_MGMT_API_H
24 #define M2MB_PWR_MGMT_API_H
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
44 /*-----------------------------------------------------------------------------------------------*/
45 
50 /*-----------------------------------------------------------------------------------------------*/
51 
52 
53 /* Global declarations ==========================================================================*/
54 #define M2MB_SYSTEM_STABALIZE_TIME_MS 200
55 #ifndef UNUSED
56 #define UNUSED(x) ((void)(x))
57 #endif
58 /* Global typedefs ==============================================================================*/
59 /* Callback fuction for suspend and resume fuction */
60 typedef VOID (*M2MB_SLEEP_CB_T)( UINT32 expected_idle_time, void *param);
61 
62 
63 /* Global functions =========================================================*/
64 
65 /*---------------------------------------------------------------------------*/
91 /*---------------------------------------------------------------------------*/
93 
94 
95 /*---------------------------------------------------------------------------*/
131 INT32 m2mb_pwr_mgmt_cfg_sleep( UINT32 enable, UINT32 duration );
132 
133 /*---------------------------------------------------------------------------*/
163 /*-----------------------------------------------------------------------------------------------*/
164 
165 
166 #ifdef __cplusplus
167 }
168 #endif
169 #endif
INT32 m2mb_pwr_mgmt_standby(UINT32 duration)
m2mb_pwr_mgmt_standby puts the system to standby mode.
INT32 m2mb_pwr_mgmt_cfg_sleep(UINT32 enable, UINT32 duration)
m2mb_pwr_mgmt_cfg_sleep configures the sleep mode.
void VOID
Definition: m2mb_types.h:74
INT32 m2mb_pwr_mgmt_cfg_sleep_cb(M2MB_SLEEP_CB_T after, M2MB_SLEEP_CB_T before)
m2mb_pwr_mgmt_cfg_sleep_cb configures callback for the sleep mode.
unsigned long int UINT32
Definition: m2mb_types.h:88
signed int INT32
Definition: m2mb_types.h:82
VOID(* M2MB_SLEEP_CB_T)(UINT32 expected_idle_time, void *param)
Definition: m2mb_pwr_mgmt.h:60