Skip to content

Commit

Permalink
Document register types
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Mar 22, 2020
1 parent ecc8b8e commit 8f00a10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions charger/wallbe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f00a10

Please sign in to comment.