pub unsafe extern "C" fn HAL_ReadSPI(
    port: Type,
    buffer: *mut u8,
    count: i32
) -> i32
Expand description

Executes a read from the device.

This method does not write any data out to the device.

Most spi devices will require a register address to be written before they begin returning data.

@param port The number of the port to use. 0-3 for Onboard CS0-CS2, 4 for MXP @param buffer A pointer to the array of bytes to store the data read from the device. @param count The number of bytes to read in the transaction. [1..7] @return Number of bytes read. -1 for error.