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_outcal (uint32_t base)
 
void opamp_tcm_enable (uint32_t base)
 
void opamp_tcm_disable (uint32_t base)
 
void opamp_vps_select (uint32_t base, uint32_t vps)
 
void opamp_vms_select (uint32_t base, uint32_t vms)
 

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_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_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_outcal()

bool opamp_read_outcal ( uint32_t  base)

Definition at line 26 of file opamp_common_v1.c.

References OPAMP_CSR, OPAMP_CSR_OUTCAL_MASK, and OPAMP_CSR_OUTCAL_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_tcm_disable()

void opamp_tcm_disable ( uint32_t  base)

Definition at line 37 of file opamp_common_v1.c.

References OPAMP_CSR.

◆ opamp_tcm_enable()

void opamp_tcm_enable ( uint32_t  base)

Definition at line 32 of file opamp_common_v1.c.

References OPAMP_CSR, and OPAMP_CSR_TCM_EN.

◆ 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_vms_select()

void opamp_vms_select ( uint32_t  base,
uint32_t  vms 
)

Definition at line 49 of file opamp_common_v1.c.

References OPAMP_CSR, OPAMP_CSR_VMS_SEL_MASK, and OPAMP_CSR_VMS_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.

◆ opamp_vps_select()

void opamp_vps_select ( uint32_t  base,
uint32_t  vps 
)

Definition at line 42 of file opamp_common_v1.c.

References OPAMP_CSR, OPAMP_CSR_VPS_SEL_MASK, and OPAMP_CSR_VPS_SEL_SHIFT.