3.2.2 ADC with Computation

8-bit, 10-bit, and 12-bit Analog-to-Digital Converters with Computation features

3.2.2.1 Introduction

The Analog-to-Digital Converter (ADC) module can be a 8-bit, 10-bit or 12-bit ADC depending on the device used. This ADC can have computation features such as Successive Approximation Registers (SAR), Burst Accumulation and/or Programmable Gain Amplifiers. It can be operated in single-ended or differential conversion mode. The ADC input channels are also configurable to use internal peripheral outputs or external analog input pins.

3.2.2.2 Supported Device Families

AVR® DxATtinyATmega16xxATmega48xx
AVR®EAATmega80xATmega88xx

3.2.2.3 Required header files:

#include "mcc_generated_files/adc/adc[X].h"
Note: Replace [X] with the selected instance of the ADC module.

3.2.2.4 Module Documentation

3.2.2.4.1 Analog-to-Digital Converter (ADC0)

This file contains the API prototypes and data types for the ADC0 driver.

Module description

This file contains the API prototypes and data types for the ADC0 driver.

Version: ADC0 Driver Version 2.0.0 ADC0 Package Version 5.0.0
Functions

Function Documentation

ADC0_AccumulatedResultGet()

adc_accumulate_t ADC0_AccumulatedResultGet (void )

Retrieves the value of the accumulated conversions.

Parameters:
None.
Returns:

adc_accumulate_t - The value of accumulated conversions

ADC0_AutoTriggerDisable()

void ADC0_AutoTriggerDisable (void )

Sets the Start Event Input (STARTEI) bit to 0.

Parameters:
None.
Returns:

None.

ADC0_AutoTriggerEnable()

void ADC0_AutoTriggerEnable (void )

Sets the Start Event Input (STARTEI) bit to 1.

Parameters:
None.
Returns:

None.

ADC0_ChannelSelect()

void ADC0_ChannelSelect (adc_channel_t channel)

Sets the channel to use for the ADC conversion.

Parameters:
channel

Desired analog channel. Refer to the adc_channel_t enum for the list of available analog channels.

Returns:

None.

ADC0_ChannelSelectAndConvert()

adc_result_t ADC0_ChannelSelectAndConvert (adc_channel_t channel)

Starts the conversion and retrieves the result of one conversion on the selected channel.

Parameters:
channel

Desired analog channel. Refer to the adc_channel_t enum for the list of available analog channels.

Returns:

adc_result_t - The result of the conversion

ADC0_ComputationModeSet()

void ADC0_ComputationModeSet (adc_computation_mode_t computationMode)

Sets the Computation mode.

Parameters:
computationMode

Desired computation mode. Refer to the adc_computation_mode_t enum for the list of available computation modes.

Returns:

None.

ADC0_ContinuousConversionDisable()

void ADC0_ContinuousConversionDisable (void )

Sets the Free-Running (FREERUN) bit to 0.

Parameters:
None.
Returns:

None.

ADC0_ContinuousConversionEnable()

void ADC0_ContinuousConversionEnable (void )

Sets the Free-Running (FREERUN) bit to 1.

Parameters:
None.
Returns:

None.

ADC0_ConversionDoneCallbackRegister()

void ADC0_ConversionDoneCallbackRegister (void(*)(void) callback)

Sets the callback function for the Result Ready Interrupt (RESRDY).

Parameters:
*callback

The pointer to the function to be executed

Returns:

None.

ADC0_ConversionDoneInterruptDisable()

void ADC0_ConversionDoneInterruptDisable (void )

Sets the Result Ready Interrupt Enable (RESRDY) bit to 0.

Parameters:
None.
Returns:

None.

ADC0_ConversionDoneInterruptEnable()

void ADC0_ConversionDoneInterruptEnable (void )

Sets the Result Ready Interrupt Enable (RESRDY) bit to 1.

Parameters:
None.
Returns:

None.

ADC0_ConversionDoneInterruptFlagClear()

void ADC0_ConversionDoneInterruptFlagClear (void )

Clears the Result Ready Interrupt (RESRDY) flag.

Parameters:
None.
Returns:

None.

ADC0_ConversionResultGet()

