spi_mode() = #{cpol => low, cpha => leading} | #{cpol => low, cpha => trailing} | #{cpol => high, cpha => leading} | #{cpol => high, cpha => trailing}
spi_slot() = spi1 | spi2
| send_recv/3 | Send request and receive response. |
| send_recv/5 | Send request and receive response. |
send_recv(Slot::spi_slot(), Mode::spi_mode(), Req::binary()) -> Response::binary()
Send request and receive response.
send_recv(Slot::spi_slot(), Mode::spi_mode(), Req::binary(), Skip::integer(), Pad::integer()) -> Response::binary()
Send request and receive response.
The send data is Req appended with Pad times <<16#ff>>, i.e, Pad * 8
bits of value 1.
Skip denotes the number of bytes skipped at the beginning of
the received response.
Generated by EDoc