|
SAM4SD32 (SAM4S-EK2)
|
Analog-to-Digital Converter (ADC/ADC12B) driver for SAM. More...
Go to the source code of this file.
Macros | |
| #define | ADC_WPMR_WPKEY_PASSWD ADC_WPMR_WPKEY(0x414443u) |
Functions | |
| void | adc_check (Adc *p_adc, const uint32_t ul_mck) |
| Check ADC configurations. | |
| void | adc_configure_power_save (Adc *p_adc, const uint8_t uc_sleep, const uint8_t uc_fwup) |
| Configures ADC power saving mode. | |
| void | adc_configure_sequence (Adc *p_adc, const enum adc_channel_num_t ch_list[], uint8_t uc_num) |
| Configure conversion sequence. | |
| void | adc_configure_timing (Adc *p_adc, const uint8_t uc_tracking, const enum adc_settling_time_t settling, const uint8_t uc_transfer) |
| Configure ADC timing. | |
| void | adc_configure_trigger (Adc *p_adc, const enum adc_trigger_t trigger, uint8_t uc_freerun) |
| Configure conversion trigger and free run mode. | |
| void | adc_disable_all_channel (Adc *p_adc) |
| Disable all ADC channel. | |
| void | adc_disable_anch (Adc *p_adc) |
| Disable analog change. | |
| void | adc_disable_channel (Adc *p_adc, const enum adc_channel_num_t adc_ch) |
| Disable the specified ADC channel. | |
| void | adc_disable_channel_differential_input (Adc *p_adc, const enum adc_channel_num_t channel) |
| Disable differential input for the specified channel. | |
| void | adc_disable_channel_input_offset (Adc *p_adc, const enum adc_channel_num_t channel) |
| Disable analog signal offset for the specified channel. | |
| void | adc_disable_interrupt (Adc *p_adc, const uint32_t ul_source) |
| Disable ADC interrupts. | |
| void | adc_disable_tag (Adc *p_adc) |
| Disable TAG option. | |
| void | adc_disable_ts (Adc *p_adc) |
| Turn off temperature sensor. | |
| void | adc_enable_all_channel (Adc *p_adc) |
| Enable all ADC channels. | |
| void | adc_enable_anch (Adc *p_adc) |
| Enable analog change. | |
| void | adc_enable_channel (Adc *p_adc, const enum adc_channel_num_t adc_ch) |
| Enable the specified ADC channel. | |
| void | adc_enable_channel_differential_input (Adc *p_adc, const enum adc_channel_num_t channel) |
| Enable differential input for the specified channel. | |
| void | adc_enable_channel_input_offset (Adc *p_adc, const enum adc_channel_num_t channel) |
| Enable analog signal offset for the specified channel. | |
| void | adc_enable_interrupt (Adc *p_adc, const uint32_t ul_source) |
| Enable ADC interrupts. | |
| void | adc_enable_tag (Adc *p_adc) |
| Enable TAG option so that the number of the last converted channel can be indicated. | |
| void | adc_enable_ts (Adc *p_adc) |
| Turn on temperature sensor. | |
| uint32_t | adc_get_actual_adc_clock (const Adc *p_adc, const uint32_t ul_mck) |
| Return the actual ADC clock. | |
| uint32_t | adc_get_channel_status (const Adc *p_adc, const enum adc_channel_num_t adc_ch) |
| Read the ADC channel status. | |
| uint32_t | adc_get_channel_value (const Adc *p_adc, const enum adc_channel_num_t adc_ch) |
| Read the ADC result data of the specified channel. | |
| uint32_t | adc_get_comparison_mode (const Adc *p_adc) |
| Get comparison mode. | |
| uint32_t | adc_get_interrupt_mask (const Adc *p_adc) |
| Read ADC interrupt mask. | |
| uint32_t | adc_get_latest_value (const Adc *p_adc) |
| Read the last ADC result data. | |
| uint32_t | adc_get_overrun_status (const Adc *p_adc) |
| Get ADC interrupt and overrun error status. | |
| Pdc * | adc_get_pdc_base (const Adc *p_adc) |
| Get PDC registers base address. | |
| uint32_t | adc_get_status (const Adc *p_adc) |
| Get ADC interrupt and overrun error status. | |
| enum adc_channel_num_t | adc_get_tag (const Adc *p_adc) |
| Indicate the last converted channel. | |
| uint32_t | adc_get_writeprotect_status (const Adc *p_adc) |
| Indicate write protect status. | |
| uint32_t | adc_init (Adc *p_adc, const uint32_t ul_mck, const uint32_t ul_adc_clock, const enum adc_startup_time startup) |
| Initialize the given ADC with the specified ADC clock and startup time. | |
| void | adc_reset (Adc *p_adc) |
| Reset ADC. | |
| void | adc_set_bias_current (Adc *p_adc, const uint8_t uc_ibctl) |
| Adapt performance versus power consumption. | |
| void | adc_set_calibmode (Adc *p_adc) |
| Set ADC auto calibration mode. | |
| void | adc_set_channel_input_gain (Adc *p_adc, const enum adc_channel_num_t channel, const enum adc_gainvalue_t gain) |
| Configure input gain for the specified channel. | |
| void | adc_set_comparison_channel (Adc *p_adc, const enum adc_channel_num_t channel) |
| Configure comparison selected channel. | |
| void | adc_set_comparison_mode (Adc *p_adc, const uint8_t uc_mode) |
| Configure comparison mode. | |
| void | adc_set_comparison_window (Adc *p_adc, const uint16_t us_low_threshold, const uint16_t us_high_threshold) |
| Configure ADC compare window. | |
| void | adc_set_resolution (Adc *p_adc, const enum adc_resolution_t resolution) |
| Configure the conversion resolution. | |
| void | adc_set_writeprotect (Adc *p_adc, const uint32_t ul_enable) |
| Enable or disable write protection of ADC registers. | |
| void | adc_start (Adc *p_adc) |
| Start analog-to-digital conversion. | |
| void | adc_start_sequencer (Adc *p_adc) |
| Enable conversion sequencer. | |
| void | adc_stop_sequencer (Adc *p_adc) |
| Disable conversion sequencer. | |
| static uint32_t | calcul_startup (const uint32_t ul_startup) |
| calcul_startup | |
Analog-to-Digital Converter (ADC/ADC12B) driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
\cond ASF_LICENSE
Definition in file adc.c.