48#ifdef BLE_CONF_DEVICE_NAME
49#define BLE_DEVICE_NAME BLE_CONF_DEVICE_NAME
51#define BLE_DEVICE_NAME "BLE device name"
55#ifdef BLE_CONF_ADV_INTERVAL
56#define BLE_ADV_INTERVAL BLE_CONF_ADV_INTERVAL
58#define BLE_ADV_INTERVAL 50
61#define BLE_SLAVE_CONN_INTERVAL_MIN 0x0150
62#define BLE_SLAVE_CONN_INTERVAL_MAX 0x01F0
63#define L2CAP_SIGNAL_CHANNEL 0x0005
64#define L2CAP_FLOW_CHANNEL 0x0041
65#define L2CAP_CODE_CONN_UPDATE_REQ 0x12
66#define L2CAP_CODE_CONN_UPDATE_RSP 0x13
67#define L2CAP_CODE_CONN_REQ 0x14
68#define L2CAP_CODE_CONN_RSP 0x15
69#define L2CAP_CODE_CREDIT 0x16
70#define L2CAP_IPSP_PSM 0x0023
73#ifdef BLE_L2CAP_CONF_NODE_MTU
74#define BLE_L2CAP_NODE_MTU BLE_L2CAP_CONF_NODE_MTU
76#define BLE_L2CAP_NODE_MTU PACKETBUF_SIZE
79#if BLE_L2CAP_NODE_MTU > PACKETBUF_SIZE
80#error BLE_L2CAP_NODE_MTU exceeds the PACKETBUF_SIZE
84#ifdef BLE_L2CAP_CONF_NODE_FRAG_LEN
85#define BLE_L2CAP_NODE_FRAG_LEN BLE_L2CAP_CONF_NODE_FRAG_LEN
87#ifdef BLE_MODE_CONF_CONN_MAX_PACKET_SIZE
88#define BLE_L2CAP_NODE_FRAG_LEN BLE_MODE_CONF_CONN_MAX_PACKET_SIZE
90#define BLE_L2CAP_NODE_FRAG_LEN 256
94#define L2CAP_CREDIT_NEW (BLE_L2CAP_NODE_MTU / BLE_L2CAP_NODE_FRAG_LEN)
95#define L2CAP_CREDIT_THRESHOLD 2
97#define L2CAP_INIT_INTERVAL (2 * CLOCK_SECOND)
100#ifdef BLE_CONF_CONNECTION_INTERVAL
101#define CONNECTION_INTERVAL_MS BLE_CONF_CONNECTION_INTERVAL
103#define CONNECTION_INTERVAL_MS 125
107#ifdef BLE_CONF_CONNECTION_SLAVE_LATENCY
108#define CONNECTION_SLAVE_LATENCY BLE_CONF_CONNECTION_SLAVE_LATENCY
110#define CONNECTION_SLAVE_LATENCY 0
114#define CONNECTION_TIMEOUT 42
116#define L2CAP_FIRST_HEADER_SIZE 6
117#define L2CAP_SUBSEQ_HEADER_SIZE 4
120#ifdef BLE_MODE_CONF_MAX_CONNECTIONS
121#define L2CAP_CHANNELS BLE_MODE_CONF_MAX_CONNECTIONS
123#define L2CAP_CHANNELS 1
126#define L2CAP_CHANNELS 1
129extern const struct mac_driver ble_l2cap_driver;
Header file for the radio API.
The structure of a MAC protocol driver in Contiki.