-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.go
More file actions
26 lines (25 loc) · 1.36 KB
/
api.go
File metadata and controls
26 lines (25 loc) · 1.36 KB
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
26
package dlt645
type Client interface {
// read data
ReadData(dataMarker uint32, blockQuantity uint8, year, month, day, hour, minute uint8) (results []byte, err error)
// write data
WriteData(dataMarker uint32, passwordPermission uint8, password uint32, operatorCode uint32, data []byte) (results []byte, err error)
// read communication address
ReadCommunicationAddress() (results []byte, err error)
// write communication address
WriteCommunicationAddress(commAddr uint64) (results []byte, err error)
// broadcast timing
BroadcastTiming(year, month, day, hour, minute, second uint8) (err error)
// freeze command
FreezeCommand(month, day, hour, minute uint8) (results []byte, err error)
// change communication speed
ChangeCommunicationRate(Word uint8) (results []byte, err error)
// change password
ChangePassword(dataMarker uint32, oldPasswordPermission uint8, oldPassword uint32, newPasswordPermission uint8, newPassword uint32) (results []byte, err error)
// Clear the maximum demand
ClearMaximumDemand(passwordPermission uint8, password uint32, operatorCode uint32) (results []byte, err error)
// Clear the ammeter
ClearAmmeter(passwordPermission uint8, password uint32, operatorCode uint32) (results []byte, err error)
// Clear the event
ClearEvent(dataMarker uint32, passwordPermission uint8, password uint32, operatorCode uint32) (results []byte, err error)
}