14#ifndef BLE_CONN_PARAMS_H__
15#define BLE_CONN_PARAMS_H__
uint32_t ble_conn_params_data_length_get(uint16_t conn_handle, struct ble_conn_params_data_length *dl)
Retrieve the current GAP data length for a given connection.
uint32_t ble_conn_params_data_length_set(uint16_t conn_handle, struct ble_conn_params_data_length dl)
Initiate a GAP data length update procedure for a given connection.
uint32_t ble_conn_params_phy_radio_mode_set(uint16_t conn_handle, ble_gap_phys_t phy_pref)
Initiate a GAP radio PHY mode update procedure for a given connection.
uint32_t ble_conn_params_phy_radio_mode_get(uint16_t conn_handle, ble_gap_phys_t *phy_pref)
Retrieve the current GAP radio PHY mode for a given connection.
uint32_t ble_conn_params_att_mtu_get(uint16_t conn_handle, uint16_t *att_mtu)
Retrieve the current ATT MTU for a given connection.
void(* ble_conn_params_evt_handler_t)(const struct ble_conn_params_evt *evt)
Bluetooth LE connection parameters event handler prototype.
Definition ble_conn_params.h:118
ble_conn_params_evt_type
Bluetooth LE connection parameter event types.
Definition ble_conn_params.h:27
@ BLE_CONN_PARAMS_EVT_DATA_LENGTH_UPDATED
GAP data length update procedure completed.
Definition ble_conn_params.h:43
@ BLE_CONN_PARAMS_EVT_RADIO_PHY_MODE_UPDATED
GAP radio phy mode update procedure completed.
Definition ble_conn_params.h:47
@ BLE_CONN_PARAMS_EVT_REJECTED
Could not agree on desired connection parameters.
Definition ble_conn_params.h:35
@ BLE_CONN_PARAMS_EVT_ERROR
Error.
Definition ble_conn_params.h:51
@ BLE_CONN_PARAMS_EVT_UPDATED
Connection parameters updated.
Definition ble_conn_params.h:31
@ BLE_CONN_PARAMS_EVT_ATT_MTU_UPDATED
ATT MTU exchange procedure completed.
Definition ble_conn_params.h:39
uint32_t ble_conn_params_override(uint16_t conn_handle, const ble_gap_conn_params_t *conn_params)
Override GAP connection parameters for given peer.
uint32_t ble_conn_params_att_mtu_set(uint16_t conn_handle, uint16_t att_mtu)
Initiate an ATT MTU exchange procedure for a given connection.
uint32_t ble_conn_params_evt_handler_set(ble_conn_params_evt_handler_t handler)
Set a handler function to receive events.
uint8_t tx
TX data length (seen from the device).
Definition ble_conn_params.h:61
uint8_t rx
RX data length (seen from the device).
Definition ble_conn_params.h:65
Data length.
Definition ble_conn_params.h:57
struct ble_conn_params_data_length data_length
Negotiated GAP Data length.
Definition ble_conn_params.h:98
struct ble_conn_params_evt::@5::@7 error
uint16_t att_mtu
Negotiated GATT ATT MTU.
Definition ble_conn_params.h:92
uint32_t reason
Error reason.
Definition ble_conn_params.h:110
enum ble_conn_params_evt_type evt_type
Event type.
Definition ble_conn_params.h:75
ble_gap_conn_params_t conn_params
Negotiated connection parameters.
Definition ble_conn_params.h:86
uint16_t conn_handle
Connection handle.
Definition ble_conn_params.h:79
ble_gap_evt_phy_update_t phy_update_evt
Negotiated radio PHY mode and procedure status.
Definition ble_conn_params.h:104
Bluetooth LE connection parameter event.
Definition ble_conn_params.h:71