Documentation
¶
Index ¶
- Constants
- func Add33H(marker []byte) []byte
- func BytesReverse(str string) ([]byte, error)
- func CheckSum(bytes []byte) byte
- func DLT1997(address string, dataMarker string) []byte
- func DLT2007(address string, dataMarker string) []byte
- func GetValue(protocol string, b []byte) []byte
- func IgnoreFrontGuide(b []byte) []byte
- func NewSerial(serial *SerialPort) error
- func Response(protocol string, response []byte, register string) (no string, value float64, err error)
- func Sub33H(marker []byte) []byte
- func VerifyResponse(b []byte) bool
- type Frame
- type Master
- type SerialPort
Constants ¶
View Source
const ( Protocol2007 = "DL/T-2007" Protocol1997 = "DL/T-1997" )
Variables ¶
This section is empty.
Functions ¶
func BytesReverse ¶
func IgnoreFrontGuide ¶
func NewSerial ¶
func NewSerial(serial *SerialPort) error
func VerifyResponse ¶
Types ¶
type Master ¶
type Master struct { MasterRequestFrame []byte SlaveResponseFrame chan []byte SerialPort }
var DLT645Master *Master
Click to show internal directories.
Click to hide internal directories.