STM8S/A Standard Peripherals Drivers: BEEP_Private_Macros

STM8S/A

STM8S/A Standard Peripherals Drivers
BEEP_Private_Macros

Defines

#define IS_BEEP_FREQUENCY_OK(FREQ)
 Macro used by the assert function to check the different functions parameters.
#define IS_LSI_FREQUENCY_OK(FREQ)
 Macro used by the assert function to check the LSI frequency (in Hz).

Define Documentation

#define IS_BEEP_FREQUENCY_OK (   FREQ)
Value:
(((FREQ) == BEEP_FREQUENCY_1KHZ) || \
   ((FREQ) == BEEP_FREQUENCY_2KHZ) || \
   ((FREQ) == BEEP_FREQUENCY_4KHZ))

Macro used by the assert function to check the different functions parameters.

Macro used by the assert function to check the BEEP frequencies.

Definition at line 84 of file stm8s_beep.h.

Referenced by BEEP_Init().

#define IS_LSI_FREQUENCY_OK (   FREQ)
Value:
(((FREQ) >= LSI_FREQUENCY_MIN) && \
   ((FREQ) <= LSI_FREQUENCY_MAX))

Macro used by the assert function to check the LSI frequency (in Hz).

Definition at line 92 of file stm8s_beep.h.

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com