-
Notifications
You must be signed in to change notification settings - Fork 2
/
CellInfo.h
25 lines (21 loc) · 889 Bytes
/
CellInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) 2023 Ronald Rink
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// SPDX-License-Identifier: MIT
#pragma once
#include <cstdint>
namespace Byd
{
/// @brief Represents the cell information.
typedef struct tagCellInfo
{
/// @brief Represents the minimum cell voltage in milli Volt.
uint16_t CellVoltageMinimumMilliVolt;
/// @brief Represents the maximum cell voltage in milli Volt.
uint16_t CellVoltageMaximumMilliVolt;
/// @brief Represents the minimum cell temperature in Kelvin.
uint16_t CellTemperatureMinimumKelvin;
/// @brief Represents the maximum cell temperature in Kelvin.
uint16_t CellTemperatureMaximumKelvin;
} CellInfo;
static_assert(DataLength == sizeof(CellInfo), "sizeof(CellInfo) must be equal to DataLength.");
}