foxBMS  1.3.0
The foxBMS Battery Management System API Documentation
sof_cfg.h File Reference

Header for SOF configuration. More...

#include "general.h"
Include dependency graph for sof_cfg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SOF_CONFIG_s
 

Macros

#define SOF_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (120000.00f)
 
#define SOF_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (120000.00f)
 
#define SOF_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)
 
#define SOF_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)
 
#define SOF_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)
 
#define SOF_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)
 
#define SOF_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)
 
#define SOF_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)
 
#define SOF_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)
 
#define SOF_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)
 
#define SOF_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)
 
#define SOF_VOLTAGE_CUTOFF_CHARGE_mV   (2400)
 
#define SOF_VOLTAGE_LIMIT_CHARGE_mV   (2550)
 
#define SOF_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)
 
#define SOF_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)
 
#define SOF_MOL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (10000.00f)
 
#define SOF_RSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (11500.00f)
 
#define SOF_MSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (12200.00f)
 
#define SOF_MOL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (10000.00f)
 
#define SOF_RSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (11500.00f)
 
#define SOF_MSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (12200.00f)
 
#define SOF_MOL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)
 
#define SOF_RSL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)
 
#define SOF_MSL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)
 
#define SOF_MOL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)
 
#define SOF_RSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)
 
#define SOF_MSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)
 
#define SOF_MOL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)
 
#define SOF_RSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)
 
#define SOF_MSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)
 
#define SOF_MOL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)
 
#define SOF_RSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)
 
#define SOF_MSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)
 
#define SOF_MOL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)
 
#define SOF_RSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)
 
#define SOF_MSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)
 
#define SOF_MOL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)
 
#define SOF_RSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)
 
#define SOF_MSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)
 
#define SOF_MOL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)
 
#define SOF_RSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)
 
#define SOF_MSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)
 
#define SOF_MOL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)
 
#define SOF_RSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)
 
#define SOF_MSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)
 
#define SOF_MOL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)
 
#define SOF_RSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)
 
#define SOF_MSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)
 
#define SOF_MOL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)
 
#define SOF_RSL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)
 
#define SOF_MSL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)
 
#define SOF_MOL_VOLTAGE_LIMIT_CHARGE_mV   (2550)
 
#define SOF_RSL_VOLTAGE_LIMIT_CHARGE_mV   (2550)
 
#define SOF_MSL_VOLTAGE_LIMIT_CHARGE_mV   (2550)
 
#define SOF_MOL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)
 
#define SOF_RSL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)
 
#define SOF_MSL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)
 
#define SOF_MOL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)
 
#define SOF_RSL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)
 
#define SOF_MSL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)
 

Variables

const SOF_CONFIG_s sof_recommendedCurrent
 
const SOF_CONFIG_s sof_maximumOperatingLimit
 
const SOF_CONFIG_s sof_recommendedSafetyLimit
 
const SOF_CONFIG_s sof_configMaximumSafetyLimit
 

Detailed Description

Header for SOF configuration.

SPDX-License-Identifier: BSD-3-Clause

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:

  • ″This product uses parts of foxBMS®″
  • ″This product includes parts of foxBMS®″
  • ″This product is derived from foxBMS®″
Author
foxBMS Team
Date
2020-10-07 (date of creation)
Updated
2022-05-30 (date of last update)
Version
v1.3.0
Prefix
SOF

Definition in file sof_cfg.h.

Macro Definition Documentation

◆ SOF_MOL_STRING_CURRENT_CONTINUOUS_CHARGE_mA

#define SOF_MOL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (10000.00f)

Different alarm levels for the maximum continuous charge current in mA.

Definition at line 73 of file sof_cfg.h.

◆ SOF_MOL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA

#define SOF_MOL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (10000.00f)

Different alarm levels for the maximum continuous string discharge current in mA.

Definition at line 88 of file sof_cfg.h.

◆ SOF_MOL_STRING_CURRENT_LIMP_HOME_mA

#define SOF_MOL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)

Different alarm levels for the limp home current in mA

Definition at line 104 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC

#define SOF_MOL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current starts, i.e., above this temperature battery pack should not deliver full charge current

Definition at line 232 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC

#define SOF_MOL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current starts, i.e., above this temperature battery pack should not deliver full discharge current

Definition at line 195 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC

#define SOF_MOL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current is fully applied. Above this temperature the battery pack should not deliver any current in charge direction.

Definition at line 250 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC

#define SOF_MOL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current is fully applied. Above this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 214 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC

