Documentation
¶
Index ¶
- func NewOmronFinsDriver() driver.Driver
- func ParseOmronAddress(address string) error
- type OmronFinsDriver
- func (d *OmronFinsDriver) Connect(ctx context.Context) error
- func (d *OmronFinsDriver) Disconnect() error
- func (d *OmronFinsDriver) GetConnectionMetrics() (connectionSeconds int64, reconnectCount int64, localAddr string, ...)
- func (d *OmronFinsDriver) GetMetrics() model.ChannelMetrics
- func (d *OmronFinsDriver) Health() driver.HealthStatus
- func (d *OmronFinsDriver) Init(cfg model.DriverConfig) error
- func (d *OmronFinsDriver) ReadPoints(ctx context.Context, points []model.Point) (map[string]model.Value, error)
- func (d *OmronFinsDriver) SetDeviceConfig(config map[string]any) error
- func (d *OmronFinsDriver) SetSlaveID(slaveID uint8) error
- func (d *OmronFinsDriver) WritePoint(ctx context.Context, p model.Point, value any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOmronFinsDriver ¶
func ParseOmronAddress ¶
ParseOmronAddress validates Omron FINS address format. Address Format: AREA ADDRESS[.BIT][.LEN[H][L]]
Types ¶
type OmronFinsDriver ¶
type OmronFinsDriver struct {
// contains filtered or unexported fields
}
func (*OmronFinsDriver) Disconnect ¶
func (d *OmronFinsDriver) Disconnect() error
func (*OmronFinsDriver) GetConnectionMetrics ¶
func (*OmronFinsDriver) GetMetrics ¶
func (d *OmronFinsDriver) GetMetrics() model.ChannelMetrics
func (*OmronFinsDriver) Health ¶
func (d *OmronFinsDriver) Health() driver.HealthStatus
func (*OmronFinsDriver) Init ¶
func (d *OmronFinsDriver) Init(cfg model.DriverConfig) error
func (*OmronFinsDriver) ReadPoints ¶
func (*OmronFinsDriver) SetDeviceConfig ¶
func (d *OmronFinsDriver) SetDeviceConfig(config map[string]any) error
func (*OmronFinsDriver) SetSlaveID ¶
func (d *OmronFinsDriver) SetSlaveID(slaveID uint8) error
func (*OmronFinsDriver) WritePoint ¶
Click to show internal directories.
Click to hide internal directories.