adc_result_t ADC0_ConversionResultGet (void )

Retrieves the result of the latest conversion.

Parameters:
None.
Returns:

adc_result_t - The result of the conversion

ADC0_ConversionStart()

void ADC0_ConversionStart (void )

Starts the ADC conversion on the selected channels.

Starts the ADC conversion on a selected channel.

Precondition:

Select the channel using ADC0_DifferentialChannelSelect and call ADC0_Initialize(void) to initialize the ADC module before using this API.

Returns:

None.

Precondition:

Select the channel using ADC0_ChannelSelect and call ADC0_Initialize(void) to initialize the ADC module before using this API.

Returns:

None.

ADC0_ConversionStop()

void ADC0_ConversionStop (void )

Stops the ongoing ADC conversion.

Parameters:
None.
Returns:

None.

ADC0_Deinitialize()

void ADC0_Deinitialize (void )

Deinitializes the registers to Power-on Reset values.

Parameters:
None.
Returns:

None.

ADC0_DifferentialChannelSelect()

void ADC0_DifferentialChannelSelect (adc_posChannel_t posChannel, adc_negChannel_t negChannel)

Sets the positive and negative channels to use for the ADC conversion.

Parameters:
posChannel

Desired positive analog channel. Refer to the adc_posChannel_t enum for the list of available analog channels.

negChannel

Desired negative analog channel. Refer to the adc_negChannel_t enum for the list of available analog channels.

Returns:

None.

ADC0_DifferentialChannelSelectAndConvert()

adc_result_t ADC0_DifferentialChannelSelectAndConvert (adc_posChannel_t posChannel, adc_negChannel_t negChannel)

Starts the conversion and retrieves the result of one conversion on the selected channels.

Parameters:
posChannel

Desired positive analog channel. Refer to the adc_posChannel_t enum for the list of available analog channels.

negChannel

Desired negative analog channel. Refer to the adc_negChannel_t enum for the list of available analog channels.

Returns:

adc_result_t - The result of the conversion

ADC0_Disable()

void ADC0_Disable (void )

Sets the ADC Enable bit to 0.

Parameters:
None.
Returns:

None.

ADC0_Enable()

void ADC0_Enable (void )

Sets the ADC Enable bit to 1.

Parameters:
None.
Returns:

None.

ADC0_Initialize()

void ADC0_Initialize (void )

Initializes the registers based on the configurable options in the MPLAB® Code Configurator (MCC) Melody UI for the Analog-to-Digital Converter (ADC) operation.

Parameters:
None.
Returns:

None.

ADC0_IsConversionDone()

bool ADC0_IsConversionDone (void )

Checks if the ongoing ADC conversion is complete.

Parameters:
None.
Return values:
True

- The conversion is complete

False

- The conversion is ongoing

ADC0_IsConversionDoneInterruptFlagSet()

bool ADC0_IsConversionDoneInterruptFlagSet (void )

Checks the Result Ready Interrupt (RESRDY) flag status.

Parameters:
None.
Return values:
True

- RESRDY flag is set

False

- RESRDY flag is not set

ADC0_IsThresholdInterruptFlagSet()

bool ADC0_IsThresholdInterruptFlagSet (void )

Checks the Window Comparator Interrupt (WCMP) flag status.

Parameters:
None.
Return values:
True

- WCMP flag is set

False

- WCMP flag is not set

ADC0_LowerThresholdSet()

void ADC0_LowerThresholdSet (adc_threshold_t upperThreshold)

Sets the value of the Window Comparator Low Threshold (WINLT) register.

Parameters:
lowerThreshold

Lower threshold value of the adc_threshold_t type

Returns:

None.

ADC0_ResolutionGet()

uint8_t ADC0_ResolutionGet (void )

Returns the resolution of the ADC module.

Parameters:
None.
Returns:

uint8_t - Resolution value

ADC0_SampleRepeatCountSet()

void ADC0_SampleRepeatCountSet (adc_repeat_count_t repeatCount)

Loads the Sample Length with the specified value.

Parameters:
repeatCount

Repeat count value. Refer to the adc_repeat_count_t enum for the list of available repeat count values.

Returns:

None.

ADC0_Tasks()

