Initial commit
This commit is contained in:
39
Inc/DS_INA226.h
Normal file
39
Inc/DS_INA226.h
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
#ifndef DS_INA226_H
|
||||||
|
#define DS_INA226_H
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#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
|
||||||
6
Src/DS_INA226.c
Normal file
6
Src/DS_INA226.c
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include "../../Inc/DS_INA226.h"
|
||||||
|
|
||||||
|
void DS_INA226_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user