-
Notifications
You must be signed in to change notification settings - Fork 2
/
BankInfo.h
25 lines (21 loc) · 922 Bytes
/
BankInfo.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 battery bank information.
typedef struct tagBankInfo
{
/// @brief Represents the number of batteries in total.
uint16_t Total;
/// @brief Represents the number of batteries offline.
uint16_t Offline;
/// @brief Represents the number of batteries which are blocked for charging.
uint16_t DischargingBlocked; ///< Not supported, always 0.
/// @brief Represents the number of batteries which are blocked for discharging.
uint16_t ChargingBlocked; ///< Not supported, always 0.
} BankInfo;
static_assert(DataLength == sizeof(BankInfo), "sizeof(BankInfo) must be equal to DataLength");
}