Jump to main content

##

# 2.38 EC Subsystem Registers

This PLIB provides APIs to access the bank of registers associated with the EC Subsystem.

## Library Interface

EC Subsystem peripheral library provides the following interfaces:

Functions

Name | Description
--- | ---
EC_REG_BANK_Initialize | Initializes the EC Register Bank peripheral.
EC_REG_BANK_AHBErrorAddrClr | Clears the AHB error address register
EC_REG_BANK_AHBErrorAddrGet | Returns the AHB error address
EC_REG_BANK_AHBErrorDisable | Disable AHB error exception
EC_REG_BANK_AHBErrorEnable | Enable AHB error exception
EC_REG_BANK_AltNVICVectorsEnable | Enables alternate NVIC Vector IRQs
EC_REG_BANK_VTRx_CallbackRegister | Allows application to register a callback for the VTR PAD monitor
EC_REG_BANK_VTRxPadMonDebounceCtrl | Configure debounce counter for VTR1 pad
EC_REG_BANK_VTRxPadMonOverrideDis | Disables PAD monitor override feature
EC_REG_BANK_VTRxPadMonOverrideEn | Enables PAD monitor override feature
EC_REG_BANK_VTRxPadMonOverrideInpDis | When PAD monitor override feature is enabled this API disables the input buffer of the pad in the VTRx region
EC_REG_BANK_VTRxPadMonOverrideInpEn | When PAD monitor override feature is enabled this API enables normal operation of the pad in the VTRx region
EC_REG_BANK_VTRxPadMonOverrideProtDis | When PAD monitor override feature is enabled this API enables normal powered on operation
EC_REG_BANK_VTRxPadMonOverrideProtEn | When PAD monitor override feature is enabled calling this API powers off the input and output buffers and a weak pulldown is applied
EC_REG_BANK_VTRxPadMonPDIntDis | Disables PAD monitor power down interrupt
EC_REG_BANK_VTRxPadMonPDIntEn | Enables PAD monitor power down interrupt
EC_REG_BANK_VTRxPadMonPUIntDis | Disables PAD monitor power up interrupt
EC_REG_BANK_VTRxPadMonPUIntEn | Enables PAD monitor power up interrupt
EC_REG_BANK_VTRxPadMonStatusClr | Clears the PAD monitor status bits
EC_REG_BANK_VTRxPadMonStatusGet | Returns the PAD monitor status

Data types and constants

Name | Type | Description
--- | --- | ---
EC_REG_BANK_CALLBACK | Enum | Defines the data type and function signature for the EC Register Bank peripheral callback function.
VTR_PAD_MON_DEB_CTRL | Enum | Defines the enumerations associated with PAD Monitor debounce control
VTR1_PAD_MON_STS | Enum | Defines the enumerations associated with PAD Monitor status bits
VTR2_PAD_MON_STS | Enum | Defines the enumerations associated with PAD Monitor status bits

Note: Not all APIs maybe implemented. See the specific device family section for available APIs.