
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
434 of 487
NXP Semiconductors
UM10800
Chapter 30: LPC82x ROM API ADC drivers
30.4.9 ADC service overrun error interrupt
30.4.10 ADC service threshold compare interrupt
30.4.11 Error codes
typedef enum
{
ERR_ADC_BASE = 0x000F0000,
/*0x000F0001*/ ERR_ADC_OVERRUN=ERR_A1,
/*0x000F0002*/ ERR_ADC_INVALID_CHANNEL,
/*0x000F0003*/ ERR_ADC_INVALID_SEQUENCE,
/*0x000F0004*/ ERR_ADC_INVALID_SETUP,
/*0x000F0005*/ ERR_ADC_PARAM,
/*0x000F0006*/ ERR_ADC_INVALID_LENGTH,
/*0x000F0007*/ ERR_ADC_NO_POWER
} ErrorCode_t;
Table 394. adc_ovr_isr
Routine
adc_ovr_isr
Prototype
void adc_ovr_isr (ADC_HANDLE_T* handle);
Input parameter
handle: The handle to the ADC instance.
Return
None.
Description
ADC interrupt service routine for overrun error interrupt. When using this
function, the corresponding ADC interrupt must be enabled. This function is
invoked by the user ISR.
Table 395. adc_thcmp_isr
Routine
adc_thcmp_isr
Prototype
void adc_thcmp_isr (ADC_HANDLE_T* handle);
Input parameter
handle: The handle to the ADC instance.
Return
None.
Description
ADC interrupt service routine for threshold compare interrupt. When using this
function, the corresponding ADC interrupt must be enabled. This function is
invoked by the user ISR.
Table 396. Error codes
Return code
Error Code
Description
0x000F 0001
ERR_ADC_OVERRUN
0x000F 0002
ERR_ADC_INVALID_CHANNEL
0x000F 0003
ERR_ADC_INVALID_SEQUENCE
0x000F 0004
ERR_ADC_INVALID_SETUP
0x000F 0005
ERR_ADC_PARAM
0x000F 0006
ERR_ADC_INVALID_LENGTH
0x000F 0007
ERR_ADC_NO_POWER