CircuitsSim.SPI.SPIDevice protocol (circuits_sim v0.1.2)
View SourceA protocol for SPI devices
Summary
Types
@type t() :: term()
All the types that implement this protocol.
Functions
Handle an user message
User messages are used to modify the state of the simulated device outside of SPI. This can be used to simulate real world changes like temperature changes affecting a simulated temperature sensor. Another use is as a hook for getting internal state.
@spec render(t()) :: IO.ANSI.ansidata()
Return the internal state as ASCII art
Transfer data