Documentation ¶
Overview ¶
uart_driver相当于是升级版,这个是最原始的基础驱动
Index ¶
- func NewModBusRtuDriver(d *typex.Device, e typex.RuleX, Registers map[string]*common.RegisterRW, ...) typex.XExternalDriver
- func NewModBusTCPDriver(d *typex.Device, e typex.RuleX, Registers map[string]*common.RegisterRW, ...) typex.XExternalDriver
- func NewRawUartDriver(ctx context.Context, e typex.RuleX, device *typex.Device, ...) typex.XExternalDriver
- func NewSnmpDriver(d *typex.Device, e typex.RuleX, client *gosnmp.GoSNMP) typex.XExternalDriver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewModBusRtuDriver ¶
func NewModBusRtuDriver( d *typex.Device, e typex.RuleX, Registers map[string]*common.RegisterRW, handler *modbus.RTUClientHandler, client modbus.Client) typex.XExternalDriver
func NewModBusTCPDriver ¶
func NewModBusTCPDriver( d *typex.Device, e typex.RuleX, Registers map[string]*common.RegisterRW, handler *modbus.TCPClientHandler, client modbus.Client) typex.XExternalDriver
func NewRawUartDriver ¶
func NewRawUartDriver( ctx context.Context, e typex.RuleX, device *typex.Device, serialPort serial.Port, ) typex.XExternalDriver
初始化一个驱动
func NewSnmpDriver ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.