STM8S/A Standard Peripherals Drivers: ADC2_Private_Macros

STM8S/A

STM8S/A Standard Peripherals Drivers
ADC2_Private_Macros

Macros used by the assert function to check the different functions parameters. More...

Defines

#define IS_ADC2_ALIGN_OK(ALIGN)
 Macro used by the assert function to check the different alignment modes.
#define IS_ADC2_CHANNEL_OK(CHANNEL)
 Macro used by the assert function to check the different channels values.
#define IS_ADC2_CONVERSIONMODE_OK(MODE)
 Macro used by the assert function to check the different conversion modes.
#define IS_ADC2_EXTTRIG_OK(EXTRIG)
 Macro used by the assert function to check the different external trigger values.
#define IS_ADC2_PRESSEL_OK(PRESCALER)
 Macro used by the assert function to check the different prescaler's values.
#define IS_ADC2_SCHMITTTRIG_OK(SCHMITTTRIG)
 Macro used by the assert function to check the different schmitt trigger values.

Detailed Description

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


Define Documentation

#define IS_ADC2_ALIGN_OK (   ALIGN)
Value:
(((ALIGN) == ADC2_ALIGN_LEFT) || \
                                ((ALIGN) == ADC2_ALIGN_RIGHT))

Macro used by the assert function to check the different alignment modes.

Definition at line 165 of file stm8s_adc2.h.

Referenced by ADC2_ConversionConfig(), and ADC2_Init().

#define IS_ADC2_CHANNEL_OK (   CHANNEL)
Value:
(((CHANNEL) == ADC2_CHANNEL_0) || \
                                    ((CHANNEL) == ADC2_CHANNEL_1) || \
                                    ((CHANNEL) == ADC2_CHANNEL_2) || \
                                    ((CHANNEL) == ADC2_CHANNEL_3) || \
                                    ((CHANNEL) == ADC2_CHANNEL_4) || \
                                    ((CHANNEL) == ADC2_CHANNEL_5) || \
                                    ((CHANNEL) == ADC2_CHANNEL_6) || \
                                    ((CHANNEL) == ADC2_CHANNEL_7) || \
                                    ((CHANNEL) == ADC2_CHANNEL_8) || \
                                    ((CHANNEL) == ADC2_CHANNEL_9) || \
                                    ((CHANNEL) == ADC2_CHANNEL_10) || \
                                    ((CHANNEL) == ADC2_CHANNEL_11) || \
                                    ((CHANNEL) == ADC2_CHANNEL_12) || \
                                    ((CHANNEL) == ADC2_CHANNEL_13) || \
                                    ((CHANNEL) == ADC2_CHANNEL_14) || \
                                    ((CHANNEL) == ADC2_CHANNEL_15))

Macro used by the assert function to check the different channels values.

Definition at line 199 of file stm8s_adc2.h.

Referenced by ADC2_ConversionConfig(), and ADC2_Init().

#define IS_ADC2_CONVERSIONMODE_OK (   MODE)
Value:

Macro used by the assert function to check the different conversion modes.

Definition at line 193 of file stm8s_adc2.h.

Referenced by ADC2_ConversionConfig(), and ADC2_Init().

#define IS_ADC2_EXTTRIG_OK (   EXTRIG)
Value:
(((EXTRIG) == ADC2_EXTTRIG_TIM) || \
                                                                   ((EXTRIG) == ADC2_EXTTRIG_GPIO))

Macro used by the assert function to check the different external trigger values.

Definition at line 159 of file stm8s_adc2.h.

Referenced by ADC2_ExternalTriggerConfig(), and ADC2_Init().

#define IS_ADC2_PRESSEL_OK (   PRESCALER)
Value:
(((PRESCALER) == ADC2_PRESSEL_FCPU_D2) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D3) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D4) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D6) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D8) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D10) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D12) || \
                                      ((PRESCALER) == ADC2_PRESSEL_FCPU_D18))

Macro used by the assert function to check the different prescaler's values.

Definition at line 147 of file stm8s_adc2.h.

Referenced by ADC2_Init(), and ADC2_PrescalerConfig().

#define IS_ADC2_SCHMITTTRIG_OK (   SCHMITTTRIG)
Value:
(((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL0) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL1) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL2) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL3) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL4) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL5) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL6) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL7) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL8) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL9) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL10) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL11) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL12) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL13) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL14) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_CHANNEL15) || \
    ((SCHMITTTRIG) == ADC2_SCHMITTTRIG_ALL))

Macro used by the assert function to check the different schmitt trigger values.

Definition at line 172 of file stm8s_adc2.h.

Referenced by ADC2_Init(), and ADC2_SchmittTriggerConfig().

STM8 Standard Peripherals Library: Footer

 

 

 

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