STM8L15x Standard Peripherals Drivers: COMP_Registers_Bits_Definition

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

COMP_Registers_Bits_Definition

Defines

#define COMP_CSR1_CMP1   ((uint8_t)0x03)
#define COMP_CSR1_CMP1OUT   ((uint8_t)0x08)
#define COMP_CSR1_EF1   ((uint8_t)0x10)
#define COMP_CSR1_IE1   ((uint8_t)0x20)
#define COMP_CSR1_STE   ((uint8_t)0x04)
#define COMP_CSR2_CMP2   ((uint8_t)0x03)
#define COMP_CSR2_CMP2OUT   ((uint8_t)0x08)
#define COMP_CSR2_EF2   ((uint8_t)0x10)
#define COMP_CSR2_IE2   ((uint8_t)0x20)
#define COMP_CSR2_SPEED   ((uint8_t)0x04)
#define COMP_CSR3_INSEL   ((uint8_t)0x38)
#define COMP_CSR3_OUTSEL   ((uint8_t)0xC0)
#define COMP_CSR3_VREFEN   ((uint8_t)0x04)
#define COMP_CSR3_VREFOUTEN   ((uint8_t)0x01)
#define COMP_CSR3_WNDWE   ((uint8_t)0x02)
#define COMP_CSR4_INVTRIG   ((uint8_t)0x07)
#define COMP_CSR4_NINVTRIG   ((uint8_t)0x38)
#define COMP_CSR5_DACTRIG   ((uint8_t)0x38)
#define COMP_CSR5_VREFTRIG   ((uint8_t)0x07)

Define Documentation

#define COMP_CSR1_CMP1   ((uint8_t)0x03)

Comparator 1 Configuration Mask.

Definition at line 873 of file stm8l15x.h.

Referenced by COMP_EdgeConfig().

#define COMP_CSR1_CMP1OUT   ((uint8_t)0x08)

Comparator 1 Ouptput Mask.

Definition at line 871 of file stm8l15x.h.

Referenced by COMP_GetOutputLevel().

#define COMP_CSR1_EF1   ((uint8_t)0x10)

Comparator 1 Event Flag Mask.

Definition at line 870 of file stm8l15x.h.

Referenced by COMP_ClearFlag(), COMP_ClearITPendingBit(), COMP_GetFlagStatus(), and COMP_GetITStatus().

#define COMP_CSR1_IE1   ((uint8_t)0x20)

Comparator 1 Interrupt Enable Mask.

Definition at line 869 of file stm8l15x.h.

Referenced by COMP_GetITStatus(), and COMP_ITConfig().

#define COMP_CSR1_STE   ((uint8_t)0x04)

Schmitt trigger enable Mask.

Definition at line 872 of file stm8l15x.h.

Referenced by COMP_SchmittTriggerCmd().

#define COMP_CSR2_CMP2   ((uint8_t)0x03)

Comparator 2 Configuration Mask.

Definition at line 880 of file stm8l15x.h.

Referenced by COMP_EdgeConfig().

#define COMP_CSR2_CMP2OUT   ((uint8_t)0x08)

Comparator 2 Ouptput Mask.

Definition at line 878 of file stm8l15x.h.

Referenced by COMP_GetOutputLevel().

#define COMP_CSR2_EF2   ((uint8_t)0x10)

Comparator 2 Event Flag Mask.

Definition at line 877 of file stm8l15x.h.

Referenced by COMP_ClearFlag(), COMP_ClearITPendingBit(), COMP_GetFlagStatus(), and COMP_GetITStatus().

#define COMP_CSR2_IE2   ((uint8_t)0x20)

Comparator 2 Interrupt Enable Mask.

Definition at line 876 of file stm8l15x.h.

Referenced by COMP_GetITStatus(), and COMP_ITConfig().

#define COMP_CSR2_SPEED   ((uint8_t)0x04)

Comparator 2 speed modeMask.

Definition at line 879 of file stm8l15x.h.

Referenced by COMP_Init().

#define COMP_CSR3_INSEL   ((uint8_t)0x38)

Inversion input selection Mask.

Definition at line 884 of file stm8l15x.h.

Referenced by COMP_Init().

#define COMP_CSR3_OUTSEL   ((uint8_t)0xC0)

Comparator 2 output selection Mask.

Definition at line 883 of file stm8l15x.h.

Referenced by COMP_Init().

#define COMP_CSR3_VREFEN   ((uint8_t)0x04)

Internal reference voltage Enable Mask.

Definition at line 885 of file stm8l15x.h.

Referenced by COMP_VrefintToCOMP1Connect().

#define COMP_CSR3_VREFOUTEN   ((uint8_t)0x01)

VREF Output Enable Mask.

Definition at line 887 of file stm8l15x.h.

Referenced by COMP_VrefintOutputCmd().

#define COMP_CSR3_WNDWE   ((uint8_t)0x02)

Window Mode Enable Mask.

Definition at line 886 of file stm8l15x.h.

Referenced by COMP_WindowCmd().

#define COMP_CSR4_INVTRIG   ((uint8_t)0x07)

COMP2 inverting input Mask.

Definition at line 891 of file stm8l15x.h.

#define COMP_CSR4_NINVTRIG   ((uint8_t)0x38)

COMP2 non-inverting input Mask.

Definition at line 890 of file stm8l15x.h.

#define COMP_CSR5_DACTRIG   ((uint8_t)0x38)

DAC outputs Mask.

Definition at line 894 of file stm8l15x.h.

#define COMP_CSR5_VREFTRIG   ((uint8_t)0x07)

VREF outputs Mask.

Definition at line 895 of file stm8l15x.h.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com