BSP+Drivers for EE24+INA

This commit is contained in:
2024-02-24 19:24:00 +01:00
parent 26022126e1
commit af18558f1a
18 changed files with 728 additions and 4 deletions

18
Application/BSP/BSP_INA.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
/**
* @file BSP_INA.h
* @brief Driver for the BSP INA219 module
*
* This file provides a driver for the BSP INA219 module, which is used to measure voltage and current values.
* The driver includes functions for initializing the module, reading the current and voltage values, and calculating the power value.
* All of these functions are wrapped in a mutex lock to ensure consistent reading of the values.
*/
#include <stdint.h>
void BSP_INA_Init(void);
uint16_t BSP_INA_Voltage();
uint16_t BSP_INA_Current();
uint32_t BSP_INA_Power();