diff --git a/Inc/DS_INA226.h b/Inc/DS_INA226.h new file mode 100644 index 0000000..ddf32f5 --- /dev/null +++ b/Inc/DS_INA226.h @@ -0,0 +1,39 @@ +#ifndef DS_INA226_H +#define DS_INA226_H + +#include + +#ifdef STM32G030xx + #include "stm32g0xx_hal.h" +#endif + +#ifdef STM32F030xx + #include "stm32f0xx_hal.h" +#endif + +#ifdef STM32F103xB + #include "stm32f1xx_hal.h" +#endif + + +typedef struct DS_INA226 +{ +// SPI_HandleTypeDef* SPI; +// char DisplayData[8]; +// uint8_t Dots; +// uint8_t DecodeMode, Intensivity, ScanLimit; +// bool EnableDecodeMode; +// GPIO_TypeDef* Port_CS; +// uint16_t Pin_CS; +}DS_INA226; + + +void DS_INA226_Init(void); + + + + + + + +#endif //DS_INA226_H \ No newline at end of file diff --git a/Src/DS_INA226.c b/Src/DS_INA226.c new file mode 100644 index 0000000..0134fd9 --- /dev/null +++ b/Src/DS_INA226.c @@ -0,0 +1,6 @@ +#include "../../Inc/DS_INA226.h" + +void DS_INA226_Init(void) +{ + +} \ No newline at end of file