DMA transfers management functions.
More...
DMA transfers management functions.
I2C registers management functions.
===============================================================================
##### DMA transfers management functions #####
===============================================================================
This section provides functions allowing to configure the I2C DMA channels
requests.
===============================================================================
##### I2C registers management functions #####
===============================================================================
[..] This section provides a functions that allow user the management of
I2C registers.
Enables or disables the specified I2C DMA requests.
- Parameters
-
I2Cx | where x can be 1, 2 or 3 to select the I2C peripheral. |
NewState | new state of the I2C DMA transfer. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 904 of file stm32f4xx_i2c.c.
Specifies that the next DMA transfer is the last one.
- Parameters
-
I2Cx | where x can be 1, 2 or 3 to select the I2C peripheral. |
NewState | new state of the I2C DMA last transfer. This parameter can be: ENABLE or DISABLE. |
- Return values
-
Definition at line 928 of file stm32f4xx_i2c.c.
uint32_t I2C_ReadRegister |
( |
I2C_TypeDef * |
I2Cx, |
|
|
uint8_t |
I2C_Register |
|
) |
| |
Reads the specified I2C register and returns its value.
- Parameters
-
I2Cx | where x can be 1 or 2 to select the I2C peripheral. |
I2C_Register | specifies the register to read. This parameter can be one of the following values:
- I2C_Register_CR1: CR1 register.
- I2C_Register_CR2: CR2 register.
- I2C_Register_OAR1: OAR1 register.
- I2C_Register_OAR2: OAR2 register.
- I2C_Register_TIMINGR: TIMING register.
- I2C_Register_TIMEOUTR: TIMEOUTR register.
- I2C_Register_ISR: ISR register.
- I2C_Register_ICR: ICR register.
- I2C_Register_PECR: PECR register.
- I2C_Register_RXDR: RXDR register.
- I2C_Register_TXDR: TXDR register.
|
- Return values
-
The | value of the read register. |
Definition at line 1201 of file stm32f30x_i2c.c.