Public functions of the AMP PRAL driver. More...
Functions | |
volatile struct P33C_OPA_MODULE_s * | p33c_OpaModule_GetHandle (void) |
Gets pointer to op-amp Module SFR set. More... | |
volatile uint16_t | p33c_OpaModule_Dispose (void) |
Resets all Op-Amp Module registers to their RESET default values. More... | |
volatile struct P33C_OPA_MODULE_s | p33c_OpaModule_ConfigRead (void) |
Read the current configuration from the op-amp module base registers. More... | |
volatile uint16_t | p33c_OpaModule_ConfigWrite (volatile struct P33C_OPA_MODULE_s opaModuleConfig) |
Writes a user-defined configuration to the op-amp module base registers. More... | |
Variables | |
volatile struct P33C_OPA_MODULE_s | opaModuleConfigClear |
Default RESET configuration of the op-amp module base SFRs. More... | |
volatile struct P33C_OPA_MODULE_s | opaModuleDefault |
Default configuration of op-amp module running from 500 MHz input clock. More... | |
Public functions of the AMP PRAL driver.
This is the detailed description of public functions of the AMP PRAL driver
struct P33C_OPA_MODULE_s p33c_OpaModule_ConfigRead | ( | void | ) |
Read the current configuration from the op-amp module base registers.
This function reads all registers with their current configuration into a data structure of type P33C_OPA_MODULE_s. Users can read and verify or modify the configuration to write it back to the op-amp module registers.
Definition at line 72 of file p33c_opa.c.
uint16_t p33c_OpaModule_ConfigWrite | ( | volatile struct P33C_OPA_MODULE_s | opaModuleConfig | ) |
Writes a user-defined configuration to the op-amp module base registers.
opaModuleConfig | Operation Amplifier Peripheral SFR data object of type struct P33C_OPA_MODULE_s |
This function writes a user-defined op-amp module configuration of type P33C_OPA_MODULE_s to the op-amp module base registers. The individual register configurations have to be set in user-code before calling this function. To simplify the configuration process of standard functions, this driver provides templates, which can be loaded and written directly.
Definition at line 125 of file p33c_opa.c.
uint16_t p33c_OpaModule_Dispose | ( | void | ) |
Resets all Op-Amp Module registers to their RESET default values.
This function clears all op-amp module registers to their default values set when the device comes out of RESET.
Default configuration:
Definition at line 72 of file p33c_opa.c.
struct P33C_OPA_MODULE_s * p33c_OpaModule_GetHandle | ( | void | ) |
Gets pointer to op-amp Module SFR set.
This function returns the pointer to a op-amp module register set Special Function Register memory space. This pointer can be used to directly write to/read from the Special Function Registers of the op-amp peripheral module configuration.
Definition at line 43 of file p33c_opa.c.
opaModuleConfigClear |
Default RESET configuration of the op-amp module base SFRs.
Default configuration of the op-amp module SFRs with all its registers being reset to their default state when the device comes out of RESET. Programmers can use this template to reset (dispose) a previously used op-amp module when it's not used anymore or to ensure a known startup condition before writing individual configurations to its SFRs.
Definition at line 125 of file p33c_opa.c.
opaModuleDefault |
Default configuration of op-amp module running from 500 MHz input clock.
Default configuration of the op-amp module SFRs with all its registers being reset to their default state when the device comes out of RESET.
Programmers can use this template to reset a previously used op-amp module when it's not used anymore or to ensure a known startup condition before writing individual configurations to its SFRs.
Definition at line 125 of file p33c_opa.c.