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 1280 80 #ifdef BLE_L2CAP_CONF_NODE_FRAG_LEN 81 #define BLE_L2CAP_NODE_FRAG_LEN BLE_L2CAP_CONF_NODE_FRAG_LEN 83 #ifdef BLE_MODE_CONF_CONN_MAX_PACKET_SIZE 84 #define BLE_L2CAP_NODE_FRAG_LEN BLE_MODE_CONF_CONN_MAX_PACKET_SIZE 86 #define BLE_L2CAP_NODE_FRAG_LEN 256 90 #define L2CAP_CREDIT_NEW (BLE_L2CAP_NODE_MTU / BLE_L2CAP_NODE_FRAG_LEN) 91 #define L2CAP_CREDIT_THRESHOLD 2 93 #define L2CAP_INIT_INTERVAL (2 * CLOCK_SECOND) 96 #ifdef BLE_CONF_CONNECTION_INTERVAL 97 #define CONNECTION_INTERVAL_MS BLE_CONF_CONNECTION_INTERVAL 99 #define CONNECTION_INTERVAL_MS 125 103 #ifdef BLE_CONF_CONNECTION_SLAVE_LATENCY 104 #define CONNECTION_SLAVE_LATENCY BLE_CONF_CONNECTION_SLAVE_LATENCY 106 #define CONNECTION_SLAVE_LATENCY 0 110 #define CONNECTION_TIMEOUT 42 112 #define L2CAP_FIRST_HEADER_SIZE 6 113 #define L2CAP_SUBSEQ_HEADER_SIZE 4 116 #ifdef BLE_MODE_CONF_MAX_CONNECTIONS 117 #define L2CAP_CHANNELS BLE_MODE_CONF_MAX_CONNECTIONS 119 #define L2CAP_CHANNELS 1 122 #define L2CAP_CHANNELS 1 125 extern const struct mac_driver ble_l2cap_driver;
The structure of a MAC protocol driver in Contiki.
Header file for the radio API