mirror of
https://github.com/ADElectronics/RTL00_WEB_VS.git
synced 2024-11-22 13:14:15 +00:00
24 lines
621 B
C
24 lines
621 B
C
|
/*
|
|||
|
* Simple ADC DRV (adc_drv.h)
|
|||
|
*
|
|||
|
* Created on: 19 июн. 2017 г.
|
|||
|
* Author: pvvx
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef _DRIVER_ADC_DRV_H_
|
|||
|
#define _DRIVER_ADC_DRV_H_
|
|||
|
|
|||
|
#include "rtl8195a.h"
|
|||
|
#include "rtl8195a_adc.h"
|
|||
|
|
|||
|
void ADCIrqInit(IRQ_FUN IrqFunc, uint32_t IrqData, uint32_t intr_enable); // intr_enable = bits: REG_ADC_INTR_EN - BIT_ADC_FIFO_RD_ERROR_EN | BIT_ADC_FIFO_RD_REQ_EN | BIT_ADC_FIFO_FULL_EN ...
|
|||
|
void ADCIrqDeInit(void);
|
|||
|
|
|||
|
void ADCInit(ADC_MODULE_SEL adc_idx); // RTL8711AM: adc_idx = ADC2_SEL = 2
|
|||
|
void ADCDeInit(void);
|
|||
|
void ADCEnable(void); // ADC Start
|
|||
|
void ADCDisable(void); // ADC Stop
|
|||
|
|
|||
|
|
|||
|
#endif /* _DRIVER_ADC_DRV_H_ */
|