Documentation ¶
Overview ¶
Package mux provides drivers for hardware multiplexers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GPIO GPIOConfig `yaml:"gpio"` Debug bool `yaml:"debug"` }
Config holds configuration for multiplexer devices.
type Digital ¶
type Digital struct {
// contains filtered or unexported fields
}
Digital implements Mux for a digital multiplexer.
func NewDigital ¶
NewDigital creates a new Digital multiplexer using the given pins in the given order for selection.
type GPIOConfig ¶
type GPIOConfig struct {
CS []string `yaml:"cs"`
}
GPIOConfig defines the GPIO pines to use as multiplexer lines.
Click to show internal directories.
Click to hide internal directories.