void ADC0_Tasks (void )

Implements the Tasks routine for the polling implementation.

Parameters:
None.
Returns:

None.

Note:

Ensure this function is invoked inside the service loop to maintain proper execution flow.

ADC0_ThresholdCallbackRegister()

void ADC0_ThresholdCallbackRegister (void(*)(void) callback)

Sets the callback function for the Window Comparator Interrupt (WCMP).

Parameters:
*callback

The pointer to the function to be executed

Returns:

None.

ADC0_ThresholdInterruptDisable()

void ADC0_ThresholdInterruptDisable (void )

Sets the Window Comparator Interrupt Enable (WCMP) bit to 0.

Parameters:
None.
Returns:

None.

ADC0_ThresholdInterruptEnable()

void ADC0_ThresholdInterruptEnable (void )

Sets the Window Comparator Interrupt Enable (WCMP) bit to 1.

Parameters:
None.
Returns:

None.

ADC0_ThresholdInterruptFlagClear()

void ADC0_ThresholdInterruptFlagClear (void )

Clears the Window Comparator Interrupt (WCMP) flag.

Parameters:
None.
Returns:

None.

ADC0_ThresholdModeSet()

void ADC0_ThresholdModeSet (adc_threshold_mode_t thresholdMode)

Sets the Window Comparator mode.

Parameters:
thresholdMode

Desired threshold mode. Refer to the adc_threshold_mode_t enum for the list of available threshold modes.

Returns:

None.

ADC0_UpperThresholdSet()

void ADC0_UpperThresholdSet (adc_threshold_t upperThreshold)

Sets the value of the Window Comparator High Threshold (WINHT) register.

Parameters:
upperThreshold

Upper threshold value of the adc_threshold_t type

Returns:

None.

3.2.2.4.2 ADC

This header file provides type definitions for the ADC module.

Module description

This header file provides type definitions for the ADC module.

Version: ADC Driver Version 2.0.0 ADC Package Version 5.0.0
Enumerations

Typedef Documentation

adc_accumulate_t

adc_accumulate_t

ADC conversion accumulator type.

adc_result_t

adc_result_t

ADC conversion result type.

adc_threshold_t

adc_threshold_t

ADC conversion threshold type.

Enumeration Type Documentation

adc_channel_t

enum adc_channel_t

Enumeration defining all available analog channels for ADC conversion.

ADC0_CHANNEL_AIN0

PD0

ADC0_CHANNEL_AIN1

PD1

ADC0_CHANNEL_AIN2

PD2

ADC0_CHANNEL_AIN3

PD3

ADC0_CHANNEL_AIN4

PD4

ADC0_CHANNEL_AIN5

PD5

ADC0_CHANNEL_AIN6

PD6

ADC0_CHANNEL_AIN7

PD7

ADC0_CHANNEL_AIN8

PE0

ADC0_CHANNEL_AIN9

PE1

ADC0_CHANNEL_AIN10

PE2

ADC0_CHANNEL_AIN11

PE3

ADC0_CHANNEL_AIN16

PF0

ADC0_CHANNEL_AIN17

PF1

ADC0_CHANNEL_AIN18

PF2

ADC0_CHANNEL_AIN19

PF3

ADC0_CHANNEL_AIN20

PF4

ADC0_CHANNEL_AIN21

PF5

ADC0_CHANNEL_GND

Ground

ADC0_CHANNEL_TEMPSENSE

Temperature sensor

ADC0_CHANNEL_VDDDIV10

VDD/10

ADC0_CHANNEL_VDDIO2DIV10

VDDIO2/10

ADC0_CHANNEL_DAC0

DAC0

ADC0_CHANNEL_DACREF0

AC0 DAC Voltage Reference

ADC0_CHANNEL_DACREF1

AC1 DAC Voltage Reference

ADC0_CHANNEL_DACREF2

AC2 DAC Voltage Reference

adc_computation_mode_t

enum adc_computation_mode_t

Enumeration for the ADC computation modes.

ADC_BASIC

No accumulation

ADC_SERIES_ACCUMULATE

Accumulate each sample

adc_negChannel_t

enum adc_negChannel_t

ADC0_NEGCHANNEL_AIN0

PD0

