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

NameDescription
EC_REG_BANK_InitializeInitializes the EC Register Bank peripheral.
EC_REG_BANK_AHBErrorAddrClrClears the AHB error address register
EC_REG_BANK_AHBErrorAddrGetReturns the AHB error address
EC_REG_BANK_AHBErrorDisableDisable AHB error exception
EC_REG_BANK_AHBErrorEnableEnable AHB error exception
EC_REG_BANK_AltNVICVectorsEnableEnables alternate NVIC Vector IRQs
EC_REG_BANK_VTRx_CallbackRegisterAllows application to register a callback for the VTR PAD monitor
EC_REG_BANK_VTRxPadMonDebounceCtrlConfigure debounce counter for VTR1 pad
EC_REG_BANK_VTRxPadMonOverrideDisDisables PAD monitor override feature
EC_REG_BANK_VTRxPadMonOverrideEnEnables PAD monitor override feature
EC_REG_BANK_VTRxPadMonOverrideInpDisWhen 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_VTRxPadMonOverrideProtDisWhen PAD monitor override feature is enabled this API enables normal powered on operation
EC_REG_BANK_VTRxPadMonOverrideProtEnWhen 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_VTRxPadMonPDIntEnEnables PAD monitor power down interrupt
EC_REG_BANK_VTRxPadMonPUIntDisDisables PAD monitor power up interrupt
EC_REG_BANK_VTRxPadMonPUIntEnEnables PAD monitor power up interrupt
EC_REG_BANK_VTRxPadMonStatusClrClears the PAD monitor status bits
EC_REG_BANK_VTRxPadMonStatusGetReturns the PAD monitor status

Data types and constants

NameTypeDescription
EC_REG_BANK_CALLBACKEnumDefines the data type and function signature for the EC Register Bank peripheral callback function.
VTR_PAD_MON_DEB_CTRLEnumDefines the enumerations associated with PAD Monitor debounce control
VTR1_PAD_MON_STSEnumDefines the enumerations associated with PAD Monitor status bits
VTR2_PAD_MON_STSEnumDefines the enumerations associated with PAD Monitor status bits
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.