Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Sleep controller driver

This is a low-level driver implementation for the MEGA RF sleep controller.

Note
To minimize the code overhead, these functions do not feature interrupt-protected access since they are likely to be called inside interrupt handlers or in applications where such protection is not necessary. If such protection is needed, it must be ensured by the calling code.

Functions

static void sleep_disable (void)
 Disable sleep. More...
 
static void sleep_enable (void)
 Enable sleep. More...
 
static void sleep_set_mode (enum SLEEP_SMODE_enum mode)
 Set new sleep mode. More...
 

static void sleep_disable ( void  )
inlinestatic

Disable sleep.

Referenced by example_cmp2_int_cb().

static void sleep_enable ( void  )
inlinestatic

Enable sleep.

Referenced by main().

static void sleep_set_mode ( enum SLEEP_SMODE_enum  mode)
inlinestatic

Set new sleep mode.

Parameters
modeSleep mode, from the device IO header file.

Referenced by main().