Microchip® Advanced Software Framework

power.h File Reference

SAM Power related functionality.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>

Macros

#define _SYSTEM_MCU_REVISION_D   3
 
#define _SYSTEM_MCU_REVISION_E   4
 

Enumerations

enum  system_sleepmode {
  SYSTEM_SLEEPMODE_IDLE_0,
  SYSTEM_SLEEPMODE_IDLE_1,
  SYSTEM_SLEEPMODE_IDLE_2,
  SYSTEM_SLEEPMODE_STANDBY
}
 Device sleep modes. More...
 
enum  system_voltage_reference {
  SYSTEM_VOLTAGE_REFERENCE_TEMPSENSE,
  SYSTEM_VOLTAGE_REFERENCE_BANDGAP
}
 Voltage references within the device. More...
 

Functions

Voltage References
static void system_voltage_reference_enable (const enum system_voltage_reference vref)
 Enable the selected voltage reference. More...
 
static void system_voltage_reference_disable (const enum system_voltage_reference vref)
 Disable the selected voltage reference. More...
 
Device Sleep Control
static enum status_code system_set_sleepmode (const enum system_sleepmode sleep_mode)
 Set the sleep mode of the device. More...
 
static void system_sleep (void)
 Put the system to sleep waiting for interrupt. More...
 

#define _SYSTEM_MCU_REVISION_D   3

Referenced by system_set_sleepmode().

#define _SYSTEM_MCU_REVISION_E   4

Referenced by system_set_sleepmode().