ADC0_NEGCHANNEL_AIN1

PD1

ADC0_NEGCHANNEL_AIN2

PD2

ADC0_NEGCHANNEL_AIN3

PD3

ADC0_NEGCHANNEL_AIN4

PD4

ADC0_NEGCHANNEL_AIN5

PD5

ADC0_NEGCHANNEL_AIN6

PD6

ADC0_NEGCHANNEL_AIN7

PD7

ADC0_NEGCHANNEL_AIN8

PE0

ADC0_NEGCHANNEL_AIN9

PE1

ADC0_NEGCHANNEL_AIN10

PE2

ADC0_NEGCHANNEL_AIN11

PE3

ADC0_NEGCHANNEL_GND

Ground

ADC0_NEGCHANNEL_DAC0

DAC0

adc_posChannel_t

enum adc_posChannel_t

ADC0_POSCHANNEL_AIN0

PD0

ADC0_POSCHANNEL_AIN1

PD1

ADC0_POSCHANNEL_AIN2

PD2

ADC0_POSCHANNEL_AIN3

PD3

ADC0_POSCHANNEL_AIN4

PD4

ADC0_POSCHANNEL_AIN5

PD5

ADC0_POSCHANNEL_AIN6

PD6

ADC0_POSCHANNEL_AIN7

PD7

ADC0_POSCHANNEL_AIN8

PE0

ADC0_POSCHANNEL_AIN9

PE1

ADC0_POSCHANNEL_AIN10

PE2

ADC0_POSCHANNEL_AIN11

PE3

ADC0_POSCHANNEL_AIN16

PF0

ADC0_POSCHANNEL_AIN17

PF1

ADC0_POSCHANNEL_AIN18

PF2

ADC0_POSCHANNEL_AIN19

PF3

ADC0_POSCHANNEL_AIN20

PF4

ADC0_POSCHANNEL_AIN21

PF5

ADC0_POSCHANNEL_GND

Ground

ADC0_POSCHANNEL_TEMPSENSE

Temperature sensor

ADC0_POSCHANNEL_VDDDIV10

VDD/10

ADC0_POSCHANNEL_VDDIO2DIV10

VDDIO2/10

ADC0_POSCHANNEL_DAC0

DAC0

ADC0_POSCHANNEL_DACREF0

AC0 DAC Voltage Reference

ADC0_POSCHANNEL_DACREF1

AC1 DAC Voltage Reference

ADC0_POSCHANNEL_DACREF2

AC2 DAC Voltage Reference

adc_repeat_count_t

enum adc_repeat_count_t

Enumeration for the ADC sample length values.

ADC_NO_ACCUMULATION

No accumulation

ADC_2_SAMPLES_ACCUMULATED

2 results accumulated

ADC_4_SAMPLES_ACCUMULATED

4 results accumulated

ADC_8_SAMPLES_ACCUMULATED

8 results accumulated

ADC_16_SAMPLES_ACCUMULATED

16 results accumulated

ADC_32_SAMPLES_ACCUMULATED

32 results accumulated

ADC_64_SAMPLES_ACCUMULATED

64 results accumulated

ADC_128_SAMPLES_ACCUMULATED

128 results accumulated

adc_threshold_mode_t

enum adc_threshold_mode_t

Enumeration for the ADC window comparator modes.

ADC_NEVER_INTERRUPT

No Window Comparison

ADC_BELOW_LOWER_THRESHOLD

Below Window

ADC_ABOVE_UPPER_THRESHOLD

Above Window

ADC_INSIDE_LOWER_AND_UPPER_THRESHOLD

Inside Window

ADC_OUTSIDE_LOWER_AND_UPPER_THRESHOLD

Outside Window

3.2.2.5 File Documentation

3.2.2.5.1 source/Differential_Interrupts/adc0.h File Reference

#include "../system/utils/compiler.h"
#include "./adc_types.h"

Functions

Detailed Description

ADC0 Generated Driver API Header File

3.2.2.5.2 source/Differential_Tasks/adc0.h File Reference

#include "../system/utils/compiler.h"
#include "./adc_types.h"

Functions

Detailed Description

ADC0 Generated Driver API Header File

