blob: 993c53f61b20720d57a0c3e729a1e9019fcea8c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-09-16 linshire add some operation function
* 2021-09-09 WCH the first version
*/
#ifndef DRV_ADC_H__
#define DRV_ADC_H__
typedef struct
{
ADC_TypeDef *Instance;
ADC_InitTypeDef Init;
}ADC_HandleTypeDef;
typedef struct
{
uint32_t Channel;
uint32_t Rank;
uint32_t SamplingTime;
uint32_t Offset;
}ADC_ChannelConfTypeDef;
#endif
|