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.

Modules

 Quick Start Guide(s)
 In this section you can find a list of all Quick Start guides related to the Sleep controller driver.
 

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(), and sleepmgr_sleep().

static void sleep_enable ( void  )
inlinestatic

Enable sleep.

Referenced by main(), sleepmgr_sleep(), and sm_sleep().

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(), sleepmgr_sleep(), and sm_init().