#define SOF_MOL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current starts, i.e., below this temperature battery pack should not deliver full charge current

Definition at line 159 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC

#define SOF_MOL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current starts, i.e., below this temperature battery pack should not deliver full discharge current.

Definition at line 122 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC

#define SOF_MOL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current is fully applied. Below this temperature the battery pack should not deliver any current in charge direction.

Definition at line 177 of file sof_cfg.h.

◆ SOF_MOL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC

#define SOF_MOL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current is fully applied. Below this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 141 of file sof_cfg.h.

◆ SOF_MOL_VOLTAGE_CUTOFF_CHARGE_mV

#define SOF_MOL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)

Different alarm levels for the upper voltage limit where the derating of maximum charge current starts. Above this value the battery pack should not deliver full current in charge direction.

Definition at line 266 of file sof_cfg.h.

◆ SOF_MOL_VOLTAGE_CUTOFF_DISCHARGE_mV

#define SOF_MOL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)

Different alarm levels for the lower voltage limit where the derating of maximum discharge current starts. Below this value the battery pack should not deliver full current in discharge direction.

Definition at line 298 of file sof_cfg.h.

◆ SOF_MOL_VOLTAGE_LIMIT_CHARGE_mV

#define SOF_MOL_VOLTAGE_LIMIT_CHARGE_mV   (2550)

Different alarm levels for the upper voltage limit where the derating of maximum charge current is fully applied. Above this value the battery pack should not deliver any current in charge direction.

Definition at line 282 of file sof_cfg.h.

◆ SOF_MOL_VOLTAGE_LIMIT_DISCHARGE_mV

#define SOF_MOL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)

Different alarm levels for the lower voltage limit where the derating of maximum discharge is fully applied. Below this value the battery pack should not deliver any current in discharge direction.

Definition at line 314 of file sof_cfg.h.

◆ SOF_MSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA

#define SOF_MSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (12200.00f)

Different alarm levels for the maximum continuous charge current in mA.

Definition at line 75 of file sof_cfg.h.

◆ SOF_MSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA

#define SOF_MSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (12200.00f)

Different alarm levels for the maximum continuous string discharge current in mA.

Definition at line 90 of file sof_cfg.h.

◆ SOF_MSL_STRING_CURRENT_LIMP_HOME_mA

#define SOF_MSL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)

Different alarm levels for the limp home current in mA

Definition at line 106 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC

#define SOF_MSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current starts, i.e., above this temperature battery pack should not deliver full charge current

Definition at line 234 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC

#define SOF_MSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current starts, i.e., above this temperature battery pack should not deliver full discharge current

Definition at line 197 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC

#define SOF_MSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current is fully applied. Above this temperature the battery pack should not deliver any current in charge direction.

Definition at line 252 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC

#define SOF_MSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current is fully applied. Above this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 216 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC

#define SOF_MSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current starts, i.e., below this temperature battery pack should not deliver full charge current

Definition at line 161 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC

#define SOF_MSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current starts, i.e., below this temperature battery pack should not deliver full discharge current.

Definition at line 124 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC

#define SOF_MSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current is fully applied. Below this temperature the battery pack should not deliver any current in charge direction.

Definition at line 179 of file sof_cfg.h.

◆ SOF_MSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC

#define SOF_MSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current is fully applied. Below this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 143 of file sof_cfg.h.

◆ SOF_MSL_VOLTAGE_CUTOFF_CHARGE_mV

#define SOF_MSL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)

Different alarm levels for the upper voltage limit where the derating of maximum charge current starts. Above this value the battery pack should not deliver full current in charge direction.

Definition at line 268 of file sof_cfg.h.

◆ SOF_MSL_VOLTAGE_CUTOFF_DISCHARGE_mV

#define SOF_MSL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)

Different alarm levels for the lower voltage limit where the derating of maximum discharge current starts. Below this value the battery pack should not deliver full current in discharge direction.

Definition at line 300 of file sof_cfg.h.

◆ SOF_MSL_VOLTAGE_LIMIT_CHARGE_mV

#define SOF_MSL_VOLTAGE_LIMIT_CHARGE_mV   (2550)

Different alarm levels for the upper voltage limit where the derating of maximum charge current is fully applied. Above this value the battery pack should not deliver any current in charge direction.

Definition at line 284 of file sof_cfg.h.

◆ SOF_MSL_VOLTAGE_LIMIT_DISCHARGE_mV

#define SOF_MSL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)

