STM32L4R9I-Discovery BSP User Manual: Private Macros

STM32L4R9I-Discovery BSP

STM32L4R9I-Discovery BSP User Manual

Defines

#define SAIClockDivider(__FREQUENCY__)
#define DFSDMOverSampling(__FREQUENCY__)
#define DFSDMClockDivider(__FREQUENCY__)
#define DFSDMFilterOrder(__FREQUENCY__)
#define DFSDMRightBitShift(__FREQUENCY__)
#define SaturaLH(N, L, H)   (((N)<(L))?(L):(((N)>(H))?(H):(N)))

Define Documentation

#define DFSDMClockDivider (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? 24 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? 4 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? 24 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? 4 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? 24 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? 4  \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? 32 : 32  \

Definition at line 210 of file stm32l4r9i_discovery_audio.c.

Referenced by AUDIO_DFSDMx_Init().

#define DFSDMFilterOrder (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? DFSDM_FILTER_SINC3_ORDER \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? DFSDM_FILTER_SINC3_ORDER \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? DFSDM_FILTER_SINC3_ORDER \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? DFSDM_FILTER_SINC3_ORDER \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? DFSDM_FILTER_SINC4_ORDER \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? DFSDM_FILTER_SINC4_ORDER  \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? DFSDM_FILTER_SINC4_ORDER : DFSDM_FILTER_SINC5_ORDER  \

Definition at line 219 of file stm32l4r9i_discovery_audio.c.

Referenced by AUDIO_DFSDMx_Init().

#define DFSDMOverSampling (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? 256 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? 256 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? 128 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? 128 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? 64 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? 64  \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? 32 : 16  \

Definition at line 201 of file stm32l4r9i_discovery_audio.c.

Referenced by AUDIO_DFSDMx_Init().

#define DFSDMRightBitShift (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? 7 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? 7 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? 4 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? 4 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? 7 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? 7  \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? 3 : 4  \

Definition at line 228 of file stm32l4r9i_discovery_audio.c.

Referenced by AUDIO_DFSDMx_Init().

#define SAIClockDivider (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? 24 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? 4 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? 12 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? 2 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? 6 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? 1 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? 4 : 2  \

Definition at line 191 of file stm32l4r9i_discovery_audio.c.

Referenced by AUDIO_SAIx_Init(), BSP_AUDIO_IN_SetFrequency(), and BSP_AUDIO_OUT_SetFrequency().

#define SaturaLH (   N,
  L,
 
)    (((N)<(L))?(L):(((N)>(H))?(H):(N)))
Generated on Fri Oct 13 2017 02:37:42 for STM32L4R9I-Discovery BSP User Manual by   doxygen 1.7.6.1