pub unsafe extern "C" fn hal_get_pin_value_by_name(
    name: *const c_char,
    type_: *mut hal_type_t,
    data: *mut *mut hal_data_u,
    connected: *mut bool
) -> c_int
Expand description

‘hal_get_pin_value_by_name()’ gets the value of any arbitrary HAL pin by pin name.

The ‘type’ and ‘data’ args are pointers to the returned values. The function returns 0 if successful, or -1 on error. If ‘connected’ is non-NULL, its value will be true if a signal is connected.