btstack_event.h (076c457067892bb8394d821070ece138c6ffcdfc) | btstack_event.h (71fd255d6139194e0c2e26430392f229aeaeb463) |
---|---|
1/* 2 * Copyright (C) 2016 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 --- 1445 unchanged lines hidden (view full) --- 1454 * @note: btstack_type 1 1455 */ 1456static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1457 return event[2]; 1458} 1459 1460 1461/** | 1/* 2 * Copyright (C) 2016 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 --- 1445 unchanged lines hidden (view full) --- 1454 * @note: btstack_type 1 1455 */ 1456static inline uint8_t btstack_event_nr_connections_changed_get_number_connections(const uint8_t * event){ 1457 return event[2]; 1458} 1459 1460 1461/** |
1462 * @brief Get field discoverable from event BTSTACK_EVENT_DISCOVERABLE_ENABLED | 1462 * @brief Get field discoverable from event BTSTACK_EVENT_SCAN_MODE_CHANGED |
1463 * @param event packet 1464 * @return discoverable 1465 * @note: btstack_type 1 1466 */ | 1463 * @param event packet 1464 * @return discoverable 1465 * @note: btstack_type 1 1466 */ |
1467static inline uint8_t btstack_event_discoverable_enabled_get_discoverable(const uint8_t * event){ | 1467static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){ |
1468 return event[2]; 1469} 1470 1471/** 1472 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1473 * @param event packet 1474 * @return active 1475 * @note: btstack_type 1 --- 13120 unchanged lines hidden --- | 1468 return event[2]; 1469} 1470 1471/** 1472 * @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE 1473 * @param event packet 1474 * @return active 1475 * @note: btstack_type 1 --- 13120 unchanged lines hidden --- |