Microchip® Advanced Software Framework

sdadc.c File Reference

SAM Sigma-Delta Analog-to-Digital Converter (SDADC) Driver.

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

#include "sdadc.h"

Functions

static void _sdadc_configure_ain_pin (uint32_t pin)
 
static enum status_code _sdadc_set_config (struct sdadc_module *const module_inst, struct sdadc_config *const config)
 
enum status_code sdadc_init (struct sdadc_module *const module_inst, Sdadc *hw, struct sdadc_config *config)
 Initializes the SDADC. More...
 

static void _sdadc_configure_ain_pin ( uint32_t  pin)
inlinestatic

Configure MUX settings for the analog pins

This function will set the given SDADC input pins to the analog function in the pinmux, giving the SDADC access to the analog signal

Parameters
[in]pinAINxx pin to configure

References system_pinmux_config::input_pull, system_pinmux_config::mux_position, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_PULL_NONE, and system_pinmux_pin_set_config().

Referenced by _sdadc_set_config().