Ignore:
Timestamp:
Nov 1, 2025, 5:29:27 PM (2 days ago)
Author:
f.jahn
Message:
 
Location:
trunk/fw_g473rct/SES/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/fw_g473rct/SES/inc/battery_voltage.h

    r25 r38  
    1616
    1717//--- GLOBALE DEFINES ----------------------------------------------------------
    18 #define BATTERY_VOLTAGE_VOLTAGE_DIVIDER       6.0
     18#if defined SYSTEM_VOLTAGE_12V
     19  #define BATTERY_VOLTAGE_VOLTAGE_DIVIDER       6.0
     20#elif defined SYSTEM_VOLTAGE_24V
     21  #define BATTERY_VOLTAGE_VOLTAGE_DIVIDER       11.0
     22#elif defined SYSTEM_VOLTAGE_48V
     23  #define BATTERY_VOLTAGE_VOLTAGE_DIVIDER       21.0
     24#else
     25  #error "System voltage not defined"
     26#endif
     27
     28
     29
    1930#define BATTERY_VOLTAGE_ADC_RESOLUTION            32768.0 //65536/2 da im differential mode
    2031#define BATTERY_VOLTAGE_ADC_OFFSET                        32768.0
  • trunk/fw_g473rct/SES/inc/outputs.h

    r28 r38  
    3030#define OUTPUTS_LVP_SHUNT_UNDERTEMPERATURE              5
    3131#define OUTPUTS_LVP_CHIP_UNDERTEMPERATURE               6
     32#define OUTPUTS_LVP_SHORT_PROTECTION                    7
    3233
    3334#define OUTPUTS_OVP_UNKNOWN                                             -1
     
    3940#define OUTPUTS_OVP_SHUNT_UNDERTEMPERATURE              5
    4041#define OUTPUTS_OVP_CHIP_UNDERTEMPERATURE               6
     42#define OUTPUTS_OVP_SHORT_PROTECTION                    7
    4143
    4244#define OUTPUTS_LVP_MODE_AUTO                                   0U
  • trunk/fw_g473rct/SES/inc/sysdata.h

    r37 r38  
    189189        /* 2 of 8 */ uint16_t ovp_sense;                                            // 168
    190190        /* 4 of 8 */ uint16_t lvp_sense;                                            // 169
    191         /* 6 of 8 */ uint32_t detectedCapacityAtActualCRate;                                            // 170,171
    192         /* 8 of 8 */ uint32_t detectedEnergyAtActualCRate;                                                      // 172,173
     191        /* 6 of 8 */ uint16_t overcurrentRetryCounter;                                                          // 170
     192        /* 8 of 8 */ uint16_t overcurrentEventsTotal;                                                           // 171
     193        /* 2 of 8 */ uint16_t overcurrentMeasurement;                                                           // 172
     194        /* 4 of 8 */ uint16_t overcurrentMaxValue;                                                                      // 173
    193195        /* 6 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 174
    194196        /* 8 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 175
     
    226228        /* 8 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 239
    227229        /* 4 of 8 */ int64_t  mAs_AutoModeU;                                                                            // 240-243
    228         /* 6 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 244
    229         /* 8 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 245
    230         /* 2 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 246
    231         /* 4 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 247
     230        /* 6 of 8 */ uint32_t detectedCapacityAtActualCRate;                                            // 244,245
     231        /* 8 of 8 */ uint32_t detectedEnergyAtActualCRate;                                                      // 246,247
    232232        /* 6 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 248
    233233        /* 8 of 8 */ uint16_t UNIQUE_NAME(reserved);                                                            // 249
Note: See TracChangeset for help on using the changeset viewer.