Microchip® Advanced Software Framework

qs_adc_dma_use.c File Reference

SAM D21/D11/L21/DA1/C21/HA1G16A ADC with DMA quick start.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>

Functions

void configure_adc (void)
 [setup] [configure_adc] More...
 
void configure_dac (void)
 [configure_adc] More...
 
void configure_dac_channel (void)
 [configure_dac] More...
 
void configure_dma_resource (struct dma_resource *resource)
 [configure_dac_channel] More...
 
int main (void)
 [setup_dma_transfer_descriptor] [setup] More...
 
void setup_transfer_descriptor (DmacDescriptor *descriptor)
 [config_dma_resource] More...
 

Variables

struct adc_module adc_instance
 [dac_module_inst] More...
 
struct dac_module dac_instance
 [dac_module_inst] More...
 
struct dma_resource example_resource
 [adc_module_inst] More...
 
DmacDescriptor example_descriptor SECTION_DMAC_DESCRIPTOR
 [dma_resource] More...
 

void configure_adc ( void  )

[setup] [configure_adc]

[job_complete_callback]

[module_inst]

[setup]

[setup_adc_config]

[setup_adc_config]

[setup_adc_config_defaults]

[setup_adc_config_defaults]

[setup_adc_config_extra]

[setup_adc_config_extra]

[setup_adc_set_config]

[setup_adc_set_config]

[setup_adc_enable]

[setup_adc_enable]

Referenced by adc_calibration(), adc_oversampling(), and main().

void configure_dac ( void  )

[configure_adc]

[configure_dac]

[setup_dac_config]

[setup_dac_config]

[setup_dac_config_defaults]

[setup_dac_config_defaults]

[setup_dac_config_extra]

[setup_dac_config_extra]

[setup_dac_set_config]

[setup_dac_set_config]

void configure_dac_channel ( void  )

[configure_dac]

[configure_dac_channel]

[setup_dac_ch_config]

[setup_dac_ch_config]

[setup_dac_ch_config_defaults]

[setup_dac_ch_config_defaults]

[setup_dac_ch_set_config]

[setup_dac_ch_set_config]

[setup_dac_ch_enable]

[setup_dac_ch_enable]

void configure_dma_resource ( struct dma_resource resource)

[configure_dac_channel]

[config_dma_resource]

[setup_dma_config]

[setup_dma_config]

[setup_dma_set_config_default]

[setup_dma_set_config_default]

[setup_dma_set_config_extra]

[setup_dma_set_config_extra]

[allocate_dma_resource]

[allocate_dma_resource]

int main ( void  )

[setup_dma_transfer_descriptor] [setup]

[setup_init] [setup_adc]

[setup_adc]

[setup_dac]

[setup_dac]

[setup_dac_channel]

[setup_dac_channel]

[setup_dac_enable]

[setup_dac_enable]

[setup_dma_resource]

[setup_dma_resource]

[setup_transfer_descriptor]

[setup_transfer_descriptor]

[add_descriptor_to_resource]

[add_descriptor_to_resource] [setup_init]

[main] [start_adc_conversion]

[start_adc_conversion]

[start_transfer]

[start_transfer]

[endless_loop]

[endless_loop] [main]

References adc_instance, adc_start_conversion(), configure_adc(), configure_dac(), configure_dac_channel(), configure_dma_resource(), dac_enable(), dac_instance, dma_add_descriptor(), dma_start_transfer_job(), example_resource, setup_transfer_descriptor(), and system_init().

void setup_transfer_descriptor ( DmacDescriptor *  descriptor)

[config_dma_resource]

[setup_dma_transfer_descriptor]

[setup_dma_desc_config]

[setup_dma_desc_config]

[setup_dma_desc_config_set_default]

[setup_dma_desc_config_set_default]

[setup_dma_desc_config_set_extra]

[setup_dma_desc_config_set_extra]

[setup_dma_desc_config_create]

[setup_dma_desc_config_create]

References adc_instance, dma_descriptor_config::beat_size, dma_descriptor_config::block_transfer_count, DAC_CHANNEL_0, dac_instance, dma_descriptor_config::destination_address, DMA_BEAT_SIZE_HWORD, dma_descriptor_create(), dma_descriptor_get_config_defaults(), dma_descriptor_config::dst_increment_enable, dma_descriptor_config::next_descriptor_address, dma_descriptor_config::source_address, and dma_descriptor_config::src_increment_enable.

Referenced by main().

struct adc_module adc_instance

[dac_module_inst]

Support and FAQ: visit Microchip Support

[adc_module_inst]

struct dac_module dac_instance

[dac_module_inst]

struct dma_resource example_resource

[adc_module_inst]

[dma_resource]

DmacDescriptor example_descriptor SECTION_DMAC_DESCRIPTOR