zephyr::raw

Function bt_le_per_adv_sync_get_index

Source
pub unsafe extern "C" fn bt_le_per_adv_sync_get_index(
    per_adv_sync: *mut bt_le_per_adv_sync,
) -> u8
Expand description

@brief Get array index of an periodic advertising sync object.

This function is get the index of an array of periodic advertising sync objects. The array has CONFIG_BT_PER_ADV_SYNC_MAX elements.

@param per_adv_sync The periodic advertising sync object.

@return Index of the periodic advertising sync object. The range of the returned value is 0..CONFIG_BT_PER_ADV_SYNC_MAX-1