Documentation ¶
Overview ¶
Package pca9548 is a driver for an 8 port I²C multiplexer that is available from multiple vendors. The main features of this multiplexer is that its has 8 channels and is capable of voltage level translation.
Adjusting the Bus CLK ¶
The bus clock is slaved to the master bus clock, different clock for each port is currently not supported. The Maximum clock for this device is 400kHz.
Datasheet ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultOpts = Opts{Addr: 0x70}
DefaultOpts is the recommended default options.
Functions ¶
This section is empty.
Types ¶
type Dev ¶
type Dev struct {
// contains filtered or unexported fields
}
Dev is handle to a pca9548 I²C Multiplexer.
func (*Dev) RegisterPorts ¶
RegisterPorts registers multiplexer ports with the host. These ports can then be used as any other i2c.Bus. Busses will be named "alias0", "alias1" etc. If using more than one multiplexer note that the alias must be unique. Returns slice of ports names registered and error.