Document register types

This commit is contained in:
andig 2020-03-22 15:22:04 +01:00
parent ecc8b8ee64
commit 8f00a10203
2 changed files with 9 additions and 7 deletions

View file

@ -2,5 +2,6 @@ issues:
exclude:
- "func `..Wallbe..showIO` is unused"
- "func `..Wallbe..showIOs` is unused"
- .regOverchargeProtect. is unused
- .regActualCurrent. is unused
- .regOverchargeProtect. is unused
- .regReset. is unused

View file

@ -12,12 +12,13 @@ import (
const (
slaveID = 255
regStatus = 100
regChargeTime = 102
regActualCurrent = 300
regEnable = 400
regOverchargeProtect = 409
regMaxCurrent = 528
regStatus = 100 // Input
regChargeTime = 102 // Input
regActualCurrent = 300 // Holding
regEnable = 400 // Coil
regOverchargeProtect = 409 // Coil
regReset = 413 // Coil
regMaxCurrent = 528 // Holding
timeout = 1 * time.Second
protocolTimeout = 2 * time.Second