zhangqian
2024-04-25 2d6875c93b25d0b7336c7fa11e066d213259fe2e
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 (