Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches

This is the generated driver source file for ADC1 driver. More...

#include <stddef.h>
#include "../adc1.h"
+ Include dependency graph for adc1.c:

Go to the source code of this file.

Functions

void ADC1_Initialize (void)
 Initializes ADC1 module, using the given initialization data This function must be called before any other ADC1 function is called.
 
void ADC1_Deinitialize (void)
 Deinitializes the ADC1 to POR values.
 
void ADC1_CorePowerEnable (enum ADC_DEDICATED_CORE core)
 Enables analog and digital power for ADC1 dedicated core.
 
void ADC1_SharedCorePowerEnable (void)
 Enables power for ADC1 shared Core This function is used to set the analog and digital power for ADC1 shared Core.
 
void ADC1_CommonCallbackRegister (void(*callback)(void))
 This function can be used to override default callback and to define custom callback for ADC1 Common event.
 
void ADC1_CommonCallback (void)
 This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using ADC1_CommonCallbackRegister.
 
void _ADCInterrupt (void)
 
void ADC1_Tasks (void)
 This function is used to implement the tasks for polled implementations.
 
void ADC1_ChannelCallbackRegister (void(*callback)(enum ADC_CHANNEL channel, uint16_t adcVal))
 This function can be used to override default callback ADC1_ChannelCallback and to define custom callback for ADC1 Channel event. Read the conversion result of the corresponding channel in the custom callback.
 
void ADC1_ChannelCallback (enum ADC_CHANNEL channel, uint16_t adcVal)
 This is the default callback function for all the analog channels. This callback is triggered once the channel conversion is done for a channel and to read the conversion result of the corresponding channel.
 
void _ADCAN10Interrupt (void)
 
void _ADCAN15Interrupt (void)
 
void _ADCAN0Interrupt (void)
 
void _ADCAN1Interrupt (void)
 
void ADC1_ChannelTasks (enum ADC_CHANNEL channel)
 This function call used only in polling mode, if channel conversion is done for requested channel, the calls the respective callback function.
 
void ADC1_ComparatorCallbackRegister (void(*callback)(enum ADC_CMP comparator))
 This function can be used to override default callback and to define custom callback for ADC1_Comparator event.
 
void ADC1_ComparatorCallback (enum ADC_CMP comparator)
 Comparator callback function.
 

Variables

static void(* ADC1_CommonHandler )(void) = NULL
 
static void(* ADC1_ChannelHandler )(enum ADC_CHANNEL channel, uint16_t adcVal) = NULL
 
static void(* ADC1_ComparatorHandler )(enum ADC_CMP comparator) = NULL
 
const struct ADC_MULTICORE adc1Multicore
 
const struct ADC_INTERFACE ADC1
 Structure object of type ADC_INTERFACE with the custom name given by the user in the Melody Driver User interface. The default name e.g. ADC1 can be changed by the user in the ADC user interface. This allows defining a structure with application specific name using the 'Custom Name' field. Application specific name allows the API Portability.
 

Detailed Description

ADC1 Generated Driver Source File

Definition in file adc1.c.

Function Documentation

◆ _ADCAN0Interrupt()

void _ADCAN0Interrupt ( void )

Definition at line 559 of file adc1.c.

◆ _ADCAN10Interrupt()

void _ADCAN10Interrupt ( void )

Definition at line 528 of file adc1.c.

◆ _ADCAN15Interrupt()

void _ADCAN15Interrupt ( void )

Definition at line 543 of file adc1.c.

◆ _ADCAN1Interrupt()

void _ADCAN1Interrupt ( void )

Definition at line 574 of file adc1.c.

◆ _ADCInterrupt()

void _ADCInterrupt ( void )

Definition at line 446 of file adc1.c.

Variable Documentation

◆ ADC1_ChannelHandler

void(* ADC1_ChannelHandler) (enum ADC_CHANNEL channel, uint16_t adcVal) ( enum ADC_CHANNEL channel,
uint16_t adcVal ) = NULL
static

Definition at line 45 of file adc1.c.

◆ ADC1_CommonHandler

void(* ADC1_CommonHandler) (void) ( void ) = NULL
static

Definition at line 44 of file adc1.c.

◆ ADC1_ComparatorHandler

void(* ADC1_ComparatorHandler) (enum ADC_CMP comparator) ( enum ADC_CMP comparator) = NULL
static

Definition at line 46 of file adc1.c.

◆ adc1Multicore

const struct ADC_MULTICORE adc1Multicore
Initial value:
= {
.ChannelTasks = &ADC1_ChannelTasks,
.ComparatorTasks = NULL,
.IndividualChannelInterruptEnable = &ADC1_IndividualChannelInterruptEnable,
.IndividualChannelInterruptDisable = &ADC1_IndividualChannelInterruptDisable,
.IndividualChannelInterruptFlagClear = &ADC1_IndividualChannelInterruptFlagClear,
.IndividualChannelInterruptPrioritySet = &ADC1_IndividualChannelInterruptPrioritySet,
.ChannelCallbackRegister = &ADC1_ChannelCallbackRegister,
.ComparatorCallbackRegister = &ADC1_ComparatorCallbackRegister,
.CorePowerEnable = &ADC1_CorePowerEnable,
.SharedCorePowerEnable = &ADC1_SharedCorePowerEnable,
.PWMTriggerSourceSet = NULL
}
static void ADC1_IndividualChannelInterruptPrioritySet(enum ADC_CHANNEL channel, enum INTERRUPT_PRIORITY priorityValue)
This inline function allows selection of priority for individual channel interrupt.
Definition adc1.h:426
static void ADC1_IndividualChannelInterruptDisable(enum ADC_CHANNEL channel)
This inline function disables individual channel interrupt.
Definition adc1.h:367
void ADC1_SharedCorePowerEnable(void)
Enables power for ADC1 shared Core This function is used to set the analog and digital power for ADC1...
Definition adc1.c:423
static void ADC1_IndividualChannelInterruptEnable(enum ADC_CHANNEL channel)
This inline function enables individual channel interrupt.
Definition adc1.h:336
void ADC1_ComparatorCallbackRegister(void(*callback)(enum ADC_CMP comparator))
This function can be used to override default callback and to define custom callback for ADC1_Compara...
Definition adc1.c:649
static void ADC1_IndividualChannelInterruptFlagClear(enum ADC_CHANNEL channel)
This inline function clears individual channel interrupt flag.
Definition adc1.h:398
void ADC1_ChannelTasks(enum ADC_CHANNEL channel)
This function call used only in polling mode, if channel conversion is done for requested channel,...
Definition adc1.c:590
void ADC1_CorePowerEnable(enum ADC_DEDICATED_CORE core)
Enables analog and digital power for ADC1 dedicated core.
Definition adc1.c:399
void ADC1_ChannelCallbackRegister(void(*callback)(enum ADC_CHANNEL channel, uint16_t adcVal))
This function can be used to override default callback ADC1_ChannelCallback and to define custom call...
Definition adc1.c:513

Definition at line 51 of file adc1.c.