3.2.2.5.3 source/Single-Ended_Interrupts/adc0.h File Reference

#include "../system/utils/compiler.h"
#include "./adc_types.h"

Functions

Detailed Description

ADC0 Generated Driver API Header File

3.2.2.5.4 source/Single-Ended_Tasks/adc0.h File Reference

#include "../system/utils/compiler.h"
#include "./adc_types.h"

Functions

Detailed Description

ADC0 Generated Driver API Header File

3.2.2.5.5 source/Differential_Interrupts/adc_types.h File Reference

#include <stdint.h>

Enumerations

Detailed Description

ADC Type Definitions Header File

3.2.2.5.6 source/Differential_Tasks/adc_types.h File Reference

#include <stdint.h>

Enumerations

Detailed Description

ADC Type Definitions Header File

Typedef Documentation

adc_accumulate_t

typedef int32_t adc_accumulate_t

adc_result_t

typedef int16_t adc_result_t

adc_threshold_t

typedef int16_t adc_threshold_t

Enumeration Type Documentation

adc_computation_mode_t

enum adc_computation_mode_t

ADC_BASIC

No accumulation

ADC_SERIES_ACCUMULATE

Accumulate each sample

adc_negChannel_t

enum adc_negChannel_t

ADC0_NEGCHANNEL_AIN0

PD0

ADC0_NEGCHANNEL_AIN1

PD1

ADC0_NEGCHANNEL_AIN2

PD2

ADC0_NEGCHANNEL_AIN3

PD3

ADC0_NEGCHANNEL_AIN4

PD4

ADC0_NEGCHANNEL_AIN5

PD5

ADC0_NEGCHANNEL_AIN6

PD6

ADC0_NEGCHANNEL_AIN7

PD7

ADC0_NEGCHANNEL_AIN8

PE0

ADC0_NEGCHANNEL_AIN9

PE1

ADC0_NEGCHANNEL_AIN10

PE2

ADC0_NEGCHANNEL_AIN11

PE3

ADC0_NEGCHANNEL_GND

Ground

ADC0_NEGCHANNEL_DAC0

DAC0

adc_posChannel_t

enum adc_posChannel_t

ADC0_POSCHANNEL_AIN0

PD0

ADC0_POSCHANNEL_AIN1

PD1

ADC0_POSCHANNEL_AIN2

PD2

ADC0_POSCHANNEL_AIN3

PD3

ADC0_POSCHANNEL_AIN4

PD4

ADC0_POSCHANNEL_AIN5

PD5

ADC0_POSCHANNEL_AIN6

PD6

ADC0_POSCHANNEL_AIN7

PD7

ADC0_POSCHANNEL_AIN8

PE0

ADC0_POSCHANNEL_AIN9

PE1

ADC0_POSCHANNEL_AIN10

PE2

ADC0_POSCHANNEL_AIN11

PE3

ADC0_POSCHANNEL_AIN16

PF0

ADC0_POSCHANNEL_AIN17

PF1

ADC0_POSCHANNEL_AIN18

PF2

ADC0_POSCHANNEL_AIN19

PF3

ADC0_POSCHANNEL_AIN20

PF4

ADC0_POSCHANNEL_AIN21

PF5

ADC0_POSCHANNEL_GND

Ground

ADC0_POSCHANNEL_TEMPSENSE

Temperature sensor

ADC0_POSCHANNEL_VDDDIV10

VDD/10

ADC0_POSCHANNEL_VDDIO2DIV10

VDDIO2/10

ADC0_POSCHANNEL_DAC0

DAC0

ADC0_POSCHANNEL_DACREF0

AC0 DAC Voltage Reference

ADC0_POSCHANNEL_DACREF1

AC1 DAC Voltage Reference

ADC0_POSCHANNEL_DACREF2

AC2 DAC Voltage Reference

adc_repeat_count_t

enum adc_repeat_count_t

ADC_NO_ACCUMULATION

No accumulation

ADC_2_SAMPLES_ACCUMULATED

2 results accumulated

ADC_4_SAMPLES_ACCUMULATED

4 results accumulated

ADC_8_SAMPLES_ACCUMULATED

8 results accumulated

ADC_16_SAMPLES_ACCUMULATED

