zhangqian
2024-04-16 8b6a262a56942a1a5764526f315029f1cd410ede
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 (