[][src]Function mraa_sys::mraa_uart_ow_rom_search

pub unsafe extern "C" fn mraa_uart_ow_rom_search(
    dev: mraa_uart_ow_context,
    start: mraa_boolean_t,
    id: *mut u8
) -> mraa_result_t

Begin a rom code search of the 1-wire bus. This function implements the 1-wire search algorithm. See the uart_ow.c example for an idea on how to use this function to identify all devices present on the bus.

@param dev uart_ow context @param start true to start a new search from scratch, false to continue an existing search @param id the 8-byte rom code id of the current matched device when a device is found @return one of the mraa_result_t values