Different alarm levels for the lower voltage limit where the derating of maximum discharge is fully applied. Below this value the battery pack should not deliver any current in discharge direction.

Definition at line 316 of file sof_cfg.h.

◆ SOF_RSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA

#define SOF_RSL_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (11500.00f)

Different alarm levels for the maximum continuous charge current in mA.

Definition at line 74 of file sof_cfg.h.

◆ SOF_RSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA

#define SOF_RSL_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (11500.00f)

Different alarm levels for the maximum continuous string discharge current in mA.

Definition at line 89 of file sof_cfg.h.

◆ SOF_RSL_STRING_CURRENT_LIMP_HOME_mA

#define SOF_RSL_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)

Different alarm levels for the limp home current in mA

Definition at line 105 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC

#define SOF_RSL_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current starts, i.e., above this temperature battery pack should not deliver full charge current

Definition at line 233 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC

#define SOF_RSL_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current starts, i.e., above this temperature battery pack should not deliver full discharge current

Definition at line 196 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC

#define SOF_RSL_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum charge current is fully applied. Above this temperature the battery pack should not deliver any current in charge direction.

Definition at line 251 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC

#define SOF_RSL_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)

Different alarm levels for the high temperature in deci °C where the derating of maximum discharge current is fully applied. Above this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 215 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC

#define SOF_RSL_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current starts, i.e., below this temperature battery pack should not deliver full charge current

Definition at line 160 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC

#define SOF_RSL_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current starts, i.e., below this temperature battery pack should not deliver full discharge current.

Definition at line 123 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC

#define SOF_RSL_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum charge current is fully applied. Below this temperature the battery pack should not deliver any current in charge direction.

Definition at line 178 of file sof_cfg.h.

◆ SOF_RSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC

#define SOF_RSL_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)

Different alarm levels for the cold temperature in deci °C where the derating of maximum discharge current is fully applied. Below this temperature the battery pack should not deliver any current in discharge direction.

Definition at line 142 of file sof_cfg.h.

◆ SOF_RSL_VOLTAGE_CUTOFF_CHARGE_mV

#define SOF_RSL_VOLTAGE_CUTOFF_CHARGE_mV   (2400)

Different alarm levels for the upper voltage limit where the derating of maximum charge current starts. Above this value the battery pack should not deliver full current in charge direction.

Definition at line 267 of file sof_cfg.h.

◆ SOF_RSL_VOLTAGE_CUTOFF_DISCHARGE_mV

#define SOF_RSL_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)

Different alarm levels for the lower voltage limit where the derating of maximum discharge current starts. Below this value the battery pack should not deliver full current in discharge direction.

Definition at line 299 of file sof_cfg.h.

◆ SOF_RSL_VOLTAGE_LIMIT_CHARGE_mV

#define SOF_RSL_VOLTAGE_LIMIT_CHARGE_mV   (2550)

Different alarm levels for the upper voltage limit where the derating of maximum charge current is fully applied. Above this value the battery pack should not deliver any current in charge direction.

Definition at line 283 of file sof_cfg.h.

◆ SOF_RSL_VOLTAGE_LIMIT_DISCHARGE_mV

#define SOF_RSL_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)

Different alarm levels for the lower voltage limit where the derating of maximum discharge is fully applied. Below this value the battery pack should not deliver any current in discharge direction.

Definition at line 315 of file sof_cfg.h.

◆ SOF_STRING_CURRENT_CONTINUOUS_CHARGE_mA

#define SOF_STRING_CURRENT_CONTINUOUS_CHARGE_mA   (120000.00f)

Maximum current in mA in charge direction that a string can sustain. Normally set once for the specific battery cell from data sheet

Definition at line 67 of file sof_cfg.h.

◆ SOF_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA

#define SOF_STRING_CURRENT_CONTINUOUS_DISCHARGE_mA   (120000.00f)

Maximum current in mA in discharge direction that a string can deliver. Normally set once for the specific battery cell from data sheet.

Definition at line 82 of file sof_cfg.h.

◆ SOF_STRING_CURRENT_LIMP_HOME_mA

#define SOF_STRING_CURRENT_LIMP_HOME_mA   (20000.00f)

Current in mA that the string should be able to discharge when in limp home mode, i.e., something noncritical went wrong but it should be able to drive home. The value is chosen by the system engineer.

Definition at line 98 of file sof_cfg.h.

◆ SOF_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC

#define SOF_TEMPERATURE_HIGH_CUTOFF_CHARGE_ddegC   (450)

