This file creates the *PACK's* voltage and current figures, based on both the individual cell specifications and the pack configuration.
Definition in file pack.h.
#include "LG18450.h"
#include "pack_cfg.h"
Go to the source code of this file.
Defines | |
| #define | PACK_CCCV_C (CELL_CCCV_C * PACKWIDTH) |
| #define | PACK_CCCV_TERMC (CELL_CCCV_TERMC * PACKWIDTH) |
| #define | PACK_CCCV_V (CELL_CCCV_V * PACKSTACK) |
| #define | PACK_DESIGNCAPC5 (CELL_DESIGNCAPC5 * PACKWIDTH) |
| #define | PACK_DESIGNCAPMW ((PACK_DESIGNCAPTYP/100) * (PACK_NOMINALV/100)) |
| #define | PACK_DESIGNCAPTYP (CELL_DESIGNCAPTYP * PACKWIDTH) |
| #define | PACK_DISCHG_C5 (CELL_DISCHG_C5 * PACKWIDTH) |
| #define | PACK_DISCHG_MAX (CELL_DISCHG_MAX * PACKWIDTH) |
| #define | PACK_HIBERNATEAMOUNT 1 |
| #define | PACK_MAX_CHG_C (CELL_MAX_CHG_C * PACKWIDTH) |
| #define | PACK_MINV (CELL_MINV * PACKSTACK) |
| #define | PACK_NOMINALV (CELL_NOMINALV * PACKSTACK) |
| #define | PACK_PROTECT_DUV {BPDUV = (0x01<<4) | (0x0D << 0);} |
| #define | PACK_PROTECT_OVERC {BPOCD = 0<<4 | 0<<0;} |
| #define | PACK_PROTECT_SHORT {BPSCD = 0;} |
| #define | PACK_PROTECT_TIME {CBPTR = 1<<4 | 5<<0;} |
| #define PACK_CCCV_C (CELL_CCCV_C * PACKWIDTH) |
| #define PACK_CCCV_V (CELL_CCCV_V * PACKSTACK) |
| #define PACK_DESIGNCAPC5 (CELL_DESIGNCAPC5 * PACKWIDTH) |
| #define PACK_DESIGNCAPMW ((PACK_DESIGNCAPTYP/100) * (PACK_NOMINALV/100)) |
| #define PACK_DESIGNCAPTYP (CELL_DESIGNCAPTYP * PACKWIDTH) |
Definition at line 36 of file pack.h.
Referenced by AbsoluteSOC(), AtRateTTF(), and InitSMBvariables().
| #define PACK_DISCHG_MAX (CELL_DISCHG_MAX * PACKWIDTH) |
| #define PACK_HIBERNATEAMOUNT 1 |
| #define PACK_MAX_CHG_C (CELL_MAX_CHG_C * PACKWIDTH) |
| #define PACK_MINV (CELL_MINV * PACKSTACK) |
Definition at line 40 of file pack.h.
Referenced by AtRateOK(), AtRateTTE(), AvgTimeToFull(), and TimeToEmpty().
| #define PACK_NOMINALV (CELL_NOMINALV * PACKSTACK) |
| #define PACK_PROTECT_DUV {BPDUV = (0x01<<4) | (0x0D << 0);} |
| #define PACK_PROTECT_OVERC {BPOCD = 0<<4 | 0<<0;} |
| #define PACK_PROTECT_SHORT {BPSCD = 0;} |
| #define PACK_PROTECT_TIME {CBPTR = 1<<4 | 5<<0;} |
1.5.3