[−][src]Function mynewt::hw::hal::hal_spi_tx_val
pub unsafe extern "C" fn hal_spi_tx_val(spi_num: c_int, val: u16) -> u16
Blocking call to send a value on the SPI. Returns the value received from the SPI slave.
MASTER: Sends the value and returns the received value from the slave. SLAVE: Invalid API. Returns 0xFFFF
spi_num
: Spi interface to useval
: Value to send
Return: uint16_t Value received on SPI interface from slave. Returns 0xFFFF if called when the SPI is configured to be a slave