Data Structures | Defines | Functions | Variables

adc.c File Reference

This file provides all the functionalities provided by ADC driver module of Freescale MPC563 power-pc MCU. More...

#include "adc_Cfg.h"
#include "adc.h"
Include dependency graph for adc.c:

Go to the source code of this file.

Data Structures

struct  QADC_CCW_Data
 This structure defines the data for each CCW and the Application call-back function for that conversion. More...
struct  QADC_Drv
 This structure holds all global data of teh ADC module. More...

Defines

#define MOD_A_ADDR   0x500
 Module A address.
#define MOD_B_ADDR   0x1000
 Module B address.

Functions

int main ()

Variables

static QADC_Drv self [ADC_TOT_MOD]
 This global static variable holds ADC driver related data for each ADC converter module.
struct QADC64_tag *const ModRegAddr [ADC_TOT_MOD]
 This variable holds the address for register array of all the ADC converters.

Detailed Description

This file provides all the functionalities provided by ADC driver module of Freescale MPC563 power-pc MCU.

Version:
1.0A - Initial Draft
Date:
25 June 2010
Version:
1.1A - Design changed to support run-time CCW addition and configuration
Date:
16 July 2010

Definition in file adc.c.


Define Documentation

#define MOD_A_ADDR   0x500

Module A address.

Definition at line 51 of file adc.c.

#define MOD_B_ADDR   0x1000

Module B address.

Definition at line 53 of file adc.c.


Function Documentation

int main (  ) 

Definition at line 61 of file adc.c.


Variable Documentation

struct QADC64_tag* const ModRegAddr[ADC_TOT_MOD]
Initial value:
 
                                    {MOD_A_ADDR, MOD_B_ADDR}

This variable holds the address for register array of all the ADC converters.

Definition at line 58 of file adc.c.

self [static]

This global static variable holds ADC driver related data for each ADC converter module.

Definition at line 48 of file adc.c.