Hot temperature in deci °C where the derating of maximum charge current starts, i.e., above this temperature battery pack should not deliver full charge current.

Definition at line 224 of file sof_cfg.h.

◆ SOF_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC

#define SOF_TEMPERATURE_HIGH_CUTOFF_DISCHARGE_ddegC   (450)

Hot temperature in deci °C where the derating of maximum discharge current starts, i.e., above this temperature battery pack should not deliver full discharge current.

Definition at line 187 of file sof_cfg.h.

◆ SOF_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC

#define SOF_TEMPERATURE_HIGH_LIMIT_CHARGE_ddegC   (550)

Hot temperature in deci °C where the derating of maximum charge current is fully applied, i.e., above this temperature battery pack should not deliver any current in charge direction.

Definition at line 242 of file sof_cfg.h.

◆ SOF_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC

#define SOF_TEMPERATURE_HIGH_LIMIT_DISCHARGE_ddegC   (550)

Hot temperature in deci °C where the derating of maximum discharge current is fully applied, i.e., above this temperature battery pack should not deliver any current in discharge direction.

Definition at line 205 of file sof_cfg.h.

◆ SOF_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC

#define SOF_TEMPERATURE_LOW_CUTOFF_CHARGE_ddegC   (0)

Cold temperature in deci °C where the derating of maximum charge current starts, i.e., below this temperature battery pack should not deliver full charge current.

Definition at line 151 of file sof_cfg.h.

◆ SOF_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC

#define SOF_TEMPERATURE_LOW_CUTOFF_DISCHARGE_ddegC   (0)

Cold temperature in deci °C where the derating of maximum discharge current starts, i.e., below this temperature battery pack should not deliver full discharge current.

Definition at line 114 of file sof_cfg.h.

◆ SOF_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC

#define SOF_TEMPERATURE_LOW_LIMIT_CHARGE_ddegC   (-100)

Cold temperature in deci °C where the derating of maximum charge current is fully applied, i.e., below this temperature battery pack should not deliver any current in charge direction.

Definition at line 169 of file sof_cfg.h.

◆ SOF_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC

#define SOF_TEMPERATURE_LOW_LIMIT_DISCHARGE_ddegC   (-100)

Cold temperature in deci °C where the derating of maximum discharge current is fully applied, i.e., below this temperature battery pack should not deliver any current in discharge direction.

Definition at line 132 of file sof_cfg.h.

◆ SOF_VOLTAGE_CUTOFF_CHARGE_mV

#define SOF_VOLTAGE_CUTOFF_CHARGE_mV   (2400)

Above this voltage value battery pack should not be exposed to full current in charge direction.

Definition at line 258 of file sof_cfg.h.

◆ SOF_VOLTAGE_CUTOFF_DISCHARGE_mV

#define SOF_VOLTAGE_CUTOFF_DISCHARGE_mV   (2000)

Below this voltage value battery pack should not deliver full current in discharge direction.

Definition at line 290 of file sof_cfg.h.

◆ SOF_VOLTAGE_LIMIT_CHARGE_mV

#define SOF_VOLTAGE_LIMIT_CHARGE_mV   (2550)

Above this voltage value battery pack should not be exposed to any current in charge direction.

Definition at line 274 of file sof_cfg.h.

◆ SOF_VOLTAGE_LIMIT_DISCHARGE_mV

#define SOF_VOLTAGE_LIMIT_DISCHARGE_mV   (1750)

Below this voltage value battery pack should not deliver any current in discharge direction.

Definition at line 306 of file sof_cfg.h.

Variable Documentation

◆ sof_configMaximumSafetyLimit

const SOF_CONFIG_s sof_configMaximumSafetyLimit
extern

Configuration values for the SOF window of the different alarm levels (MOL, RSL and MSL)

Definition at line 115 of file sof_cfg.c.

◆ sof_maximumOperatingLimit

const SOF_CONFIG_s sof_maximumOperatingLimit
extern

Configuration values for the SOF window of the different alarm levels (MOL, RSL and MSL)

Definition at line 81 of file sof_cfg.c.

◆ sof_recommendedCurrent

const SOF_CONFIG_s sof_recommendedCurrent
extern

Configuration values for the SOF window of the recommended battery current

Definition at line 64 of file sof_cfg.c.

◆ sof_recommendedSafetyLimit

const SOF_CONFIG_s sof_recommendedSafetyLimit
extern

Configuration values for the SOF window of the different alarm levels (MOL, RSL and MSL)

Definition at line 98 of file sof_cfg.c.