39 lines
543 B
C
39 lines
543 B
C
#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
|