Go to the source code of this file.
Functions | |
| ADC_PMError | ADC_PMInit (u8 options, u8 clock_divider, u8 int_priority) |
| Initializes the 12bit ADC peripheral, which on this board is wired to the Potentiometer (PM). More specifically, the ADC peripheral is wired to the channel 5 of the ADC. Hence, the library does not handle other channels. | |
| void | ADC_PMDeinit (void) |
| bool | ADC_PMIsInitialized (void) |
| void | ADC_PMGetSample (void) |
| Retrieves a single sample from the PM, and triggers the interrupt. | |
| void | ADC_PMSetSampleReadyAction (ADC_PMInterruptHandler action) |
| Sets the action to be executed when the conversion is done. | |
| void | ADC_PMUnsetSampleReadyAction (void) |
| void ADC_PMDeinit | ( | void | ) |
Definition at line 44 of file adc_pm.c.
| void ADC_PMGetSample | ( | void | ) |
Retrieves a single sample from the PM, and triggers the interrupt.
Definition at line 55 of file adc_pm.c.
| ADC_PMError ADC_PMInit | ( | u8 | options, |
| u8 | clock_divider, | ||
| u8 | int_priority | ||
| ) |
Initializes the 12bit ADC peripheral, which on this board is wired to the Potentiometer (PM). More specifically, the ADC peripheral is wired to the channel 5 of the ADC. Hence, the library does not handle other channels.
| options | ADC PM options from the ADC_PMConfig enum |
| clock_divider | The clock divider to be used by the ADC (division is performed by clock_divider+1) |
| int_priority | The priority of the ADC interrupt. If the priority is set to INT_PRIO_DEF, the default priority will be used. |
Definition at line 13 of file adc_pm.c.
| bool ADC_PMIsInitialized | ( | void | ) |
| void ADC_PMSetSampleReadyAction | ( | ADC_PMInterruptHandler | action | ) |
Sets the action to be executed when the conversion is done.
| action | The action to be executed when the conversion is done. |
Definition at line 13 of file adc_pm_irq.c.
| void ADC_PMUnsetSampleReadyAction | ( | void | ) |
Definition at line 18 of file adc_pm_irq.c.