Includes library modifications to allow access to AIN_4 (AIN_0 / 5)
Diff: nexpaq_mdk_src/source/np_driver_pm.h
- Revision:
- 0:eafc3fd41f75
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nexpaq_mdk_src/source/np_driver_pm.h Tue Sep 20 21:26:12 2016 +0000 @@ -0,0 +1,39 @@ +/* + * np_driver_pm.h + * + * Created on: July 14, 2016 + * Author: Alan.Lin + * + * Copyright: NexPack Ltd. + */ + +#ifndef NP_DRIVER_PM_H_ +#define NP_DRIVER_PM_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +typedef enum{ + LPM_NONE = 0x00, + LPM_0 = 0x01, + LPM_1 = 0x02, + LPM_2 = 0x04, + LPM_3 = 0x08, + LPM_4 = 0x10 +}E_LPM; + +void np_driver_lpm0_automode_set(void); +void np_driver_lpm0_automode_clear(void); +uint8_t np_driver_lpm_mode_get(void); +void np_driver_pm_gie_set(void); +void np_driver_pm_gie_clear(void); +void np_driver_lpm4_automode_set(void); +void np_driver_lpm4_automode_clear(void); + +#ifdef __cplusplus +} +#endif + +#endif /* NP_DRIVER_PM_H_ */