Documentation
¶
Index ¶
- type Base
- func (*Base) AppConfig() []appconfig.ConfigValue
- func (*Base) ApplyOverlay(overlay *devicetree.DeviceTree) error
- func (*Base) CPPComponentType() string
- func (*Base) Clusters() cluster.Clusters
- func (*Base) Includes() []string
- func (b *Base) Label() string
- func (*Base) NeedsDevice() bool
- func (b *Base) SetLabel(label string)
- func (*Base) Template() string
- type CommonDeviceClusters
- type I2CConnection
- type IASZone
- type OnOff
- func (*OnOff) AppConfig() []appconfig.ConfigValue
- func (o *OnOff) ApplyOverlay(overlay *devicetree.DeviceTree) error
- func (*OnOff) CPPComponentType() string
- func (o *OnOff) Clusters() cluster.Clusters
- func (*OnOff) Extenders() []generator.Extender
- func (*OnOff) Includes() []string
- func (*OnOff) String() string
- func (*OnOff) Template() string
- func (*OnOff) WriteFiles() []generator.WriteFile
- type PowerConfiguration
- func (*PowerConfiguration) AppConfig() []appconfig.ConfigValue
- func (o *PowerConfiguration) ApplyOverlay(overlay *devicetree.DeviceTree) error
- func (*PowerConfiguration) CPPComponentType() string
- func (o *PowerConfiguration) Clusters() cluster.Clusters
- func (*PowerConfiguration) Includes() []string
- func (*PowerConfiguration) String() string
- func (*PowerConfiguration) Template() string
- func (*PowerConfiguration) WriteFiles() []generator.WriteFile
- type SensorType
- type SoilMoistureADC
- func (*SoilMoistureADC) AppConfig() []appconfig.ConfigValue
- func (o *SoilMoistureADC) ApplyOverlay(overlay *devicetree.DeviceTree) error
- func (*SoilMoistureADC) CPPComponentType() string
- func (o *SoilMoistureADC) Clusters() cluster.Clusters
- func (*SoilMoistureADC) Includes() []string
- func (*SoilMoistureADC) String() string
- func (*SoilMoistureADC) Template() string
- func (*SoilMoistureADC) WriteFiles() []generator.WriteFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
Type string
// Connection provides information about communication protocol.
Connection map[string]string
// contains filtered or unexported fields
}
Sensor defines all information necessary about the attached sensor.
func (*Base) AppConfig ¶
func (*Base) AppConfig() []appconfig.ConfigValue
func (*Base) ApplyOverlay ¶
func (*Base) ApplyOverlay(overlay *devicetree.DeviceTree) error
func (*Base) CPPComponentType ¶
func (*Base) Includes ¶
Includes is an optional include statements that will be written in main.cpp.
func (*Base) NeedsDevice ¶
type CommonDeviceClusters ¶
type CommonDeviceClusters struct {
*Base `yaml:",inline"`
}
func NewCommonDeviceClusters ¶
func NewCommonDeviceClusters() *CommonDeviceClusters
func (*CommonDeviceClusters) Clusters ¶
func (o *CommonDeviceClusters) Clusters() cluster.Clusters
func (*CommonDeviceClusters) String ¶
func (*CommonDeviceClusters) String() string
func (*CommonDeviceClusters) Template ¶
func (*CommonDeviceClusters) Template() string
type I2CConnection ¶
func (I2CConnection) Reg ¶
func (c I2CConnection) Reg() string
func (I2CConnection) UnitAddress ¶
func (c I2CConnection) UnitAddress() string
type IASZone ¶
type IASZone struct {
*Base `yaml:",inline"`
Button string `yaml:"button"`
ZoneType cluster.IasZoneType `yaml:"zone_type"`
}
func NewContact ¶
func NewContact() *IASZone
func (*IASZone) CPPComponentType ¶
func (*IASZone) WriteFiles ¶
type OnOff ¶
func (*OnOff) AppConfig ¶
func (*OnOff) AppConfig() []appconfig.ConfigValue
func (*OnOff) ApplyOverlay ¶
func (o *OnOff) ApplyOverlay(overlay *devicetree.DeviceTree) error
func (*OnOff) CPPComponentType ¶
func (*OnOff) WriteFiles ¶
type PowerConfiguration ¶
type PowerConfiguration struct {
*Base `yaml:",inline"`
cluster.PowerConfiguration `yaml:",inline"`
ADCPin devicetree.ADCPin `yaml:"adc_pin"`
}
func (*PowerConfiguration) AppConfig ¶
func (*PowerConfiguration) AppConfig() []appconfig.ConfigValue
func (*PowerConfiguration) ApplyOverlay ¶
func (o *PowerConfiguration) ApplyOverlay(overlay *devicetree.DeviceTree) error
func (*PowerConfiguration) CPPComponentType ¶
func (*PowerConfiguration) CPPComponentType() string
func (*PowerConfiguration) Clusters ¶
func (o *PowerConfiguration) Clusters() cluster.Clusters
func (*PowerConfiguration) Includes ¶
func (*PowerConfiguration) Includes() []string
func (*PowerConfiguration) String ¶
func (*PowerConfiguration) String() string
func (*PowerConfiguration) Template ¶
func (*PowerConfiguration) Template() string
func (*PowerConfiguration) WriteFiles ¶
func (*PowerConfiguration) WriteFiles() []generator.WriteFile
type SoilMoistureADC ¶
type SoilMoistureADC struct {
*Base `yaml:",inline"`
MinMoistureMv uint16 `yaml:"min_moisture_mv"`
MaxMoistureMv uint16 `yaml:"max_moisture_mv"`
ADCPin devicetree.ADCPin `yaml:"adc_pin"`
}
func (*SoilMoistureADC) AppConfig ¶
func (*SoilMoistureADC) AppConfig() []appconfig.ConfigValue
func (*SoilMoistureADC) ApplyOverlay ¶
func (o *SoilMoistureADC) ApplyOverlay(overlay *devicetree.DeviceTree) error
func (*SoilMoistureADC) CPPComponentType ¶
func (*SoilMoistureADC) CPPComponentType() string
func (*SoilMoistureADC) Clusters ¶
func (o *SoilMoistureADC) Clusters() cluster.Clusters
func (*SoilMoistureADC) Includes ¶
func (*SoilMoistureADC) Includes() []string
func (*SoilMoistureADC) String ¶
func (*SoilMoistureADC) String() string
func (*SoilMoistureADC) Template ¶
func (*SoilMoistureADC) Template() string
func (*SoilMoistureADC) WriteFiles ¶
func (*SoilMoistureADC) WriteFiles() []generator.WriteFile
Click to show internal directories.
Click to hide internal directories.