[][src]Function wpilib_sys::bindings::HAL_InitializeRelayPort

pub unsafe extern "C" fn HAL_InitializeRelayPort(
    portHandle: HAL_PortHandle,
    fwd: HAL_Bool,
    status: *mut i32
) -> HAL_RelayHandle

Initializes a relay.

Note this call will only initialize either the forward or reverse port of the relay. If you need both, you will need to initialize 2 relays.

@param portHandle the port handle to initialize @param fwd true for the forward port, false for the reverse port @return the created relay handle