libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
OPAMP peripheral API
Collaboration diagram for OPAMP peripheral API:

Functions

void opamp_enable (uint32_t base)
 
void opamp_disable (uint32_t base)
 
void opamp_lock (uint32_t base)
 
void opamp_set_calsel (uint32_t base, uint32_t calsel)
 
void opamp_force_vp_enable (uint32_t base)
 
void opamp_force_vp_disable (uint32_t base)
 
void opamp_cal_enable (uint32_t base)
 
void opamp_cal_disable (uint32_t base)
 
void opamp_trimoffsetn_set (uint32_t base, uint32_t trim)
 
void opamp_trimoffsetp_set (uint32_t base, uint32_t trim)
 
void opamp_user_trim_enable (uint32_t base)
 
void opamp_user_trim_disable (uint32_t base)
 
void opamp_pga_gain_select (uint32_t base, uint32_t gain)
 
void opamp_vp_select (uint32_t base, uint32_t vp)
 
void opamp_vm_select (uint32_t base, uint32_t vm)
 
bool opamp_read_calout (uint32_t base)
 
void opamp_high_speed_mode_enable (uint32_t base)
 
void opamp_high_speed_mode_disable (uint32_t base)
 
void opamp_output_set_internal (uint32_t base)
 
void opamp_output_set_external (uint32_t base)
 

Detailed Description

Function Documentation

◆ opamp_cal_disable()

void opamp_cal_disable ( uint32_t  base)

Definition at line 62 of file opamp_common_all.c.

References OPAMP_CSR.

◆ opamp_cal_enable()

void opamp_cal_enable ( uint32_t  base)

Definition at line 57 of file opamp_common_all.c.

References OPAMP_CSR, and OPAMP_CSR_CALON.

◆ opamp_disable()

void opamp_disable ( uint32_t  base)

Definition at line 31 of file opamp_common_all.c.

References OPAMP_CSR.

◆ opamp_enable()

void opamp_enable ( uint32_t  base)

Definition at line 26 of file opamp_common_all.c.

References OPAMP_CSR, and OPAMP_CSR_EN.

◆ opamp_force_vp_disable()

void opamp_force_vp_disable ( uint32_t  base)

Definition at line 52 of file opamp_common_all.c.

References OPAMP_CSR.

◆ opamp_force_vp_enable()

void opamp_force_vp_enable ( uint32_t  base)

Definition at line 47 of file opamp_common_all.c.

References OPAMP_CSR, and OPAMP_CSR_FORCE_VP.

◆ opamp_high_speed_mode_disable()

void opamp_high_speed_mode_disable ( uint32_t  base)

Definition at line 37 of file opamp_common_v2.c.

References OPAMP_CSR.

◆ opamp_high_speed_mode_enable()

void opamp_high_speed_mode_enable ( uint32_t  base)

Definition at line 32 of file opamp_common_v2.c.

References OPAMP_CSR, and OPAMP_CSR_OPAHSM.

◆ opamp_lock()

void opamp_lock ( uint32_t  base)

Definition at line 36 of file opamp_common_all.c.

References OPAMP_CSR, and OPAMP_CSR_LOCK.

◆ opamp_output_set_external()

void opamp_output_set_external ( uint32_t  base)

Definition at line 47 of file opamp_common_v2.c.

References OPAMP_CSR.

◆ opamp_output_set_internal()

void opamp_output_set_internal ( uint32_t  base)

Definition at line 42 of file opamp_common_v2.c.

References OPAMP_CSR, and OPAMP_CSR_OPAINTOEN.

◆ opamp_pga_gain_select()

void opamp_pga_gain_select ( uint32_t  base,
uint32_t  gain 
)

Definition at line 91 of file opamp_common_all.c.

References OPAMP_CSR, OPAMP_CSR_PGA_GAIN_MASK, and OPAMP_CSR_PGA_GAIN_SHIFT.

◆ opamp_read_calout()

bool opamp_read_calout ( uint32_t  base)

Definition at line 26 of file opamp_common_v2.c.

References OPAMP_CSR, OPAMP_CSR_CALOUT_MASK, and OPAMP_CSR_CALOUT_SHIFT.

◆ opamp_set_calsel()

void opamp_set_calsel ( uint32_t  base,
uint32_t  calsel 
)

Definition at line 41 of file opamp_common_all.c.

References OPAMP_CSR, OPAMP_CSR_CALSEL_MASK, and OPAMP_CSR_CALSEL_SHIFT.

◆ opamp_trimoffsetn_set()

void opamp_trimoffsetn_set ( uint32_t  base,
uint32_t  trim 
)

◆ opamp_trimoffsetp_set()

void opamp_trimoffsetp_set ( uint32_t  base,
uint32_t  trim 
)

◆ opamp_user_trim_disable()

void opamp_user_trim_disable ( uint32_t  base)

Definition at line 86 of file opamp_common_all.c.

References OPAMP_CSR.

◆ opamp_user_trim_enable()

void opamp_user_trim_enable ( uint32_t  base)

Definition at line 81 of file opamp_common_all.c.

References OPAMP_CSR, and OPAMP_CSR_USER_TRIM.

◆ opamp_vm_select()

void opamp_vm_select ( uint32_t  base,
uint32_t  vm 
)

Definition at line 105 of file opamp_common_all.c.

References OPAMP_CSR, OPAMP_CSR_VM_SEL_MASK, and OPAMP_CSR_VM_SEL_SHIFT.

◆ opamp_vp_select()

void opamp_vp_select ( uint32_t  base,
uint32_t  vp 
)

Definition at line 98 of file opamp_common_all.c.

References OPAMP_CSR, OPAMP_CSR_VP_SEL_MASK, and OPAMP_CSR_VP_SEL_SHIFT.