28 const u16 new_value = (LPC_ADC->ADGDR >> 4) & 0xFFF;
void ADC_IRQHandler(void)
_PRIVATE ADC_PMInterruptHandler done_action
Holds the handler that is executed when the conversion is done.
void ADC_PMUnsetSampleReadyAction(void)
_PRIVATE u16 prv_value
Used to store the previous value of the conversion.
void ADC_PMSetSampleReadyAction(ADC_PMInterruptHandler action)
Sets the action to be executed when the conversion is done.
void(* ADC_PMInterruptHandler)(u16 prv_value, u16 new_value)
The type of the function that will be executed when a conversion is done.