I2C_Private_Defines
[I2C]

Defines

#define CCR_CCR_Set   ((uint16_t)0x0FFF)
#define CCR_FS_Set   ((uint16_t)0x8000)
#define CR1_ACK_Reset   ((uint16_t)0xFBFF)
#define CR1_ACK_Set   ((uint16_t)0x0400)
#define CR1_CLEAR_Mask   ((uint16_t)0xFBF5)
#define CR1_ENARP_Reset   ((uint16_t)0xFFEF)
#define CR1_ENARP_Set   ((uint16_t)0x0010)
#define CR1_ENGC_Reset   ((uint16_t)0xFFBF)
#define CR1_ENGC_Set   ((uint16_t)0x0040)
#define CR1_ENPEC_Reset   ((uint16_t)0xFFDF)
#define CR1_ENPEC_Set   ((uint16_t)0x0020)
#define CR1_NOSTRETCH_Reset   ((uint16_t)0xFF7F)
#define CR1_NOSTRETCH_Set   ((uint16_t)0x0080)
#define CR1_PE_Reset   ((uint16_t)0xFFFE)
#define CR1_PE_Set   ((uint16_t)0x0001)
#define CR1_PEC_Reset   ((uint16_t)0xEFFF)
#define CR1_PEC_Set   ((uint16_t)0x1000)
#define CR1_START_Reset   ((uint16_t)0xFEFF)
#define CR1_START_Set   ((uint16_t)0x0100)
#define CR1_STOP_Reset   ((uint16_t)0xFDFF)
#define CR1_STOP_Set   ((uint16_t)0x0200)
#define CR1_SWRST_Reset   ((uint16_t)0x7FFF)
#define CR1_SWRST_Set   ((uint16_t)0x8000)
#define CR2_DMAEN_Reset   ((uint16_t)0xF7FF)
#define CR2_DMAEN_Set   ((uint16_t)0x0800)
#define CR2_FREQ_Reset   ((uint16_t)0xFFC0)
#define CR2_LAST_Reset   ((uint16_t)0xEFFF)
#define CR2_LAST_Set   ((uint16_t)0x1000)
#define FLAG_Mask   ((uint32_t)0x00FFFFFF)
#define ITEN_Mask   ((uint32_t)0x07000000)
#define OAR1_ADD0_Reset   ((uint16_t)0xFFFE)
#define OAR1_ADD0_Set   ((uint16_t)0x0001)
#define OAR2_ADD2_Reset   ((uint16_t)0xFF01)
#define OAR2_ENDUAL_Reset   ((uint16_t)0xFFFE)
#define OAR2_ENDUAL_Set   ((uint16_t)0x0001)

Define Documentation

#define CCR_CCR_Set   ((uint16_t)0x0FFF)

Definition at line 116 of file stm32f10x_i2c.c.

Referenced by I2C_Init().

#define CCR_FS_Set   ((uint16_t)0x8000)

Definition at line 113 of file stm32f10x_i2c.c.

Referenced by I2C_Init().

#define CR1_ACK_Reset   ((uint16_t)0xFBFF)

Definition at line 61 of file stm32f10x_i2c.c.

Referenced by I2C_AcknowledgeConfig().

#define CR1_ACK_Set   ((uint16_t)0x0400)

Definition at line 60 of file stm32f10x_i2c.c.

Referenced by I2C_AcknowledgeConfig().

#define CR1_CLEAR_Mask   ((uint16_t)0xFBF5)

Definition at line 88 of file stm32f10x_i2c.c.

#define CR1_ENARP_Reset   ((uint16_t)0xFFEF)

Definition at line 81 of file stm32f10x_i2c.c.

Referenced by I2C_ARPCmd().

#define CR1_ENARP_Set   ((uint16_t)0x0010)

Definition at line 80 of file stm32f10x_i2c.c.

Referenced by I2C_ARPCmd().

#define CR1_ENGC_Reset   ((uint16_t)0xFFBF)

Definition at line 65 of file stm32f10x_i2c.c.

Referenced by I2C_GeneralCallCmd().

#define CR1_ENGC_Set   ((uint16_t)0x0040)

Definition at line 64 of file stm32f10x_i2c.c.

Referenced by I2C_GeneralCallCmd().

#define CR1_ENPEC_Reset   ((uint16_t)0xFFDF)

Definition at line 77 of file stm32f10x_i2c.c.

Referenced by I2C_CalculatePEC().

#define CR1_ENPEC_Set   ((uint16_t)0x0020)