16 results accumulated

ADC_32_SAMPLES_ACCUMULATED

32 results accumulated

ADC_64_SAMPLES_ACCUMULATED

64 results accumulated

ADC_128_SAMPLES_ACCUMULATED

128 results accumulated

adc_threshold_mode_t

enum adc_threshold_mode_t

ADC_NEVER_INTERRUPT

No Window Comparison

ADC_BELOW_LOWER_THRESHOLD

Below Window

ADC_ABOVE_UPPER_THRESHOLD

Above Window

ADC_INSIDE_LOWER_AND_UPPER_THRESHOLD

Inside Window

ADC_OUTSIDE_LOWER_AND_UPPER_THRESHOLD

Outside Window

3.2.2.5.7 source/Single-Ended_Interrupts/adc_types.h File Reference

#include <stdint.h>

Enumerations

Detailed Description

ADC Type Definitions Header File

Typedef Documentation

adc_accumulate_t

typedef int32_t adc_accumulate_t

adc_result_t

typedef int16_t adc_result_t

adc_threshold_t

typedef int16_t adc_threshold_t

Enumeration Type Documentation

adc_computation_mode_t

enum adc_computation_mode_t

ADC_BASIC

No accumulation

ADC_SERIES_ACCUMULATE

Accumulate each sample

adc_repeat_count_t

enum adc_repeat_count_t

ADC_NO_ACCUMULATION

No accumulation

ADC_2_SAMPLES_ACCUMULATED

2 results accumulated

ADC_4_SAMPLES_ACCUMULATED

4 results accumulated

ADC_8_SAMPLES_ACCUMULATED

8 results accumulated

ADC_16_SAMPLES_ACCUMULATED

16 results accumulated

ADC_32_SAMPLES_ACCUMULATED

32 results accumulated

ADC_64_SAMPLES_ACCUMULATED

64 results accumulated

ADC_128_SAMPLES_ACCUMULATED

128 results accumulated

adc_threshold_mode_t

enum adc_threshold_mode_t

ADC_NEVER_INTERRUPT

No Window Comparison

ADC_BELOW_LOWER_THRESHOLD

Below Window

ADC_ABOVE_UPPER_THRESHOLD

Above Window

ADC_INSIDE_LOWER_AND_UPPER_THRESHOLD

Inside Window

ADC_OUTSIDE_LOWER_AND_UPPER_THRESHOLD

Outside Window

3.2.2.5.8 source/Single-Ended_Tasks/adc_types.h File Reference

#include <stdint.h>

Enumerations

Detailed Description

ADC Type Definitions Header File

Typedef Documentation

adc_accumulate_t

typedef int32_t adc_accumulate_t

adc_result_t

typedef int16_t adc_result_t

adc_threshold_t

typedef int16_t adc_threshold_t

Enumeration Type Documentation

adc_channel_t

enum adc_channel_t

ADC0_CHANNEL_AIN0

PD0

ADC0_CHANNEL_AIN1

PD1

ADC0_CHANNEL_AIN2

PD2

ADC0_CHANNEL_AIN3

PD3

ADC0_CHANNEL_AIN4

PD4

ADC0_CHANNEL_AIN5

PD5

ADC0_CHANNEL_AIN6

PD6

ADC0_CHANNEL_AIN7

PD7

ADC0_CHANNEL_AIN8

PE0

ADC0_CHANNEL_AIN9

PE1

ADC0_CHANNEL_AIN10

PE2

ADC0_CHANNEL_AIN11

PE3

ADC0_CHANNEL_AIN16

PF0

ADC0_CHANNEL_AIN17

PF1

ADC0_CHANNEL_AIN18

PF2

ADC0_CHANNEL_AIN19

PF3

ADC0_CHANNEL_AIN20

PF4

ADC0_CHANNEL_AIN21

PF5

ADC0_CHANNEL_GND

Ground

ADC0_CHANNEL_TEMPSENSE

Temperature sensor

ADC0_CHANNEL_VDDDIV10

VDD/10

ADC0_CHANNEL_VDDIO2DIV10

VDDIO2/10

ADC0_CHANNEL_DAC0

DAC0

ADC0_CHANNEL_DACREF0

