F439_CPP_BMP390_Barometric_Pressure_and_Altimeter_01
1.0
STM32F439 BMP390 barometric pressure and altimeter tutorial
Loading...
Searching...
No Matches
i2c_spi_interface.h
1
/*
2
* i2c_spi_interface.h
3
*
4
* Created on: Dec 3, 2025
5
* Author: johng
6
*/
7
8
#ifndef INC_I2C_SPI_INTERFACE_H_
9
#define INC_I2C_SPI_INTERFACE_H_
10
11
#include <
main.h
>
12
13
typedef
struct
interface
{
14
#ifdef __STM32F4xx_HAL_I2C_H
15
I2C_HandleTypeDef *i2c;
16
uint8_t i2cAddress;
17
#endif
18
#ifdef __STM32F4xx_HAL_SPI_H
19
SPI_HandleTypeDef *spi;
20
#endif
21
}
I2C_SPI_Interface
;
22
23
24
25
#endif
/* INC_I2C_SPI_INTERFACE_H_ */
main.h
: Header for main.c file. This file contains the common defines of the application.
interface
Definition
i2c_spi_interface.h:13
Core
Inc
i2c_spi_interface.h
Generated by
1.10.0