Includes library modifications to allow access to AIN_4 (AIN_0 / 5)

Committer:
bryantaylor
Date:
Tue Sep 20 21:26:12 2016 +0000
Revision:
0:eafc3fd41f75
hackathon

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bryantaylor 0:eafc3fd41f75 1 /*
bryantaylor 0:eafc3fd41f75 2 * np_driver_pm.h
bryantaylor 0:eafc3fd41f75 3 *
bryantaylor 0:eafc3fd41f75 4 * Created on: July 14, 2016
bryantaylor 0:eafc3fd41f75 5 * Author: Alan.Lin
bryantaylor 0:eafc3fd41f75 6 *
bryantaylor 0:eafc3fd41f75 7 * Copyright: NexPack Ltd.
bryantaylor 0:eafc3fd41f75 8 */
bryantaylor 0:eafc3fd41f75 9
bryantaylor 0:eafc3fd41f75 10 #ifndef NP_DRIVER_PM_H_
bryantaylor 0:eafc3fd41f75 11 #define NP_DRIVER_PM_H_
bryantaylor 0:eafc3fd41f75 12
bryantaylor 0:eafc3fd41f75 13 #ifdef __cplusplus
bryantaylor 0:eafc3fd41f75 14 extern "C" {
bryantaylor 0:eafc3fd41f75 15 #endif
bryantaylor 0:eafc3fd41f75 16
bryantaylor 0:eafc3fd41f75 17
bryantaylor 0:eafc3fd41f75 18 typedef enum{
bryantaylor 0:eafc3fd41f75 19 LPM_NONE = 0x00,
bryantaylor 0:eafc3fd41f75 20 LPM_0 = 0x01,
bryantaylor 0:eafc3fd41f75 21 LPM_1 = 0x02,
bryantaylor 0:eafc3fd41f75 22 LPM_2 = 0x04,
bryantaylor 0:eafc3fd41f75 23 LPM_3 = 0x08,
bryantaylor 0:eafc3fd41f75 24 LPM_4 = 0x10
bryantaylor 0:eafc3fd41f75 25 }E_LPM;
bryantaylor 0:eafc3fd41f75 26
bryantaylor 0:eafc3fd41f75 27 void np_driver_lpm0_automode_set(void);
bryantaylor 0:eafc3fd41f75 28 void np_driver_lpm0_automode_clear(void);
bryantaylor 0:eafc3fd41f75 29 uint8_t np_driver_lpm_mode_get(void);
bryantaylor 0:eafc3fd41f75 30 void np_driver_pm_gie_set(void);
bryantaylor 0:eafc3fd41f75 31 void np_driver_pm_gie_clear(void);
bryantaylor 0:eafc3fd41f75 32 void np_driver_lpm4_automode_set(void);
bryantaylor 0:eafc3fd41f75 33 void np_driver_lpm4_automode_clear(void);
bryantaylor 0:eafc3fd41f75 34
bryantaylor 0:eafc3fd41f75 35 #ifdef __cplusplus
bryantaylor 0:eafc3fd41f75 36 }
bryantaylor 0:eafc3fd41f75 37 #endif
bryantaylor 0:eafc3fd41f75 38
bryantaylor 0:eafc3fd41f75 39 #endif /* NP_DRIVER_PM_H_ */