|
libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|

Functions | |
| void | adc_set_oversampling (uint32_t adc, uint32_t oversamp) |
| Set ADC over sampling. More... | |
| void | adc_set_warm_up (uint32_t adc, uint8_t clocks) |
| Set ADC warm up. More... | |
| void | adc_set_clock_prescaler (uint32_t adc, uint8_t factor) |
| Clock division factor. More... | |
| void | adc_set_lowpass_filter (uint32_t adc, uint32_t lpfmode) |
| Set low pass filter mode. More... | |
| void | adc_enable_tailgating (uint32_t adc) |
| Enable tail gating. More... | |
| void | adc_disable_tailgating (uint32_t adc) |
| Disable tail gating. More... | |
| void | adc_set_warm_up_mode (uint32_t adc, uint32_t warmupmode) |
| Set warm up mode. More... | |
| void | adc_single_start (uint32_t adc) |
| Start ADC in single acquisition. More... | |
| void | adc_single_stop (uint32_t adc) |
| Stop ADC in single acquisition. More... | |
| void | adc_scan_start (uint32_t adc) |
| Start ADC in scan acquisition. More... | |
| void | adc_scan_stop (uint32_t adc) |
| Stop ADC in scan acquisition. More... | |
| void | adc_set_single_prs_trigger (uint32_t adc, uint8_t prssel) |
| Set single PRS trigger. More... | |
| void | adc_enable_single_prs_trigger (uint32_t adc) |
| Enable single PRS Triggering. More... | |
| void | adc_disable_single_prs_trigger (uint32_t adc) |
| Disable single PRS Triggering. More... | |
| void | adc_set_single_acquisition_cycle (uint32_t adc, uint32_t at) |
| Set single acquisition cycle. More... | |
| void | adc_set_single_reference (uint32_t adc, uint32_t ref) |
| Set single reference for acquisition. More... | |
| void | adc_set_single_channel (uint32_t adc, uint8_t ch) |
| Set single channel. More... | |
| void | adc_set_single_resolution (uint32_t adc, uint32_t res) |
| Set single resolution of conversion. More... | |
| void | adc_set_single_left_aligned (uint32_t adc) |
| Set single left aligned output. More... | |
| void | adc_set_single_right_aligned (uint32_t adc) |
| Set single right aligned output. More... | |
| void | adc_set_single_single_ended (uint32_t adc) |
| Set single single-ended conversion. More... | |
| void | adc_set_single_differential (uint32_t adc) |
| Set single differential conversion. More... | |
| void | adc_enable_single_repeat_conv (uint32_t adc) |
| Enable single channel repeated conversion. More... | |
| void | adc_disable_single_repeat_conv (uint32_t adc) |
| Disable single repeated conversion. More... | |
| void | adc_set_scan_prs_trigger (uint32_t adc, uint8_t prssel) |
| Set scan PRS trigger. More... | |
| void | adc_enable_scan_prs_trigger (uint32_t adc) |
| Enable scan PRS Triggering. More... | |
| void | adc_disable_scan_prs_trigger (uint32_t adc) |
| Disable scan PRS Triggering. More... | |
| void | adc_set_scan_acquisition_cycle (uint32_t adc, uint32_t at) |
| Set scan acquisition cycle. More... | |
| void | adc_set_scan_reference (uint32_t adc, uint32_t ref) |
| Set scan reference for acquisition. More... | |
| void | adc_set_scan_channel (uint32_t adc, uint8_t length, uint8_t channel[]) |
| Set scan channel list. More... | |
| void | adc_set_scan_resolution (uint32_t adc, uint32_t res) |
| Set scan resolution of conversion. More... | |
| void | adc_set_scan_left_aligned (uint32_t adc) |
| Set scan left aligned output. More... | |
| void | adc_set_scan_right_aligned (uint32_t adc) |
| Set scan right aligned output. More... | |
| void | adc_set_scan_single_ended (uint32_t adc) |
| Set scan single ended conversion. More... | |
| void | adc_set_scan_differential (uint32_t adc) |
| Set scan differential conversion. More... | |
| void | adc_enable_scan_repeat_conv (uint32_t adc) |
| Enable scan repeated conversion. More... | |
| void | adc_disable_scan_repeat_conv (uint32_t adc) |
| Disable scan repeated conversion. More... | |
| void | adc_enable_single_result_overflow_interrupt (uint32_t adc) |
| Enable single result overflow interrupt. More... | |
| void | adc_disable_single_result_overflow_interrupt (uint32_t adc) |
| Disable single result overflow interrupt. More... | |
| void | adc_enable_single_conversion_complete_interrupt (uint32_t adc) |
| Enable single conversion complete interrupt. More... | |
| void | adc_disable_single_conversion_complete_interrupt (uint32_t adc) |
| Disable single conversion complete interrupt. More... | |
| void | adc_enable_scan_result_overflow_interrupt (uint32_t adc) |
| Enable scan result overflow interrupt. More... | |
| void | adc_disable_scan_result_overflow_interrupt (uint32_t adc) |
| Disable scan result overflow interrupt. More... | |
| void | adc_enable_scan_conversion_complete_interrupt (uint32_t adc) |
| Disable scan conversion complete interrupt. More... | |
| void | adc_disable_scan_conversion_complete_interrupt (uint32_t adc) |
| Disable scan conversion complete interrupt. More... | |
| bool | adc_get_single_result_overflow_flag (uint32_t adc) |
| Get single result overflow flag. More... | |
| bool | adc_get_single_conversion_complete_flag (uint32_t adc) |
| Get single conversion complete flag. More... | |
| bool | adc_get_scan_result_overflow_flag (uint32_t adc) |
| Get scan result overflow flag. More... | |
| bool | adc_get_scan_conversion_complete_flag (uint32_t adc) |
| Get scan conversion complete flag. More... | |
| void | adc_set_single_result_overflow_flag (uint32_t adc) |
| Set single result overflow flag. More... | |
| void | adc_set_single_conversion_complete_flag (uint32_t adc) |
| Set single conversion complete flag. More... | |
| void | adc_set_scan_result_overflow_flag (uint32_t adc) |
| Set scan result overflow flag. More... | |
| void | adc_set_scan_conversion_complete_flag (uint32_t adc) |
| Set scan conversion complete flag. More... | |
| void | adc_clear_single_result_overflow_flag (uint32_t adc) |
| Clear single result overflow flag. More... | |
| void | adc_clear_single_conversion_complete_flag (uint32_t adc) |
| Clear single conversion complete flag. More... | |
| void | adc_clear_scan_result_overflow_flag (uint32_t adc) |
| Clear scan result overflow flag. More... | |
| void | adc_clear_scan_conversion_complete_flag (uint32_t adc) |
| Clear scan conversion complete flag. More... | |
| uint32_t | adc_single_data (uint32_t adc) |
| Get result from last scan conversion. More... | |
| uint32_t | adc_scan_data (uint32_t adc) |
| Get result from last scan conversion. More... | |
| uint32_t | adc_single_data_peak (uint32_t adc) |
| Get result from last single conversion (peak) Reading result using this function will not clear SINGLEDV in ADC_STATUS or SINGLE DMA request. More... | |
| uint32_t | adc_scan_data_peak (uint32_t adc) |
| Get result from last scan conversion (peak) Reading result using this function will not clear SCANDV in ADC_STATUS or SCAN DMA request. More... | |
| void | adc_set_calibration_scan_gain (uint32_t adc, uint8_t scan_gain) |
| Set ADC scan gain calibration. More... | |
| void | adc_set_calibration_scan_offset (uint32_t adc, uint8_t scan_offset) |
| Set ADC scan offset calibration. More... | |
| void | adc_set_calibration_single_gain (uint32_t adc, uint8_t single_gain) |
| Set ADC single gain calibration. More... | |
| void | adc_set_calibration_single_offset (uint32_t adc, uint8_t single_offset) |
| Set ADC single offset calibration. More... | |
| void adc_clear_scan_conversion_complete_flag | ( | uint32_t | adc | ) |
Clear scan conversion complete flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 589 of file adc_common.c.
References ADC_IFC, and ADC_IFC_SCAN.
| void adc_clear_scan_result_overflow_flag | ( | uint32_t | adc | ) |
Clear scan result overflow flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 580 of file adc_common.c.
References ADC_IFC, and ADC_IFC_SCANOF.
| void adc_clear_single_conversion_complete_flag | ( | uint32_t | adc | ) |
Clear single conversion complete flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 571 of file adc_common.c.
References ADC_IFC, and ADC_IFC_SINGLE.
| void adc_clear_single_result_overflow_flag | ( | uint32_t | adc | ) |
Clear single result overflow flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 562 of file adc_common.c.
References ADC_IFC, and ADC_IFC_SINGLEOF.
| void adc_disable_scan_conversion_complete_interrupt | ( | uint32_t | adc | ) |
Disable scan conversion complete interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 473 of file adc_common.c.
References ADC_IEN.
| void adc_disable_scan_prs_trigger | ( | uint32_t | adc | ) |
Disable scan PRS Triggering.
| [in] | adc | ADC (use ADCx) |
Definition at line 291 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_disable_scan_repeat_conv | ( | uint32_t | adc | ) |
Disable scan repeated conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 401 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_disable_scan_result_overflow_interrupt | ( | uint32_t | adc | ) |
Disable scan result overflow interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 455 of file adc_common.c.
References ADC_IEN.
| void adc_disable_single_conversion_complete_interrupt | ( | uint32_t | adc | ) |
Disable single conversion complete interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 437 of file adc_common.c.
References ADC_IEN.
| void adc_disable_single_prs_trigger | ( | uint32_t | adc | ) |
Disable single PRS Triggering.
| [in] | adc | ADC (use ADCx) |
Definition at line 161 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_disable_single_repeat_conv | ( | uint32_t | adc | ) |
Disable single repeated conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 260 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_disable_single_result_overflow_interrupt | ( | uint32_t | adc | ) |
Disable single result overflow interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 419 of file adc_common.c.
References ADC_IEN.
| void adc_disable_tailgating | ( | uint32_t | adc | ) |
Disable tail gating.
| [in] | adc | ADC (use ADCx) |
Definition at line 83 of file adc_common.c.
References ADC_CTRL.
| void adc_enable_scan_conversion_complete_interrupt | ( | uint32_t | adc | ) |
Disable scan conversion complete interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 464 of file adc_common.c.
References ADC_IEN, and ADC_IEN_SCAN.
| void adc_enable_scan_prs_trigger | ( | uint32_t | adc | ) |
Enable scan PRS Triggering.
| [in] | adc | ADC (use ADCx) |
Definition at line 282 of file adc_common.c.
References ADC_SCANCTRL, and ADC_SCANCTRL_PRSEN.
| void adc_enable_scan_repeat_conv | ( | uint32_t | adc | ) |
Enable scan repeated conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 392 of file adc_common.c.
References ADC_SCANCTRL, and ADC_SCANCTRL_REP.
| void adc_enable_scan_result_overflow_interrupt | ( | uint32_t | adc | ) |
Enable scan result overflow interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 446 of file adc_common.c.
References ADC_IEN, and ADC_IEN_SCANOF.
| void adc_enable_single_conversion_complete_interrupt | ( | uint32_t | adc | ) |
Enable single conversion complete interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 428 of file adc_common.c.
References ADC_IEN, and ADC_IEN_SINGLE.
| void adc_enable_single_prs_trigger | ( | uint32_t | adc | ) |
Enable single PRS Triggering.
| [in] | adc | ADC (use ADCx) |
Definition at line 152 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_PRSEN.
| void adc_enable_single_repeat_conv | ( | uint32_t | adc | ) |
Enable single channel repeated conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 251 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_REP.
| void adc_enable_single_result_overflow_interrupt | ( | uint32_t | adc | ) |
Enable single result overflow interrupt.
| [in] | adc | ADC (use ADCx) |
Definition at line 410 of file adc_common.c.
References ADC_IEN, and ADC_IEN_SINGLEOF.
| void adc_enable_tailgating | ( | uint32_t | adc | ) |
Enable tail gating.
| [in] | adc | ADC (use ADCx) |
Definition at line 74 of file adc_common.c.
References ADC_CTRL, and ADC_CTRL_TAILGATE.
| bool adc_get_scan_conversion_complete_flag | ( | uint32_t | adc | ) |
Get scan conversion complete flag.
| [in] | adc | ADC (use ADCx) |
| true | if flag is set |
| false | if flag is not set |
Definition at line 517 of file adc_common.c.
References ADC_IF, and ADC_IF_SCAN.
| bool adc_get_scan_result_overflow_flag | ( | uint32_t | adc | ) |
Get scan result overflow flag.
| [in] | adc | ADC (use ADCx) |
| true | if flag set |
| false | if flag is not set |
Definition at line 506 of file adc_common.c.
References ADC_IF, and ADC_IF_SCANOF.
| bool adc_get_single_conversion_complete_flag | ( | uint32_t | adc | ) |
Get single conversion complete flag.
| [in] | adc | ADC (use ADCx) |
| true | if flag set |
| false | if flag is not set |
Definition at line 495 of file adc_common.c.
References ADC_IF, and ADC_IF_SINGLE.
| bool adc_get_single_result_overflow_flag | ( | uint32_t | adc | ) |
Get single result overflow flag.
| [in] | adc | ADC (use ADCx) |
| true | if flag set |
| false | if flag is not set |
Definition at line 484 of file adc_common.c.
References ADC_IF, and ADC_IF_SCANOF.
| uint32_t adc_scan_data | ( | uint32_t | adc | ) |
Get result from last scan conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 609 of file adc_common.c.
References ADC_SCANDATA.
| uint32_t adc_scan_data_peak | ( | uint32_t | adc | ) |
Get result from last scan conversion (peak) Reading result using this function will not clear SCANDV in ADC_STATUS or SCAN DMA request.
| [in] | adc | ADC (use ADCx) |
Definition at line 633 of file adc_common.c.
References ADC_SCANDATAP.
| void adc_scan_start | ( | uint32_t | adc | ) |
Start ADC in scan acquisition.
| [in] | adc | ADC (use ADCx) |
Definition at line 121 of file adc_common.c.
References ADC_CMD, and ADC_CMD_SCANSTART.
| void adc_scan_stop | ( | uint32_t | adc | ) |
Stop ADC in scan acquisition.
| [in] | adc | ADC (use ADCx) |
Definition at line 130 of file adc_common.c.
References ADC_CMD, and ADC_CMD_SCANSTOP.
| void adc_set_calibration_scan_gain | ( | uint32_t | adc, |
| uint8_t | scan_gain | ||
| ) |
Set ADC scan gain calibration.
| [in] | adc | ADC (use ADCx) |
| scan_gain | calibration of gain for internal ref |
Definition at line 643 of file adc_common.c.
References ADC_CAL, and ADC_CAL_SCANGAIN_MASK.
| void adc_set_calibration_scan_offset | ( | uint32_t | adc, |
| uint8_t | scan_offset | ||
| ) |
Set ADC scan offset calibration.
| [in] | adc | ADC (use ADCx) |
| scan_offset | calibration of offset for internal ref |
Definition at line 653 of file adc_common.c.
References ADC_CAL, and ADC_CAL_SCANOFF_MASK.
| void adc_set_calibration_single_gain | ( | uint32_t | adc, |
| uint8_t | single_gain | ||
| ) |
Set ADC single gain calibration.
| [in] | adc | ADC (use ADCx) |
| single_gain | calibration of gain for internal ref |
Definition at line 663 of file adc_common.c.
References ADC_CAL, and ADC_CAL_SINGLEGAIN_MASK.
| void adc_set_calibration_single_offset | ( | uint32_t | adc, |
| uint8_t | single_offset | ||
| ) |
Set ADC single offset calibration.
| [in] | adc | ADC (use ADCx) |
| single_offset | calibration of offset for internal ref |
Definition at line 673 of file adc_common.c.
References ADC_CAL, and ADC_CAL_SINGLEOFF_MASK.
| void adc_set_clock_prescaler | ( | uint32_t | adc, |
| uint8_t | factor | ||
| ) |
Clock division factor.
| [in] | adc | ADC (use ADCx) |
| [in] | factor | Factor (1 - 128) |
Definition at line 54 of file adc_common.c.
References ADC_CTRL, and ADC_CTRL_PRESC.
| void adc_set_lowpass_filter | ( | uint32_t | adc, |
| uint32_t | lpfmode | ||
| ) |
Set low pass filter mode.
| [in] | adc | ADC (use ADCx) |
| [in] | lpfmode | Low pass filter mode (use ADC_CTRL_LPFMODE_*) |
Definition at line 65 of file adc_common.c.
References ADC_CTRL.
| void adc_set_oversampling | ( | uint32_t | adc, |
| uint32_t | oversamp | ||
| ) |
Set ADC over sampling.
| [in] | adc | ADC (use ADCx) |
| [in] | oversamp | Oversampling (use ADC_CTRL_OVERSEL_Xx) |
Definition at line 32 of file adc_common.c.
References ADC_CTRL.
| void adc_set_scan_acquisition_cycle | ( | uint32_t | adc, |
| uint32_t | at | ||
| ) |
Set scan acquisition cycle.
| [in] | adc | ADC (use ADCx) |
| [in] | at | Acquisition time (use ADC_SCANCTRL_AT_x) |
Definition at line 301 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_set_scan_channel | ( | uint32_t | adc, |
| uint8_t | length, | ||
| uint8_t | channel[] | ||
| ) |
Set scan channel list.
| [in] | adc | ADC (use ADCx) |
| [in] | length | Length of channel |
| [in] | channel | channel list (use ADC_CHx) |
Definition at line 325 of file adc_common.c.
References ADC_SCANCTRL, ADC_SCANCTRL_INPUTSEL_MASK, and ADC_SCANCTRL_INPUTSEL_SHIFT.
| void adc_set_scan_conversion_complete_flag | ( | uint32_t | adc | ) |
Set scan conversion complete flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 553 of file adc_common.c.
References ADC_IFS, and ADC_IFS_SCAN.
| void adc_set_scan_differential | ( | uint32_t | adc | ) |
Set scan differential conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 381 of file adc_common.c.
References ADC_SCANCTRL, and ADC_SCANCTRL_DIFF.
| void adc_set_scan_left_aligned | ( | uint32_t | adc | ) |
Set scan left aligned output.
| [in] | adc | ADC (use ADCx) |
Definition at line 354 of file adc_common.c.
References ADC_SCANCTRL, and ADC_SCANCTRL_ADJ.
| void adc_set_scan_prs_trigger | ( | uint32_t | adc, |
| uint8_t | prssel | ||
| ) |
Set scan PRS trigger.
| [in] | adc | ADC (use ADCx) |
| [in] | prssel | PRS Selected (use PRS_CHx) |
Definition at line 271 of file adc_common.c.
References ADC_SCANCTRL, and ADC_SCANCTRL_PRSSEL_PRSCHx.
| void adc_set_scan_reference | ( | uint32_t | adc, |
| uint32_t | ref | ||
| ) |
Set scan reference for acquisition.
| [in] | adc | ADC (use ADCx) |
| [in] | ref | Reference (use ADC_SCANCTRL_REF_x) |
Definition at line 312 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_set_scan_resolution | ( | uint32_t | adc, |
| uint32_t | res | ||
| ) |
Set scan resolution of conversion.
| [in] | adc | ADC (use ADCx) |
| [in] | res | Resolution (use ADC_SCANCTRL_RES_*) |
Definition at line 344 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_set_scan_result_overflow_flag | ( | uint32_t | adc | ) |
Set scan result overflow flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 544 of file adc_common.c.
References ADC_IFS, and ADC_IFS_SCANOF.
| void adc_set_scan_right_aligned | ( | uint32_t | adc | ) |
Set scan right aligned output.
| [in] | adc | ADC (use ADCx) |
Definition at line 363 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_set_scan_single_ended | ( | uint32_t | adc | ) |
Set scan single ended conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 372 of file adc_common.c.
References ADC_SCANCTRL.
| void adc_set_single_acquisition_cycle | ( | uint32_t | adc, |
| uint32_t | at | ||
| ) |
Set single acquisition cycle.
| [in] | adc | ADC (use ADCx) |
| [in] | at | Acquisition time (use ADC_SINGLECTRL_AT_x) |
Definition at line 171 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_set_single_channel | ( | uint32_t | adc, |
| uint8_t | ch | ||
| ) |
Set single channel.
| [in] | adc | ADC (use ADCx) |
| [in] | ch | Channel (use ADC_CHx and ADC_CH_*) |
Definition at line 193 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_INPUTSEL.
| void adc_set_single_conversion_complete_flag | ( | uint32_t | adc | ) |
Set single conversion complete flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 535 of file adc_common.c.
References ADC_IFS, and ADC_IFS_SINGLE.
| void adc_set_single_differential | ( | uint32_t | adc | ) |
Set single differential conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 242 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_DIFF.
| void adc_set_single_left_aligned | ( | uint32_t | adc | ) |
Set single left aligned output.
| [in] | adc | ADC (use ADCx) |
Definition at line 215 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_ADJ.
| void adc_set_single_prs_trigger | ( | uint32_t | adc, |
| uint8_t | prssel | ||
| ) |
Set single PRS trigger.
| [in] | adc | ADC (use ADCx) |
| [in] | prssel | PRS Selected (use PRS_CHx) |
Definition at line 141 of file adc_common.c.
References ADC_SINGLECTRL, and ADC_SINGLECTRL_PRSSEL_PRSCHx.
| void adc_set_single_reference | ( | uint32_t | adc, |
| uint32_t | ref | ||
| ) |
Set single reference for acquisition.
| [in] | adc | ADC (use ADCx) |
| [in] | ref | Reference (use ADC_SINGLECTRL_REF_x) |
Definition at line 182 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_set_single_resolution | ( | uint32_t | adc, |
| uint32_t | res | ||
| ) |
Set single resolution of conversion.
| [in] | adc | ADC (use ADCx) |
| [in] | res | Resolution (use ADC_SINGLECTRL_RES_*) |
Definition at line 205 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_set_single_result_overflow_flag | ( | uint32_t | adc | ) |
Set single result overflow flag.
| [in] | adc | ADC (use ADCx) |
Definition at line 526 of file adc_common.c.
References ADC_IFS, and ADC_IFS_SINGLEOF.
| void adc_set_single_right_aligned | ( | uint32_t | adc | ) |
Set single right aligned output.
| [in] | adc | ADC (use ADCx) |
Definition at line 224 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_set_single_single_ended | ( | uint32_t | adc | ) |
Set single single-ended conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 233 of file adc_common.c.
References ADC_SINGLECTRL.
| void adc_set_warm_up | ( | uint32_t | adc, |
| uint8_t | clocks | ||
| ) |
Set ADC warm up.
| [in] | adc | ADC (use ADCx) |
| [in] | clocks | Clock cycles (1 - 128) |
Definition at line 43 of file adc_common.c.
References ADC_CTRL, and ADC_CTRL_TIMEBASE.
| void adc_set_warm_up_mode | ( | uint32_t | adc, |
| uint32_t | warmupmode | ||
| ) |
Set warm up mode.
| [in] | adc | ADC (use ADCx) |
| [in] | warmupmode | Warm Up Mode (use ADC_CTRL_WARMUPMODE_*) |
Definition at line 93 of file adc_common.c.
References ADC_CTRL.
| uint32_t adc_single_data | ( | uint32_t | adc | ) |
Get result from last scan conversion.
| [in] | adc | ADC (use ADCx) |
Definition at line 599 of file adc_common.c.
References ADC_SINGLEDATA.
| uint32_t adc_single_data_peak | ( | uint32_t | adc | ) |
Get result from last single conversion (peak) Reading result using this function will not clear SINGLEDV in ADC_STATUS or SINGLE DMA request.
| [in] | adc | ADC (use ADCx) |
Definition at line 621 of file adc_common.c.
References ADC_SINGLEDATAP.
| void adc_single_start | ( | uint32_t | adc | ) |
Start ADC in single acquisition.
| [in] | adc | ADC (use ADCx) |
Definition at line 103 of file adc_common.c.
References ADC_CMD, and ADC_CMD_SINGLESTART.
| void adc_single_stop | ( | uint32_t | adc | ) |
Stop ADC in single acquisition.
| [in] | adc | ADC (use ADCx) |
Definition at line 112 of file adc_common.c.
References ADC_CMD, and ADC_CMD_SINGLESTOP.