Rev | Line | |
---|
[6] | 1 | /*! |
---|
| 2 | * \file wh_counter.h |
---|
| 3 | * \author ECS, Zhambolat Kazharov |
---|
| 4 | * \brief THis module contains functions to manage |
---|
| 5 | * battery energy calculations. |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #ifndef __WH_COUNTER_H |
---|
| 9 | #define __WH_COUNTER_H |
---|
| 10 | |
---|
| 11 | #ifdef __cplusplus |
---|
| 12 | extern "C" { |
---|
| 13 | #endif |
---|
| 14 | |
---|
| 15 | //--- INCLUDEs ----------------------------------------------------------------- |
---|
| 16 | |
---|
| 17 | #include <stdint.h> |
---|
| 18 | |
---|
| 19 | //--- GLOBAL TYPE DEFS --------------------------------------------------------- |
---|
| 20 | |
---|
| 21 | //--- GLOBAL DEFINES ----------------------------------------------------------- |
---|
| 22 | |
---|
| 23 | //--- GLOBAL VARIABLES PROTOTYPES ---------------------------------------------- |
---|
| 24 | |
---|
| 25 | //--- GLOBAL FUNKTIONS PROTOTYPEN ---------------------------------------------- |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | void WH_COUNTER_Init(void); |
---|
| 30 | |
---|
| 31 | /*! |
---|
| 32 | * \brief Calculates Wh periodically (1s) |
---|
| 33 | * |
---|
| 34 | * Must be called every second |
---|
| 35 | * |
---|
| 36 | */ |
---|
| 37 | void WH_COUNTER_Exec(void); |
---|
| 38 | /*! |
---|
| 39 | * \brief Returns Soc in m% |
---|
| 40 | * |
---|
| 41 | */ |
---|
| 42 | int32_t WH_COUNTER_GetSoCManual(void); |
---|
| 43 | /*! |
---|
| 44 | * \brief Description |
---|
| 45 | * |
---|
| 46 | */ |
---|
| 47 | int32_t WH_COUNTER_GetSoCAuto(void); |
---|
| 48 | |
---|
| 49 | /*! |
---|
| 50 | * \brief Description |
---|
| 51 | * |
---|
| 52 | */ |
---|
| 53 | int32_t WH_COUNTER_GetSoCAutoTemp(void); |
---|
| 54 | |
---|
| 55 | /*! |
---|
| 56 | * \brief Description |
---|
| 57 | * |
---|
| 58 | */ |
---|
| 59 | void WH_COUNTER_SetToMax(void); |
---|
| 60 | /*! |
---|
| 61 | * \brief Description |
---|
| 62 | * |
---|
| 63 | */ |
---|
| 64 | void WH_COUNTER_SetDetectedEnergy(void); |
---|
| 65 | |
---|
| 66 | #ifdef __cplusplus |
---|
| 67 | } |
---|
| 68 | #endif |
---|
| 69 | |
---|
| 70 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.