zhangqian
2023-12-20 1960a054785d1f81e69abe84b43073ed9df638e0
constvar/const.go
@@ -20,6 +20,18 @@
   PlcStartAddressTypeTotalNumberWrite PlcStartAddressType = 3
)
type EndianType string
const (
   EndianTypeBig    EndianType = "big"
   EndianTypeLittle EndianType = "little"
   EndianTypeMix    EndianType = "mix"
)
func (t EndianType) Valid() bool {
   return t == EndianTypeBig || t == EndianTypeLittle || t == EndianTypeMix
}
type PlcStartAddressValueType string
const (