ble/net/gap.h header reference
[Bluetooth Low Energy library module]
The source code of this header can be browsed online.
Description [link]
This layer is not a layer per-se, but implements parts of the GAP behavior for devices.
In particular, this layer tries to enforce connection parameters if they are declared in the attached GATT DB.
This layer is expected to be bound to LLCP in the stack.
There is a generic implementation of this layer in the library that can be created through ble_gap_create.
Members [link]
Types [link]
- struct ble_gap_conn_params_update_s
- struct ble_gap_params_s
Function [link]
- struct ble_gap_conn_params_update_s * ble_gap_conn_params_update_s_from_task(void *x)
Macro [link]
Members detail [link]
#define BLE_GAP_CONN_PARAMS_UPDATE [link]
This macro is declared in ble/net/gap.h source file, line 59.
Network request type for updating connectino parameters.
#define BLE_GAP_H_ [link]
This macro is declared in ble/net/gap.h source file, line 21.
struct ble_gap_conn_params_update_s [link]
This struct is declared in ble/net/gap.h source file, line 70.
this struct defines a task the GAP layer may send to LLCP or L2CAP Signalling Layers for asking peer device to update its connection parameters. This is done whatever the side the connection we are on. LLCP and Signalling layers are responsible for taking relevant action.
Field | Description |
---|---|
struct net_task_s task; | |
uint16_t interval_min; | |
uint16_t interval_max; | |
uint16_t slave_latency; | |
uint16_t timeout; |
struct ble_gap_conn_params_update_s * ble_gap_conn_params_update_s_from_task(void *x) [link]
This function is declared in ble/net/gap.h source file, line 78.
struct ble_gap_params_s [link]
This struct is declared in ble/net/gap.h source file, line 50.
this struct defines parameters for instanciating a GAP layer.
Field | Description |
---|---|
struct ble_gattdb_s * db; | A pointer to GATT DB exposed by device. |
struct net_layer_s * sig; | A pointer to L2CAP signalling layer. |