Landtiger LPC1768 C BigLib
1
A self made, custom C library for the LandTiger board.
Loading...
Searching...
No Matches
adc_pm_types.h
Go to the documentation of this file.
1
#ifndef __ADC_PM_TYPES_H
2
#define __ADC_PM_TYPES_H
3
4
#include "
types.h
"
5
6
typedef
enum
7
{
9
ADC_PM_ERR_OK
= 0x0,
10
13
ADC_PM_RIT_UNINIT
,
14
}
ADC_PMError
;
15
17
typedef
void (*
ADC_PMInterruptHandler
)(
u16
prv_value
,
u16
new_value);
18
19
typedef
enum
20
{
21
ADC_PM_SAMPLE_WITH_RIT
= 0x1,
22
ADC_PM_SAMPLE_MANUALLY
= 0x2,
23
}
ADC_PMConfig
;
24
25
#endif
prv_value
_PRIVATE u16 prv_value
Used to store the previous value of the conversion.
Definition
adc_pm_irq.c:9
ADC_PMInterruptHandler
void(* ADC_PMInterruptHandler)(u16 prv_value, u16 new_value)
The type of the function that will be executed when a conversion is done.
Definition
adc_pm_types.h:17
ADC_PMError
ADC_PMError
Definition
adc_pm_types.h:7
ADC_PM_ERR_OK
@ ADC_PM_ERR_OK
No error occurred.
Definition
adc_pm_types.h:9
ADC_PM_RIT_UNINIT
@ ADC_PM_RIT_UNINIT
The ADC was initialized with the SAMPLE_WITH_RIT option, but the RIT peripheral was not initialized.
Definition
adc_pm_types.h:13
ADC_PMConfig
ADC_PMConfig
Definition
adc_pm_types.h:20
ADC_PM_SAMPLE_MANUALLY
@ ADC_PM_SAMPLE_MANUALLY
Definition
adc_pm_types.h:22
ADC_PM_SAMPLE_WITH_RIT
@ ADC_PM_SAMPLE_WITH_RIT
Definition
adc_pm_types.h:21
types.h
u16
uint16_t u16
Definition
types.h:7
Keil
Include
Peripherals
adc_pm_types.h
Generated by
1.9.8