riot_sys::bindgen

Function bluetil_ad_find_and_cmp

Source
pub unsafe extern "C" fn bluetil_ad_find_and_cmp(
    ad: *const bluetil_ad_t,
    type_: u8,
    val: *const c_void,
    val_len: size_t,
) -> c_int
Expand description

@brief Find a specific field and compare its value against the given data

@param[in] ad advertising data descriptor @param[in] type field to search for @param[in] val data to compare against @param[in] val_len size of @p val in byte

@return true if the field was found and its data is equal to the given data @return false if the field was not found or the data is not equal