Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
adc_pm.h
Go to the documentation of this file.
1#ifndef __ADC_PM_H
2#define __ADC_PM_H
3
4#include "adc_pm_types.h"
5#include "types.h"
6
7#include <stdbool.h>
8
16ADC_PMError ADC_PMInit(u8 options, u8 clock_divider, u8 int_priority);
17
18void ADC_PMDeinit(void);
19
20bool ADC_PMIsInitialized(void);
21
27void ADC_PMGetSample(void);
28
31
32// INTERRUPTS
33
37
39
40#endif
void ADC_PMGetSample(void)
Retrieves a single sample from the PM, and triggers the interrupt.
Definition adc_pm.c:55
bool ADC_PMIsInitialized(void)
Definition adc_pm.c:39
void ADC_PMUnsetSampleReadyAction(void)
Definition adc_pm_irq.c:18
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)....
Definition adc_pm.c:13
void ADC_PMSetSampleReadyAction(ADC_PMInterruptHandler action)
Sets the action to be executed when the conversion is done.
Definition adc_pm_irq.c:13
void ADC_PMDeinit(void)
Definition adc_pm.c:44
void(* ADC_PMInterruptHandler)(u16 prv_value, u16 new_value)
The type of the function that will be executed when a conversion is done.
ADC_PMError
Definition adc_pm_types.h:7
uint8_t u8
Definition types.h:8