Name
spi_tx_rx —
transmit and receive a byte
Synopsis
#include <spi.h>
uint8_t val
;
Arguments
val
the byte to be transmitted
Description
Transmit and receive a byte, to and from the SPI slave. The
parameter val
specified the byte to be transmitted. Returns the
byte received.