[][src]Function wpilib_sys::bindings::HAL_WriteSPI

pub unsafe extern "C" fn HAL_WriteSPI(
    port: Type,
    dataToSend: *const u8,
    sendSize: i32
) -> i32

Executes a write transaction with the device.

Writes to a device and wait until the transaction is complete.

@param port The number of the port to use. 0-3 for Onboard CS0-CS2, 4 for MXP @param datToSend The data to write to the register on the device. @param sendSize The number of bytes to be written @return The number of bytes written. -1 for an error