Microchip® Advanced Software Framework

qs_opamp_basic.c File Reference

SAM OPAMP Driver Quick Start.

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

#include <asf.h>

Functions

void configure_non_inverting_pga_opamp0 (void)
 [setup] More...
 
int main (void)
 [setup] More...
 

void configure_non_inverting_pga_opamp0 ( void  )

[setup]

Creates a new configuration structure for the OPAMP0.

[setup_1]

[setup_1]

Initializes OPAMP module.

[setup_2]

[setup_2]

Settings and fill with the default settings.

[setup_3]

[setup_3]

[setup_4]

[setup_4]

[setup_5]

[setup_5]

Initialize and enable the OPAMP0 with the user settings.

[setup_6]

[setup_6] [setup_7]

[setup_7]

[setup_8]

[setup_8]

References opamp0_config::config_common, system_pinmux_config::direction, system_pinmux_config::mux_position, opamp0_config::negative_input, opamp0_get_config_defaults(), OPAMP0_NEG_MUX_TAP0, OPAMP0_POS_MUX_PIN0, OPAMP0_RES1_MUX_GND, opamp0_set_config(), OPAMP_0, opamp_enable(), opamp_is_ready(), opamp_module_init(), opamp0_config::positive_input, opamp0_config::r1_connection, opamp_config_common::r1_enable, opamp_config_common::r2_out, system_pinmux_get_config_defaults(), SYSTEM_PINMUX_PIN_DIR_INPUT, SYSTEM_PINMUX_PIN_DIR_OUTPUT, and system_pinmux_pin_set_config().

Referenced by main().

int main ( void  )

[setup]

[setup_init]

[setup_init]

[main]

[main]

References configure_non_inverting_pga_opamp0(), and system_init().