Skip to contents

Send a packet of bytes over the SPI bus and read the result.

Usage

get_SPI_bytes(SPI.bus.wrapper, message, num.bytes)

Arguments

SPI.bus.wrapper

feature wrapper as returned by function rOmniDriver::get_feature_controller_SPI_bus

message

bytes, array of bytes with maximum length of 62.

num.bytes

numeric Number of bytes, 1..62.

Value

After writing to SPI, the spectrometer immediately reads from it. The resulting Byte array is returned.

Details

Several spectrometers have an I2C bus accesible through the auxiliary connector which can be used to control accesories. The I2C bus in Ocean Insight spectrometers is not intended to be used to control the spectrometer or retrieve data but instead to control and access other accessories with the spectrometer acting as middle man.

See also