I2cServer (i2c_server v0.1.2) View Source
I2cServer
creates a separate process for each I2C device. A server process
is identified with a composite key of bus name and address.
Link to this section Summary
Functions
Returns the module atom of currently-used registry.
Returns the PID for a specified bus name and bus address.
Link to this section Types
Specs
registry() :: I2cServer.DeviceRegistry | :global | atom()
Link to this section Functions
Specs
read(GenServer.server(), integer()) :: any()
Specs
registry() :: registry()
Returns the module atom of currently-used registry.
Specs
Returns the PID for a specified bus name and bus address.
Specs
write(GenServer.server(), iodata()) :: any()
Specs
write(GenServer.server(), integer(), binary() | integer()) :: any()
Specs
write_read(GenServer.server(), binary() | integer(), integer()) :: any()