AC0 DAC Voltage Reference

ADC0_CHANNEL_DACREF1

AC1 DAC Voltage Reference

ADC0_CHANNEL_DACREF2

AC2 DAC Voltage Reference

adc_computation_mode_t

enum adc_computation_mode_t

ADC_BASIC

No accumulation

ADC_SERIES_ACCUMULATE

Accumulate each sample

adc_repeat_count_t

enum adc_repeat_count_t

ADC_NO_ACCUMULATION

No accumulation

ADC_2_SAMPLES_ACCUMULATED

2 results accumulated

ADC_4_SAMPLES_ACCUMULATED

4 results accumulated

ADC_8_SAMPLES_ACCUMULATED

8 results accumulated

ADC_16_SAMPLES_ACCUMULATED

16 results accumulated

ADC_32_SAMPLES_ACCUMULATED

32 results accumulated

ADC_64_SAMPLES_ACCUMULATED

64 results accumulated

ADC_128_SAMPLES_ACCUMULATED

128 results accumulated

adc_threshold_mode_t

enum adc_threshold_mode_t

ADC_NEVER_INTERRUPT

No Window Comparison

ADC_BELOW_LOWER_THRESHOLD

Below Window

ADC_ABOVE_UPPER_THRESHOLD

Above Window

ADC_INSIDE_LOWER_AND_UPPER_THRESHOLD

Inside Window

ADC_OUTSIDE_LOWER_AND_UPPER_THRESHOLD

Outside Window

3.2.2.5.9 source/Differential_Interrupts/src/adc0.c File Reference

This file contains the API implementations for the ADC0 driver.

#include "../adc0.h"

Functions

Detailed Description

This file contains the API implementations for the ADC0 driver.

ADC0 Generated Driver File

Version: ADC0 Driver Version 2.0.0 ADC0 Package Version 5.0.0

Function Documentation

ISR()[1/2]

ISR (ADC0_RESRDY_vect )

ISR()[2/2]

ISR (ADC0_WCMP_vect )

Variable Documentation

ADC0_ConversionDoneCallback

void(* ADC0_ConversionDoneCallback) (void)[static]

ADC0_ThresholdCallback

void(* ADC0_ThresholdCallback) (void)[static]

3.2.2.5.10 source/Differential_Tasks/src/adc0.c File Reference

This file contains the API implementations for the ADC0 driver.

#include "../adc0.h"

Functions

Detailed Description

This file contains the API implementations for the ADC0 driver.

ADC0 Generated Driver File

Version: ADC0 Driver Version 2.0.0 ADC0 Package Version 5.0.0

Variable Documentation

ADC0_ConversionDoneCallback

void(* ADC0_ConversionDoneCallback) (void)[static]

ADC0_ThresholdCallback

void(* ADC0_ThresholdCallback) (void)[static]

3.2.2.5.11 source/Single-Ended_Interrupts/src/adc0.c File Reference

This file contains the API implementations for the ADC0 driver.

#include "../adc0.h"

Functions

Detailed Description

This file contains the API implementations for the ADC0 driver.

ADC0 Generated Driver File

Version: ADC0 Driver Version 2.0.0 ADC0 Package Version 5.0.0

Function Documentation

ISR()[1/2]

ISR (ADC0_RESRDY_vect )

ISR()[2/2]

ISR (ADC0_WCMP_vect )

Variable Documentation

ADC0_ConversionDoneCallback

void(* ADC0_ConversionDoneCallback) (void)[static]

ADC0_ThresholdCallback

void(* ADC0_ThresholdCallback) (void)[static]

3.2.2.5.12 source/Single-Ended_Tasks/src/adc0.c File Reference

This file contains the API implementations for the ADC0 driver.

#include "../adc0.h"

Functions

Detailed Description

This file contains the API implementations for the ADC0 driver.

ADC0 Generated Driver File

Version: ADC0 Driver Version 2.0.0 ADC0 Package Version 5.0.0

Variable Documentation

ADC0_ConversionDoneCallback

void(* ADC0_ConversionDoneCallback) (void)[static]

ADC0_ThresholdCallback

void(* ADC0_ThresholdCallback) (void)[static]