STM32L4R9I_EVAL BSP User Manual: Private Macros

STM32L4R9I_EVAL BSP

STM32L4R9I_EVAL 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 201 of file stm32l4r9i_eval_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 210 of file stm32l4r9i_eval_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 192 of file stm32l4r9i_eval_audio.c.

Referenced by AUDIO_DFSDMx_Init().

#define DFSDMRightBitShift (   __FREQUENCY__)
Value:
(__FREQUENCY__ == AUDIO_FREQUENCY_8K)  ? 5 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_11K) ? 5 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_16K) ? 2 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_22K) ? 2 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_32K) ? 5 \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_44K) ? 5  \
      : (__FREQUENCY__ == AUDIO_FREQUENCY_48K) ? 1 : 2  \

Definition at line 219 of file stm32l4r9i_eval_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 182 of file stm32l4r9i_eval_audio.c.

Referenced by AUDIO_SAIx_Init(), and BSP_AUDIO_OUT_SetFrequency().

#define SaturaLH (   N,
  L,
 
)    (((N)<(L))?(L):(((N)>(H))?(H):(N)))
Generated on Thu Oct 12 2017 10:54:00 for STM32L4R9I_EVAL BSP User Manual by   doxygen 1.7.6.1