SAM L21/L22/R30/R34/R35 Power functionality.
Copyright (c) 2014-2020 Microchip Technology Inc. and its subsidiaries.
Data Structures | |
struct | system_battery_backup_power_switch_config |
Battery Backup Power Switch (BBPS) Control configuration. More... | |
struct | system_standby_config |
Standby configuration. More... | |
struct | system_voltage_references_config |
Voltage References System (VREF) Control configuration. More... | |
struct | system_voltage_regulator_config |
Voltage Regulator System (VREG) Control configuration. More... | |
Functions | |
Voltage Regulator | |
static void | system_voltage_regulator_get_config_defaults (struct system_voltage_regulator_config *const config) |
Retrieve the default configuration for voltage regulator. More... | |
static void | system_voltage_regulator_set_config (struct system_voltage_regulator_config *const config) |
Configure voltage regulator. More... | |
static void | system_voltage_regulator_enable (void) |
Enable the selected voltage regulator. More... | |
static void | system_voltage_regulator_disable (void) |
Disable the selected voltage regulator. More... | |
Voltage References | |
static void | system_voltage_reference_get_config_defaults (struct system_voltage_references_config *const config) |
Retrieve the default configuration for voltage reference. More... | |
static void | system_voltage_reference_set_config (struct system_voltage_references_config *const config) |
Configure voltage reference. More... | |
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... | |
Battery Backup Power Switch | |
static void | system_battery_backup_power_switch_get_config_defaults (struct system_battery_backup_power_switch_config *const config) |
Retrieve the default configuration for battery backup power switch control. More... | |
static void | system_battery_backup_power_switch_set_config (struct system_battery_backup_power_switch_config *const config) |
Configure battery backup power switch. More... | |
Output Pins in Backup Mode | |
static void | system_backup_pin_output_enable (enum system_backup_pin pin) |
Enable the backup pin output. More... | |
static void | system_backup_pin_output_disable (enum system_backup_pin pin) |
Disable the backup pin output. More... | |
static bool | system_backup_pin_output_is_enabled (enum system_backup_pin pin) |
Check if backup pin output is enabled. More... | |
static void | system_backup_pin_output_enable_rtc_toggle (enum system_backup_pin pin) |
Enable the backup pin toggle on RTC event. More... | |
static void | system_backup_pin_output_disable_rtc_toggle (enum system_backup_pin pin) |
Disable the backup pin toggle on RTC event. More... | |
static void | system_backup_pin_output_set (enum system_backup_pin pin) |
Set the backup pin. More... | |
static void | system_backup_pin_output_clear (enum system_backup_pin pin) |
Clear the backup pin. More... | |
static bool | system_backup_pin_output_get (enum system_backup_pin pin) |
Get the backup I/O input values. More... | |
Device Sleep Control | |
static void | 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... | |
Performance Level Control | |
static enum status_code | system_switch_performance_level (const enum system_performance_level performance_level) |
Switch performance level. More... | |
static enum system_performance_level | system_get_performance_level (void) |
Get performance level. More... | |
static uint8_t | system_get_performance_level_status (void) |
Get performance level status. More... | |
static void | system_clear_performance_level_status (void) |
Clear performance level status. More... | |
Standby Configuration | |
static void | system_standby_get_config_defaults (struct system_standby_config *const config) |
Retrieve the default configuration for standby. More... | |
static void | system_standby_set_config (struct system_standby_config *const config) |
Configure standby mode. More... | |
I/O Retention | |
static void | system_io_retension_enable (void) |
Enable I/O retention. More... | |
static void | system_io_retension_disable (void) |
Disable I/O retention. More... | |