Loadable Function: rddata = spi_writeAndRead (spi, wrdata)

Write data to a spi slave device and then read same number of values.

Inputs

spi - instance of octave_spi class.
wrdata - data, of type uint8, to be written to the slave device.

Outputs

Upon successful completion, spi_writeAndRead() shall return the bytes read.

Package: instrument-control