hci.h (07e010b651aa0c21250aae7989f803919cab78d2) hci.h (891b9fc2698ee1660239b66b4ecf3d9c2affaae8)
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

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

192 SEND_USER_PASSKEY_REPLY = 0x0400,
193
194 // pairing status
195 LEGACY_PAIRING_ACTIVE = 0x2000,
196 SSP_PAIRING_ACTIVE = 0x4000,
197
198 // connection status
199 CONNECTION_ENCRYPTED = 0x8000,
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

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

192 SEND_USER_PASSKEY_REPLY = 0x0400,
193
194 // pairing status
195 LEGACY_PAIRING_ACTIVE = 0x2000,
196 SSP_PAIRING_ACTIVE = 0x4000,
197
198 // connection status
199 CONNECTION_ENCRYPTED = 0x8000,
200
201 // errands
202 READ_RSSI = 0x10000,
200} hci_authentication_flags_t;
201
202/**
203 * Connection State
204 */
205typedef enum {
206 SEND_CREATE_CONNECTION = 0,
207 SENT_CREATE_CONNECTION,

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

507 uint8_t sco_rx_valid;
508
509 // generate sco can send now based on received packets, using timeout below
510 uint8_t sco_tx_ready;
511
512 btstack_timer_source_t timeout_sco;
513#endif /* ENABLE_CLASSIC */
514
203} hci_authentication_flags_t;
204
205/**
206 * Connection State
207 */
208typedef enum {
209 SEND_CREATE_CONNECTION = 0,
210 SENT_CREATE_CONNECTION,

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

510 uint8_t sco_rx_valid;
511
512 // generate sco can send now based on received packets, using timeout below
513 uint8_t sco_tx_ready;
514
515 btstack_timer_source_t timeout_sco;
516#endif /* ENABLE_CLASSIC */
517
515 // errands
518 // authentication and other errands
516 uint32_t authentication_flags;
517
518 btstack_timer_source_t timeout;
519 uint32_t authentication_flags;
520
521 btstack_timer_source_t timeout;
519
522
520 // timeout in system ticks (HAVE_EMBEDDED_TICK) or milliseconds (HAVE_EMBEDDED_TIME_MS)
521 uint32_t timestamp;
522
523 // ACL packet recombination - PRE_BUFFER + ACL Header + ACL payload
524 uint8_t acl_recombination_buffer[HCI_INCOMING_PRE_BUFFER_SIZE + 4 + HCI_ACL_BUFFER_SIZE];
525 uint16_t acl_recombination_pos;
526 uint16_t acl_recombination_length;
527

--- 710 unchanged lines hidden ---
523 // timeout in system ticks (HAVE_EMBEDDED_TICK) or milliseconds (HAVE_EMBEDDED_TIME_MS)
524 uint32_t timestamp;
525
526 // ACL packet recombination - PRE_BUFFER + ACL Header + ACL payload
527 uint8_t acl_recombination_buffer[HCI_INCOMING_PRE_BUFFER_SIZE + 4 + HCI_ACL_BUFFER_SIZE];
528 uint16_t acl_recombination_pos;
529 uint16_t acl_recombination_length;
530

--- 710 unchanged lines hidden ---