STM32F413H-Discovery
+ 0/1 examples
CodeScope will show references to
POS_VAL
from the following samples and libraries:
Examples
STM32F413H-Discovery
Examples
BSP
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
STM32F413H-Discovery
POS_VAL
POS_VAL macro
Syntax
from
stm32f413h_discovery_audio.h:291
#define
POS_VAL
(
VAL
)
(
POSITION_VAL
(
VAL
)
-
4
)
Arguments
VAL
Examples
POS_VAL
is referenced by
1 libraries and example projects
.
References
Location
Text
stm32f413h_discovery_audio.h:291
#define
POS_VAL
(
VAL
)
(
POSITION_VAL
(
VAL
)
-
4
)
stm32f413h_discovery_audio.c:916
if
(
(
(
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC1
)
==
INPUT_DEVICE_DIGITAL_MIC1
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:918
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
;
stm32f413h_discovery_audio.c:920
else
if
(
(
(
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC2
)
==
INPUT_DEVICE_DIGITAL_MIC2
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:922
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
;
stm32f413h_discovery_audio.c:924
else
if
(
(
(
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC3
)
==
INPUT_DEVICE_DIGITAL_MIC3
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:926
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
;
stm32f413h_discovery_audio.c:928
else
if
(
(
(
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC4
)
==
INPUT_DEVICE_DIGITAL_MIC4
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:930
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
;
stm32f413h_discovery_audio.c:932
else
if
(
(
(
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC5
)
==
INPUT_DEVICE_DIGITAL_MIC5
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:934
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
;
stm32f413h_discovery_audio.c:1046
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
,
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
,
ScratchSize
)
)
stm32f413h_discovery_audio.c:1052
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
,
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
,
ScratchSize
)
)
stm32f413h_discovery_audio.c:1090
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC1
)
==
INPUT_DEVICE_DIGITAL_MIC1
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1093
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
,
(
int32_t
*
)
pBuf
[
i
]
,
size
)
)
stm32f413h_discovery_audio.c:1097
MicBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
i
;
stm32f413h_discovery_audio.c:1098
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
1
;
stm32f413h_discovery_audio.c:1100
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC2
)
==
INPUT_DEVICE_DIGITAL_MIC2
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1103
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
,
(
int32_t
*
)
pBuf
[
i
]
,
size
)
)
stm32f413h_discovery_audio.c:1107
MicBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
i
;
stm32f413h_discovery_audio.c:1108
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
1
;
stm32f413h_discovery_audio.c:1110
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC3
)
==
INPUT_DEVICE_DIGITAL_MIC3
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1113
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
,
(
int32_t
*
)
pBuf
[
i
]
,
size
)
)
stm32f413h_discovery_audio.c:1117
MicBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
=
i
;
stm32f413h_discovery_audio.c:1118
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
=
1
;
stm32f413h_discovery_audio.c:1120
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC4
)
==
INPUT_DEVICE_DIGITAL_MIC4
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1123
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
,
(
int32_t
*
)
pBuf
[
i
]
,
size
)
)
stm32f413h_discovery_audio.c:1127
MicBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
=
i
;
stm32f413h_discovery_audio.c:1128
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
=
1
;
stm32f413h_discovery_audio.c:1130
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC5
)
==
INPUT_DEVICE_DIGITAL_MIC5
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1133
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
,
(
int32_t
*
)
pBuf
[
i
]
,
size
)
)
stm32f413h_discovery_audio.c:1137
MicBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
=
i
;
stm32f413h_discovery_audio.c:1138
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
=
1
;
stm32f413h_discovery_audio.c:1373
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
1
;
stm32f413h_discovery_audio.c:1378
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
1
;
stm32f413h_discovery_audio.c:1400
if
(
(
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
==
1
)
&&
(
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
==
1
)
)
stm32f413h_discovery_audio.c:1407
hAudioIn
.
pRecBuf
[
AppBuffTrigger
]
=
(
uint16_t
)
(
SaturaLH
(
(
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
[
index
]
>
>
8
)
,
-
32760
,
32760
)
)
;
stm32f413h_discovery_audio.c:1408
hAudioIn
.
pRecBuf
[
AppBuffTrigger
+
1
]
=
(
uint16_t
)
(
SaturaLH
(
(
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
[
index
]
>
>
8
)
,
-
32760
,
32760
)
)
;
stm32f413h_discovery_audio.c:1411
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
DmaRecBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
0
;
stm32f413h_discovery_audio.c:1447
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
1
;
stm32f413h_discovery_audio.c:1452
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
1
;
stm32f413h_discovery_audio.c:1474
if
(
(
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
==
1
)
&&
(
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
==
1
)
)
stm32f413h_discovery_audio.c:1481
hAudioIn
.
pRecBuf
[
AppBuffTrigger
]
=
(
int16_t
)
(
SaturaLH
(
(
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
[
index
]
>
>
8
)
,
-
32760
,
32760
)
)
;
stm32f413h_discovery_audio.c:1482
hAudioIn
.
pRecBuf
[
AppBuffTrigger
+
1
]
=
(
int16_t
)
(
SaturaLH
(
(
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
[
index
]
>
>
8
)
,
-
32760
,
32760
)
)
;
stm32f413h_discovery_audio.c:1485
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
=
DmaRecHalfBuffCplt
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
=
0
;
stm32f413h_discovery_audio.c:1609
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStop_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
)
)
stm32f413h_discovery_audio.c:1615
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStop_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
)
)
stm32f413h_discovery_audio.c:1638
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStop_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
InputDevice
)
]
)
)
stm32f413h_discovery_audio.c:1660
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
,
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
,
ScratchSize
)
)
stm32f413h_discovery_audio.c:1666
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
,
pScratchBuff
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
,
ScratchSize
)
)
stm32f413h_discovery_audio.c:1690
if
(
HAL_OK
!=
HAL_DFSDM_FilterRegularStart_DMA
(
&
hAudioInDfsdmFilter
[
POS_VAL
(
InputDevice
)
]
,
(
int32_t
*
)
pBuf
[
MicBuff
[
POS_VAL
(
InputDevice
)
]
]
,
hAudioIn
.
RecSize
)
)
stm32f413h_discovery_audio.c:1919
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC1
)
==
INPUT_DEVICE_DIGITAL_MIC1
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1921
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC1
)
;
stm32f413h_discovery_audio.c:1924
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC2
)
==
INPUT_DEVICE_DIGITAL_MIC2
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1926
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC2
)
;
stm32f413h_discovery_audio.c:1929
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC3
)
==
INPUT_DEVICE_DIGITAL_MIC3
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1931
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC3
)
;
stm32f413h_discovery_audio.c:1934
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC4
)
==
INPUT_DEVICE_DIGITAL_MIC4
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1936
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC4
)
;
stm32f413h_discovery_audio.c:1939
else
if
(
(
(
hAudioIn
.
InputDevice
&
INPUT_DEVICE_DIGITAL_MIC5
)
==
INPUT_DEVICE_DIGITAL_MIC5
)
&&
(
mic_init
[
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
]
!=
1
)
)
stm32f413h_discovery_audio.c:1941
mic_num
=
POS_VAL
(
INPUT_DEVICE_DIGITAL_MIC5
)
;