Data Structures | Macros | Typedefs | Variables
ADCCC32XX.h File Reference

Detailed Description

ADC driver implementation for the ADC peripheral on CC32XX.

============================================================================

This ADC driver implementation is designed to operate on a CC32XX ADC peripheral. The ADCCC32XX header file should be included in an application as follows:

#include <ti/drivers/ADC.h>
#include <ti/drivers/ADCCC32XX.h>

Refer to ADC.h for a complete description of APIs & example of use.


#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/ADC.h>

Go to the source code of this file.

Data Structures

struct  ADCCC32XX_HWAttrsV1
 ADCCC32XX Hardware attributes. More...
 
struct  ADCCC32XX_State
 ADCCC32XX_Status. More...
 
struct  ADCCC32XX_Object
 ADCCC32XX Object. More...
 

Macros

#define ADCCC32XX_PIN_57_CH_0   (ADC_CH_0 << 8) | 0x38
 
#define ADCCC32XX_PIN_58_CH_1   (ADC_CH_1 << 8) | 0x39
 
#define ADCCC32XX_PIN_59_CH_2   (ADC_CH_2 << 8) | 0x3a
 
#define ADCCC32XX_PIN_60_CH_3   (ADC_CH_3 << 8) | 0x3b
 

Typedefs

typedef struct ADCCC32XX_HWAttrsV1 ADCCC32XX_HWAttrsV1
 ADCCC32XX Hardware attributes. More...
 
typedef struct ADCCC32XX_State ADCCC32XX_State
 ADCCC32XX_Status. More...
 
typedef struct ADCCC32XX_Object ADCCC32XX_Object
 ADCCC32XX Object. More...
 

Variables

const ADC_FxnTable ADCCC32XX_fxnTable
 

Macro Definition Documentation

§ ADCCC32XX_PIN_57_CH_0

#define ADCCC32XX_PIN_57_CH_0   (ADC_CH_0 << 8) | 0x38

§ ADCCC32XX_PIN_58_CH_1

#define ADCCC32XX_PIN_58_CH_1   (ADC_CH_1 << 8) | 0x39

§ ADCCC32XX_PIN_59_CH_2

#define ADCCC32XX_PIN_59_CH_2   (ADC_CH_2 << 8) | 0x3a

§ ADCCC32XX_PIN_60_CH_3

#define ADCCC32XX_PIN_60_CH_3   (ADC_CH_3 << 8) | 0x3b

Typedef Documentation

§ ADCCC32XX_HWAttrsV1

ADCCC32XX Hardware attributes.

These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For CC32XXWare these definitions are found in:

  • ti/devices/cc32xx/driverlib/adc.h

A sample structure is shown below:

const ADCCC32XX_HWAttrsV1 adcCC32XXHWAttrs[Board_ADCCHANNELCOUNT] = {
{
.adcPin = ADCCC32XX_PIN_57
}
};

§ ADCCC32XX_State

ADCCC32XX_Status.

The application must not access any member variables of this structure!

§ ADCCC32XX_Object

ADCCC32XX Object.

The application must not access any member variables of this structure!

Variable Documentation

§ ADCCC32XX_fxnTable

const ADC_FxnTable ADCCC32XX_fxnTable
Copyright 2017, Texas Instruments Incorporated