[][src]Function wpilib_sys::bindings::HAL_WriteI2C

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

Executes a write transaction with the device.

Writes a single byte to a register on a device and wait until the transaction is complete.

@param port The I2C port, 0 for the on-board, 1 for the MXP. @param registerAddress The address of the register on the device to be written. @param data The byte to write to the register on the device. @return >= 0 on success or -1 on transfer abort.