STM8S/A Standard Peripherals Drivers
|
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 | ) |
(((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 | ) |
(((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 | ) |
(((MODE) == ADC2_CONVERSIONMODE_SINGLE) || \ ((MODE) == ADC2_CONVERSIONMODE_CONTINUOUS))
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 | ) |
(((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 | ) |
(((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 | ) |
(((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().