Macros | Functions | Variables
stm32h747i_discovery_bus.h File Reference

This file is the header of stm32h747i_discovery_bus.c file. More...

#include "stm32h747i_discovery_conf.h"
Include dependency graph for stm32h747i_discovery_bus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BUS_I2C4   I2C4
 
#define BUS_I2C4_CLK_DISABLE()   __HAL_RCC_I2C4_CLK_DISABLE()
 
#define BUS_I2C4_CLK_ENABLE()   __HAL_RCC_I2C4_CLK_ENABLE()
 
#define BUS_I2C4_FORCE_RESET()   __HAL_RCC_I2C4_FORCE_RESET()
 
#define BUS_I2C4_FREQUENCY   100000U /* Frequency of I2Cn = 100 KHz*/
 
#define BUS_I2C4_RELEASE_RESET()   __HAL_RCC_I2C4_RELEASE_RESET()
 
#define BUS_I2C4_SCL_AF   GPIO_AF4_I2C4
 
#define BUS_I2C4_SCL_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOD_CLK_DISABLE()
 
#define BUS_I2C4_SCL_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOD_CLK_ENABLE()
 
#define BUS_I2C4_SCL_GPIO_PORT   GPIOD
 
#define BUS_I2C4_SCL_PIN   GPIO_PIN_12
 
#define BUS_I2C4_SDA_AF   GPIO_AF4_I2C4
 
#define BUS_I2C4_SDA_GPIO_CLK_DISABLE()   __HAL_RCC_GPIOD_CLK_DISABLE()
 
#define BUS_I2C4_SDA_GPIO_CLK_ENABLE()   __HAL_RCC_GPIOD_CLK_ENABLE()
 
#define BUS_I2C4_SDA_GPIO_PORT   GPIOD
 
#define BUS_I2C4_SDA_PIN   GPIO_PIN_13
 

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...
 

Variables

I2C_HandleTypeDef hbus_i2c4
 

Detailed Description

This file is the header of stm32h747i_discovery_bus.c file.

Author
MCD Application Team
Attention

© Copyright (c) 2019 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32h747i_discovery_bus.h.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:02