STM32F413H-Discovery + 0/1 examples
CodeScope will show references to POS_VAL from the following samples and libraries:
Examples
STM32F413H-Discovery
Examples
 
Symbols
loading...
Files
loading...

POS_VAL macro

Syntax

#define POS_VAL(VAL) (POSITION_VAL(VAL) - 4)

Arguments

VAL

Examples

POS_VAL is referenced by 1 libraries and example projects.

References

LocationText
stm32f413h_discovery_audio.h:291
#define POS_VAL(VAL) (POSITION_VAL(VAL) - 4)
stm32f413h_discovery_audio.c:916
stm32f413h_discovery_audio.c:918
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC1);
stm32f413h_discovery_audio.c:920
stm32f413h_discovery_audio.c:922
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC2);
stm32f413h_discovery_audio.c:924
stm32f413h_discovery_audio.c:926
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC3);
stm32f413h_discovery_audio.c:928
stm32f413h_discovery_audio.c:930
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC4);
stm32f413h_discovery_audio.c:932
stm32f413h_discovery_audio.c:934
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC5);
stm32f413h_discovery_audio.c:1046
stm32f413h_discovery_audio.c:1052
stm32f413h_discovery_audio.c:1090
stm32f413h_discovery_audio.c:1093
stm32f413h_discovery_audio.c:1097
stm32f413h_discovery_audio.c:1098
mic_init[POS_VAL(INPUT_DEVICE_DIGITAL_MIC1)] = 1;
stm32f413h_discovery_audio.c:1100
stm32f413h_discovery_audio.c:1103
stm32f413h_discovery_audio.c:1107
stm32f413h_discovery_audio.c:1108
mic_init[POS_VAL(INPUT_DEVICE_DIGITAL_MIC2)] = 1;
stm32f413h_discovery_audio.c:1110
stm32f413h_discovery_audio.c:1113
stm32f413h_discovery_audio.c:1117
stm32f413h_discovery_audio.c:1118
mic_init[POS_VAL(INPUT_DEVICE_DIGITAL_MIC3)] = 1;
stm32f413h_discovery_audio.c:1120
stm32f413h_discovery_audio.c:1123
stm32f413h_discovery_audio.c:1127
stm32f413h_discovery_audio.c:1128
mic_init[POS_VAL(INPUT_DEVICE_DIGITAL_MIC4)] = 1;
stm32f413h_discovery_audio.c:1130
stm32f413h_discovery_audio.c:1133
stm32f413h_discovery_audio.c:1137
stm32f413h_discovery_audio.c:1138
mic_init[POS_VAL(INPUT_DEVICE_DIGITAL_MIC5)] = 1;
stm32f413h_discovery_audio.c:1373
stm32f413h_discovery_audio.c:1378
stm32f413h_discovery_audio.c:1400
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
stm32f413h_discovery_audio.c:1447
stm32f413h_discovery_audio.c:1452
stm32f413h_discovery_audio.c:1474
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
stm32f413h_discovery_audio.c:1609
stm32f413h_discovery_audio.c:1615
stm32f413h_discovery_audio.c:1638
stm32f413h_discovery_audio.c:1660
stm32f413h_discovery_audio.c:1666
stm32f413h_discovery_audio.c:1690
stm32f413h_discovery_audio.c:1919
stm32f413h_discovery_audio.c:1921
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC1);
stm32f413h_discovery_audio.c:1924
stm32f413h_discovery_audio.c:1926
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC2);
stm32f413h_discovery_audio.c:1929
stm32f413h_discovery_audio.c:1931
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC3);
stm32f413h_discovery_audio.c:1934
stm32f413h_discovery_audio.c:1936
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC4);
stm32f413h_discovery_audio.c:1939
stm32f413h_discovery_audio.c:1941
mic_num = POS_VAL(INPUT_DEVICE_DIGITAL_MIC5);