[][src]Function wpilib_sys::bindings::HAL_ReadSPIAutoReceivedData

pub unsafe extern "C" fn HAL_ReadSPIAutoReceivedData(
    port: Type,
    buffer: *mut u32,
    numToRead: i32,
    timeout: f64,
    status: *mut i32
) -> i32

Reads data received by the SPI accumulator. Each received data sequence consists of a timestamp followed by the received data bytes, one byte per word (in the least significant byte). The length of each received data sequence is the same as the combined dataSize + zeroSize set in HAL_SetSPIAutoTransmitData.

@param port The number of the port to use. 0-3 for Onboard CS0-CS2, 4 for MXP. @param buffer The buffer to store the data into. @param numToRead The number of words to read. @param timeout The read timeout (in seconds). @return The number of words actually read.