Definition at line 76 of file stm32f10x_i2c.c.

Referenced by I2C_CalculatePEC().

#define CR1_NOSTRETCH_Reset   ((uint16_t)0xFF7F)

Definition at line 85 of file stm32f10x_i2c.c.

Referenced by I2C_StretchClockCmd().

#define CR1_NOSTRETCH_Set   ((uint16_t)0x0080)

Definition at line 84 of file stm32f10x_i2c.c.

Referenced by I2C_StretchClockCmd().

#define CR1_PE_Reset   ((uint16_t)0xFFFE)

Definition at line 49 of file stm32f10x_i2c.c.

Referenced by I2C_Cmd(), and I2C_Init().

#define CR1_PE_Set   ((uint16_t)0x0001)

Definition at line 48 of file stm32f10x_i2c.c.

Referenced by I2C_Cmd(), and I2C_Init().

#define CR1_PEC_Reset   ((uint16_t)0xEFFF)

Definition at line 73 of file stm32f10x_i2c.c.

Referenced by I2C_TransmitPEC().

#define CR1_PEC_Set   ((uint16_t)0x1000)

Definition at line 72 of file stm32f10x_i2c.c.

Referenced by I2C_TransmitPEC().

#define CR1_START_Reset   ((uint16_t)0xFEFF)

Definition at line 53 of file stm32f10x_i2c.c.

Referenced by I2C_GenerateSTART().

#define CR1_START_Set   ((uint16_t)0x0100)

Definition at line 52 of file stm32f10x_i2c.c.

Referenced by I2C_GenerateSTART().

#define CR1_STOP_Reset   ((uint16_t)0xFDFF)

Definition at line 57 of file stm32f10x_i2c.c.

Referenced by I2C_GenerateSTOP().

#define CR1_STOP_Set   ((uint16_t)0x0200)

Definition at line 56 of file stm32f10x_i2c.c.

Referenced by I2C_GenerateSTOP().

#define CR1_SWRST_Reset   ((uint16_t)0x7FFF)

Definition at line 69 of file stm32f10x_i2c.c.

Referenced by I2C_SoftwareResetCmd().

#define CR1_SWRST_Set   ((uint16_t)0x8000)

Definition at line 68 of file stm32f10x_i2c.c.

Referenced by I2C_SoftwareResetCmd().

#define CR2_DMAEN_Reset   ((uint16_t)0xF7FF)

Definition at line 92 of file stm32f10x_i2c.c.

Referenced by I2C_DMACmd().

#define CR2_DMAEN_Set   ((uint16_t)0x0800)

Definition at line 91 of file stm32f10x_i2c.c.

Referenced by I2C_DMACmd().

#define CR2_FREQ_Reset   ((uint16_t)0xFFC0)

Definition at line 99 of file stm32f10x_i2c.c.

Referenced by I2C_Init().

#define CR2_LAST_Reset   ((uint16_t)0xEFFF)

Definition at line 96 of file stm32f10x_i2c.c.

Referenced by I2C_DMALastTransferCmd().

#define CR2_LAST_Set   ((uint16_t)0x1000)

Definition at line 95 of file stm32f10x_i2c.c.

Referenced by I2C_DMALastTransferCmd().

#define FLAG_Mask   ((uint32_t)0x00FFFFFF)

Definition at line 119 of file stm32f10x_i2c.c.

#define ITEN_Mask   ((uint32_t)0x07000000)

Definition at line 122 of file stm32f10x_i2c.c.

Referenced by I2C_GetITStatus().

#define OAR1_ADD0_Reset   ((uint16_t)0xFFFE)

Definition at line 103 of file stm32f10x_i2c.c.

Referenced by I2C_Send7bitAddress().

#define OAR1_ADD0_Set   ((uint16_t)0x0001)

Definition at line 102 of file stm32f10x_i2c.c.

Referenced by I2C_Send7bitAddress().

#define OAR2_ADD2_Reset   ((uint16_t)0xFF01)

Definition at line 110 of file stm32f10x_i2c.c.

Referenced by I2C_OwnAddress2Config().

#define OAR2_ENDUAL_Reset   ((uint16_t)0xFFFE)

Definition at line 107 of file stm32f10x_i2c.c.

Referenced by I2C_DualAddressCmd().

#define OAR2_ENDUAL_Set   ((uint16_t)0x0001)

Definition at line 106 of file stm32f10x_i2c.c.

Referenced by I2C_DualAddressCmd().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32