[][src]Function wpilib_sys::bindings::HAL_InitializeSPI

pub unsafe extern "C" fn HAL_InitializeSPI(port: Type, status: *mut i32)

Initializes the SPI port. Opens the port if necessary and saves the handle.

If opening the MXP port, also sets up the channel functions appropriately.

@param port The number of the port to use. 0-3 for Onboard CS0-CS3, 4 for MXP