Defines

S113 SoftDevice v7.3.0 API

S113 SoftDevice v7.3.0

Macros

#define BLE_EVT_PTR_ALIGNMENT 4
Required pointer alignment for BLE Events.
#define BLE_MAX (a, b)   ((a) < (b) ? (b) : (a))
Leaves the maximum of the two arguments.
#define BLE_EVT_LEN_MAX (ATT_MTU)
Maximum possible length for BLE Events. More...

Detailed Description

Macro Definition Documentation

#define BLE_EVT_LEN_MAX ( ATT_MTU )
Value:
( \
offsetof( ble_evt_t , evt. gattc_evt . params . prim_srvc_disc_rsp . services ) + ((ATT_MTU) - 1) / 4 * sizeof ( ble_gattc_service_t ) \
)

Maximum possible length for BLE Events.

Note
The highest value used for ble_gatt_conn_cfg_t::att_mtu in any connection configuration shall be used as a parameter. If that value has not been configured for any connections then BLE_GATT_ATT_MTU_DEFAULT must be used instead.