hci.h (67f708e073a3b5c01fde35c3f01722ed61d4b6a3) hci.h (461a2bc4b085abdabe6c7af40c278636bcefb607)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 232 unchanged lines hidden (view full) ---

241 OPEN,
242 SEND_DISCONNECT,
243 SENT_DISCONNECT,
244 RECEIVED_DISCONNECTION_COMPLETE
245} CONNECTION_STATE;
246
247// bonding flags
248enum {
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 232 unchanged lines hidden (view full) ---

241 OPEN,
242 SEND_DISCONNECT,
243 SENT_DISCONNECT,
244 RECEIVED_DISCONNECTION_COMPLETE
245} CONNECTION_STATE;
246
247// bonding flags
248enum {
249 BONDING_REQUEST_REMOTE_FEATURES_PAGE_0 = 0x0001,
250 BONDING_REQUEST_REMOTE_FEATURES_PAGE_1 = 0x0002,
251 BONDING_REQUEST_REMOTE_FEATURES_PAGE_2 = 0x0004,
252 BONDING_RECEIVED_REMOTE_FEATURES = 0x0008,
253 BONDING_REMOTE_SUPPORTS_SSP_CONTROLLER = 0x0010,
254 BONDING_REMOTE_SUPPORTS_SSP_HOST = 0x0020,
255 BONDING_REMOTE_SUPPORTS_SC_CONTROLLER = 0x0040,
256 BONDING_REMOTE_SUPPORTS_SC_HOST = 0x0080,
257 BONDING_DISCONNECT_SECURITY_BLOCK = 0x0100,
258 BONDING_DISCONNECT_DEDICATED_DONE = 0x0200,
259 BONDING_SEND_AUTHENTICATE_REQUEST = 0x0400,
260 BONDING_SEND_ENCRYPTION_REQUEST = 0x0800,
261 BONDING_SEND_READ_ENCRYPTION_KEY_SIZE = 0x1000,
262 BONDING_DEDICATED = 0x2000,
263 BONDING_EMIT_COMPLETE_ON_DISCONNECT = 0x4000,
264 BONDING_SENT_AUTHENTICATE_REQUEST = 0x8000
249 // remote features
250 BONDING_REMOTE_FEATURES_QUERY_ACTIVE = 0x0001,
251 BONDING_REQUEST_REMOTE_FEATURES_PAGE_0 = 0x0002,
252 BONDING_REQUEST_REMOTE_FEATURES_PAGE_1 = 0x0004,
253 BONDING_REQUEST_REMOTE_FEATURES_PAGE_2 = 0x0008,
254 BONDING_RECEIVED_REMOTE_FEATURES = 0x0010,
255 BONDING_REMOTE_SUPPORTS_SSP_CONTROLLER = 0x0020,
256 BONDING_REMOTE_SUPPORTS_SSP_HOST = 0x0040,
257 BONDING_REMOTE_SUPPORTS_SC_CONTROLLER = 0x0080,
258 BONDING_REMOTE_SUPPORTS_SC_HOST = 0x0100,
259 // other
260 BONDING_DISCONNECT_SECURITY_BLOCK = 0x0200,
261 BONDING_DISCONNECT_DEDICATED_DONE = 0x0400,
262 BONDING_SEND_AUTHENTICATE_REQUEST = 0x0800,
263 BONDING_SENT_AUTHENTICATE_REQUEST = 0x1000,
264 BONDING_SEND_ENCRYPTION_REQUEST = 0x2000,
265 BONDING_SEND_READ_ENCRYPTION_KEY_SIZE = 0x4000,
266 BONDING_DEDICATED = 0x8000,
267 BONDING_EMIT_COMPLETE_ON_DISCONNECT = 0x10000,
265};
266
267typedef enum {
268 BLUETOOTH_OFF = 1,
269 BLUETOOTH_ON,
270 BLUETOOTH_ACTIVE
271} BLUETOOTH_STATE;
272

--- 251 unchanged lines hidden (view full) ---

524
525 // role: 0 - master, 1 - slave
526 uint8_t role;
527
528 // connection state
529 CONNECTION_STATE state;
530
531 // bonding
268};
269
270typedef enum {
271 BLUETOOTH_OFF = 1,
272 BLUETOOTH_ON,
273 BLUETOOTH_ACTIVE
274} BLUETOOTH_STATE;
275

--- 251 unchanged lines hidden (view full) ---

527
528 // role: 0 - master, 1 - slave
529 uint8_t role;
530
531 // connection state
532 CONNECTION_STATE state;
533
534 // bonding
532 uint16_t bonding_flags;
535 uint32_t bonding_flags;
533 uint8_t bonding_status;
534
535 // encryption key size (in octets)
536 uint8_t encryption_key_size;
537
538 // requested security level
539 gap_security_level_t requested_security_level;
540

--- 938 unchanged lines hidden ---
536 uint8_t bonding_status;
537
538 // encryption key size (in octets)
539 uint8_t encryption_key_size;
540
541 // requested security level
542 gap_security_level_t requested_security_level;
543

--- 938 unchanged lines hidden ---