
Functions | |
| int32_t | BSP_GetTick (void) |
| Delay function. More... | |
| int32_t | BSP_I2C4_DeInit (void) |
| DeInitializes I2C HAL. More... | |
| int32_t | BSP_I2C4_Init (void) |
| Initializes I2C HAL. More... | |
| int32_t | BSP_I2C4_IsReady (uint16_t DevAddr, uint32_t Trials) |
| Checks if target device is ready for communication. More... | |
| int32_t | BSP_I2C4_ReadReg (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length) |
| Read a 8bit register of the device through BUS. More... | |
| int32_t | BSP_I2C4_ReadReg16 (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length) |
| Read a 16bit register of the device through BUS. More... | |
| int32_t | BSP_I2C4_WriteReg (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length) |
| Write a 8bit value in a register of the device through BUS. More... | |
| int32_t | BSP_I2C4_WriteReg16 (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length) |
| Write a 16bit value in a register of the device through BUS. More... | |
| __weak HAL_StatusTypeDef | MX_I2C4_Init (I2C_HandleTypeDef *hI2c, uint32_t timing) |
| MX I2C4 initialization. More... | |
| int32_t BSP_GetTick | ( | void | ) |
| int32_t BSP_I2C4_DeInit | ( | void | ) |
DeInitializes I2C HAL.
| BSP | status |
Definition at line 241 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_Init | ( | void | ) |
Initializes I2C HAL.
| BSP | status |
Definition at line 190 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_IsReady | ( | uint16_t | DevAddr, |
| uint32_t | Trials | ||
| ) |
Checks if target device is ready for communication.
| DevAddr | Target device address |
| Trials | Number of trials |
| BSP | status |
Definition at line 461 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_ReadReg | ( | uint16_t | DevAddr, |
| uint16_t | Reg, | ||
| uint8_t * | pData, | ||
| uint16_t | Length | ||
| ) |
Read a 8bit register of the device through BUS.
| DevAddr | Device address on BUS |
| Reg | The target register address to read |
| pData | Pointer to data buffer |
| Length | Length of the data |
| BSP | status |
Definition at line 351 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_ReadReg16 | ( | uint16_t | DevAddr, |
| uint16_t | Reg, | ||
| uint8_t * | pData, | ||
| uint16_t | Length | ||
| ) |
Read a 16bit register of the device through BUS.
| DevAddr | Device address on BUS |
| Reg | The target register address to read |
| pData | Pointer to data buffer |
| Length | Length of the data |
| BSP | status |
Definition at line 425 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_WriteReg | ( | uint16_t | DevAddr, |
| uint16_t | Reg, | ||
| uint8_t * | pData, | ||
| uint16_t | Length | ||
| ) |
Write a 8bit value in a register of the device through BUS.
| DevAddr | Device address on Bus. |
| Reg | The target register address to write |
| pData | The target register value to be written |
| Length | buffer size to be written |
| BSP | status |
Definition at line 314 of file stm32h747i_discovery_bus.c.
| int32_t BSP_I2C4_WriteReg16 | ( | uint16_t | DevAddr, |
| uint16_t | Reg, | ||
| uint8_t * | pData, | ||
| uint16_t | Length | ||
| ) |
Write a 16bit value in a register of the device through BUS.
| DevAddr | Device address on Bus. |
| Reg | The target register address to write |
| pData | The target register value to be written |
| Length | buffer size to be written |
| BSP | status |
Definition at line 388 of file stm32h747i_discovery_bus.c.
| HAL_StatusTypeDef MX_I2C4_Init | ( | I2C_HandleTypeDef * | hI2c, |
| uint32_t | timing | ||
| ) |
MX I2C4 initialization.
| hI2c | I2C handle |
| timing | I2C timing |
| HAL | status |
Definition at line 268 of file stm32h747i_discovery_bus.c.