device

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBytesToFloat32

func ConvertBytesToFloat32(bytes []byte) float32

func ConvertBytesToFloat64

func ConvertBytesToFloat64(bytes []byte) float64

func ConvertBytesToInt16

func ConvertBytesToInt16(bytes []byte) int16

func ConvertBytesToInt32

func ConvertBytesToInt32(bytes []byte) int32

func ConvertBytesToInt64

func ConvertBytesToInt64(bytes []byte) int64

func ConvertBytesToInt8

func ConvertBytesToInt8(bytes []byte) int8

func ConvertFloat32ToBytes

func ConvertFloat32ToBytes(f float32) []byte

func ConvertFloat64ToBytes

func ConvertFloat64ToBytes(f float64) []byte

func ConvertInt16ToBytes

func ConvertInt16ToBytes(i int16) []byte

func ConvertInt32ToBytes

func ConvertInt32ToBytes(i int32) []byte

func ConvertInt64ToBytes

func ConvertInt64ToBytes(i int64) []byte

func ConvertInt8ToBytes

func ConvertInt8ToBytes(i int8) []byte

func InsertServerError

func InsertServerError(s *mbserver.Server)

func ReadDiscreteRegisterError

func ReadDiscreteRegisterError(s *mbserver.Server, frame mbserver.Framer) ([]byte, *mbserver.Exception)

func RunAsRTU

func RunAsRTU(s *mbserver.Server, cfg *rtu.Config) error

func RunAsRTUError

func RunAsRTUError(cfg *rtu.Config) error

func RunAsRTUNormal

func RunAsRTUNormal(cfg *rtu.Config) error

func RunAsTCP

func RunAsTCP(s *mbserver.Server, cfg *tcp.Config) error

func RunAsTCPError

func RunAsTCPError(cfg *tcp.Config) error

func RunAsTCPNormal

func RunAsTCPNormal(cfg *tcp.Config) error

func WriteHoldingRegisterError

func WriteHoldingRegisterError(s *mbserver.Server, frame mbserver.Framer) ([]byte, *mbserver.Exception)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL