2.110 Supply Controller (SUPC)
This Plib implements software abstraction for SUPC Peripheral.
Library Interface
Supply Controller peripheral library provides the following interfaces:
Functions
Name | Description |
---|---|
SUPC_Initialize | Initializes the SUPC peripheral |
SUPC_SelectVoltageRegulator | Selects the main voltage regulator |
SUPC_SelectTempSensorChannel | Selects a specific channel of the temperature sensor |
SUPC_SetOutputPin | Sets a specific output pin (OUTx) to logic HIGH |
SUPC_ClearOutputPin | Clears a specific output pin (OUTx) to logic LOW |
SUPC_SleepModeEnter | Puts the device into Sleep mode |
SUPC_WaitModeEnter | Puts the device into Wait mode |
SUPC_BackupModeEnter | Puts the device into Backup mode |
SUPC_GPBRRead | Reads the data from General Purpose Backup Register(GPBR) |
SUPC_GPBRWrite | Writes data to the General Purpose Backup Register(GPBR) |
SUPC_BOD33CallbackRegister | Registers the function to be called when a Brown Out Event has occurred |
SUPC_BODVDDCallbackRegister | Registers the function to be called when a Brown Out Event has occurred |
SUPC_CallbackRegister | Registers the function to be called when a Brown Out Event has occurred |
Data types and constants
Name | Type | Description |
---|---|---|
SUPC_OUTPIN | Enum | Identifies the output pins of SUPC peripheral |
SUPC_TSSEL | Enum | Identifies the temperature sensor channels of SUPC peripheral |
SUPC_VREGSEL | Enum | Identifies the Main Voltage Regulators |
SUPC_BOD33_CALLBACK | Typedef | Defines the data type and function signature for the SUPC peripheral callback function |
WAITMODE_WKUP_SOURCE | Enum | Identifies the wakeup input source |
WAITMODE_FLASH_STATE | Enum | Identifies Flash Low-power mode |
GPBR_REGS_INDEX | Enum | GPBR registers index |
SUPC_BODVDD_CALLBACK | Typedef | Defines the data type and function signature for the SUPC peripheral callback function |
SUPC_CALLBACK | Typedef | Pointer to a SUPC callback function |
SUPC_CALLBACK | Typedef | Defines the data type and function signature for the SUPC peripheral callback function |
Note: Not all APIs maybe implemented. See the specific device family
section for available APIs.