Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
stm32h7_adc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 STMicrelectronics
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_
8
9
#include <
zephyr/dt-bindings/adc/stm32_adc.h
>
10
11
/* STM32 ADC resolution register for H7 and similar */
12
#define STM32_ADC_RES_REG 0x0C
13
#define STM32_ADC_RES_SHIFT 2
14
#define STM32_ADC_RES_MASK BIT_MASK(3)
15
16
/*
17
* For STM32H72x & H73x, ADC3 is different and has a 12 to 6-bit resolution.
18
* The offset and the width of the resolution field need to be redefined.
19
*/
20
#define STM32H72X_ADC3_RES_SHIFT 3
21
#define STM32H72X_ADC3_RES_MASK 0x03
22
23
#define STM32H72X_ADC3_RES(resolution, reg_val) \
24
STM32_ADC(resolution, reg_val, STM32H72X_ADC3_RES_MASK, \
25
STM32H72X_ADC3_RES_SHIFT, STM32_ADC_RES_REG)
23
#define STM32H72X_ADC3_RES(resolution, reg_val) \
…
26
27
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_STM32H7_ADC_H_ */
stm32_adc.h
zephyr
dt-bindings
adc
stm32h7_adc.h
Generated on Fri Mar 14 2025 12:05:19 for Zephyr API Documentation by
1.12.0