Function bt_le_per_adv_sync_cb_register

Source
pub unsafe extern "C" fn bt_le_per_adv_sync_cb_register(
    cb: *mut bt_le_per_adv_sync_cb,
) -> i32
Expand description

@brief Register periodic advertising sync callbacks.

Adds the callback structure to the list of callback structures for periodic advertising syncs.

This callback will be called for all periodic advertising sync activity, such as synced, terminated and when data is received.

@param cb Callback struct. Must point to memory that remains valid.

@retval 0 Success. @retval -EEXIST if @p cb was already registered.