pub unsafe extern "C" fn bt_le_per_adv_sync_delete(
per_adv_sync: *mut bt_le_per_adv_sync,
) -> i32
Expand description
@brief Delete periodic advertising sync.
Delete the periodic advertising sync object. Can be called regardless of the state of the sync. If the syncing is currently syncing, the syncing is cancelled. If the sync has been established, it is terminated. The periodic advertising sync object will be invalidated afterwards.
If the state of the sync object is syncing, then a new periodic advertising sync object may not be created until the controller has finished canceling this object.
@param per_adv_sync The periodic advertising sync object.
@return Zero on success or (negative) error code otherwise.