NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

ADC_Public_Types

ADC_Public_Types
[ADC]

Enumerations

enum  ADC_CHANNEL_SELECTION {
  ADC_CHANNEL_0 = 0, ADC_CHANNEL_1, ADC_CHANNEL_2, ADC_CHANNEL_3,
  ADC_CHANNEL_4, ADC_CHANNEL_5, ADC_CHANNEL_6, ADC_CHANNEL_7
}
 

ADC enumeration.

More...
enum  ADC_START_OPT {
  ADC_START_CONTINUOUS = 0, ADC_START_NOW, ADC_START_ON_EINT0, ADC_START_ON_CAP01,
  ADC_START_ON_MAT01, ADC_START_ON_MAT03, ADC_START_ON_MAT10, ADC_START_ON_MAT11
}
 

Type of start option.

More...
enum  ADC_START_ON_EDGE_OPT { ADC_START_ON_RISING = 0, ADC_START_ON_FALLING }
 

Type of edge when start conversion on the selected CAP/MAT signal.

More...
enum  ADC_TYPE_INT_OPT {
  ADC_ADINTEN0 = 0, ADC_ADINTEN1, ADC_ADINTEN2, ADC_ADINTEN3,
  ADC_ADINTEN4, ADC_ADINTEN5, ADC_ADINTEN6, ADC_ADINTEN7,
  ADC_ADGINTEN
}
 

* ADC type interrupt enum

More...
enum  ADC_DATA_STATUS
 

ADC Data status.

More...

Enumeration Type Documentation

ADC enumeration.

Channel Selection

Enumerator:
ADC_CHANNEL_0 

Channel 0

ADC_CHANNEL_1 

Channel 1

ADC_CHANNEL_2 

Channel 2

ADC_CHANNEL_3 

Channel 3

ADC_CHANNEL_4 

Channel 4

ADC_CHANNEL_5 

Channel 5

ADC_CHANNEL_6 

Channel 6

ADC_CHANNEL_7 

Channel 7

Definition at line 158 of file lpc17xx_adc.h.

ADC Data status.

Definition at line 228 of file lpc17xx_adc.h.

Type of edge when start conversion on the selected CAP/MAT signal.

Enumerator:
ADC_START_ON_RISING 

Start conversion on a rising edge on the selected CAP/MAT signal

ADC_START_ON_FALLING 

Start conversion on a falling edge on the selected CAP/MAT signal

Definition at line 197 of file lpc17xx_adc.h.

Type of start option.

Type of start option

Enumerator:
ADC_START_CONTINUOUS 

Continuous mode

ADC_START_NOW 

Start conversion now

ADC_START_ON_EINT0 

Start conversion when the edge selected by bit 27 occurs on P2.10/EINT0

ADC_START_ON_CAP01 

Start conversion when the edge selected by bit 27 occurs on P1.27/CAP0.1

ADC_START_ON_MAT01 

Start conversion when the edge selected by bit 27 occurs on MAT0.1

ADC_START_ON_MAT03 

Start conversion when the edge selected by bit 27 occurs on MAT0.3

ADC_START_ON_MAT10 

Start conversion when the edge selected by bit 27 occurs on MAT1.0

ADC_START_ON_MAT11 

Start conversion when the edge selected by bit 27 occurs on MAT1.1

Definition at line 176 of file lpc17xx_adc.h.

* ADC type interrupt enum

Enumerator:
ADC_ADINTEN0 

Interrupt channel 0

ADC_ADINTEN1 

Interrupt channel 1

ADC_ADINTEN2 

Interrupt channel 2

ADC_ADINTEN3 

Interrupt channel 3

ADC_ADINTEN4 

Interrupt channel 4

ADC_ADINTEN5 

Interrupt channel 5

ADC_ADINTEN6 

Interrupt channel 6

ADC_ADINTEN7 

Interrupt channel 7

ADC_ADGINTEN 

Individual channel/global flag done generate an interrupt

Definition at line 206 of file lpc17xx_adc.h.