[−][src]Function wpilib_sys::bindings::HAL_TransactionSPI
pub unsafe extern "C" fn HAL_TransactionSPI(
port: Type,
dataToSend: *const u8,
dataReceived: *mut u8,
size: i32
) -> i32
Performs an SPI send/receive transaction.
This is a lower-level interface to the spi hardware giving you more control over each transaction.
@param port The number of the port to use. 0-3 for Onboard CS0-CS2, 4 for MXP @param dataToSend Buffer of data to send as part of the transaction. @param dataReceived Buffer to read data into. @param size Number of bytes to transfer. [0..7] @return Number of bytes transferred, -1 for error