Wirepas SDK
ds.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef SOURCE_WAPS_APP_DRIVERS_DS_H_
8 #define SOURCE_WAPS_APP_DRIVERS_DS_H_
9 
13 void DS_Init(void);
14 
18 void DS_Enable(uint32_t source);
19 
23 void DS_Disable(uint32_t source);
24 
25 // Bitmasks for deep sleep disable bits
26 #define DS_SOURCE_USART 0x00000001
27 #define DS_SOURCE_USART_POWER 0x00000002
28 #define DS_SOURCE_DEBUG 0x00000004
29 #define DS_SOURCE_INIT 0x00000008
30 
31 #endif /* SOURCE_WAPS_APP_DRIVERS_DS_H_ */
DS_Enable
void DS_Enable(uint32_t source)
Enable deep sleep.
DS_Disable
void DS_Disable(uint32_t source)
Disable deep sleep.
DS_Init
void DS_Init(void)
Initialize deep sleep control module.