S132 SoftDevice v5.0.0
Modules | Macros


 Configuration defaults.
 User Memory Types
 Vendor Specific UUID counts


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

Detailed Description

Macro Definition Documentation

#define BLE_EVT_LEN_MAX (   ATT_MTU)
sizeof(ble_evt_t), \
offsetof(ble_evt_t, evt.gattc_evt.params.rel_disc_rsp.includes) + ((ATT_MTU) - 2) / 6 * sizeof(ble_gattc_include_t), \
offsetof(ble_evt_t, evt.gattc_evt.params.attr_info_disc_rsp.info.attr_info16) + ((ATT_MTU) - 2) / 4 * sizeof(ble_gattc_attr_info16_t) \
) \

Maximum possible length for BLE Events.

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.

Documentation feedback | Developer Zone | Subscribe | Updated