IO::Modbus::RID35 Namespace Reference

Classes

class  Device
 
class  Request
 

Enumerations

enum  Unit {
  Unit::NONE, Unit::KW, Unit::KVAR, Unit::KVA,
  Unit::KWH, Unit::KVARH, Unit::KVAH, Unit::VOLT,
  Unit::AMP, Unit::HERTZ
}
 
enum  Register { Register::XX, Register::RID35_STDREG_MAP }
 

Variables

constexpr uint16_t stdRegBase = 0x01
 
constexpr uint16_t ovfRegBase = 0x96
 
constexpr size_t stdRegCount = (1 + unsigned(Register::MaxDemandApparentPower)) * 2
 
constexpr size_t ovfRegCount = 1 + unsigned(Register::Kvah) - unsigned(Register::TotalKwh)
 
constexpr size_t registerCount = stdRegCount + ovfRegCount
 

Detailed Description

Modbus/RID35/Request.h

Created on: 24 March 2022

Copyright 2022 mikee47 mike@.nosp@m.sill.nosp@m.yhous.nosp@m.e.ne.nosp@m.t

This file is part of the IOControl Library

This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 or later.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this library. If not, see https://www.gnu.org/licenses/.

Enumeration Type Documentation

◆ Register

Enumerator
XX 
RID35_STDREG_MAP 

◆ Unit

Enumerator
NONE 
KW 
KVAR 
KVA 
KWH 
KVARH 
KVAH 
VOLT 
AMP 
HERTZ 

Variable Documentation

◆ ovfRegBase

constexpr uint16_t IO::Modbus::RID35::ovfRegBase = 0x96
constexpr

◆ ovfRegCount

constexpr size_t IO::Modbus::RID35::ovfRegCount = 1 + unsigned(Register::Kvah) - unsigned(Register::TotalKwh)
constexpr

◆ registerCount

constexpr size_t IO::Modbus::RID35::registerCount = stdRegCount + ovfRegCount
constexpr

◆ stdRegBase

constexpr uint16_t IO::Modbus::RID35::stdRegBase = 0x01
constexpr

◆ stdRegCount

constexpr size_t IO::Modbus::RID35::stdRegCount = (1 + unsigned(Register::MaxDemandApparentPower)) * 2
constexpr