github.com/stampzilla/stampzilla-go@v2.0.0-rc9+incompatible/nodes/stampzilla-modbus/config.go (about)

     1  package main
     2  
     3  type Config struct {
     4  	Registers Registers
     5  	Device    string
     6  }
     7  
     8  func NewConfig() *Config {
     9  	return &Config{
    10  		Registers: make(Registers),
    11  	}
    12  
    13  }
    14  
    15  type Register struct {
    16  	Name  string
    17  	Id    uint16
    18  	Value interface{}
    19  	Base  int64
    20  }
    21  
    22  type Registers map[string]*Register