gap.h (aacb1081b47e305a2a81c7e7330903da74309100) | gap.h (a3a7e5859d7b63b51f4c51988e04e2ff3313f516) |
---|---|
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 --- 250 unchanged lines hidden (view full) --- 259 uint8_t next_bis; 260 uint8_t status; 261 } state_vars; 262 uint8_t num_bis; 263 hci_con_handle_t bis_con_handles[MAX_NR_BIS]; 264 const le_audio_big_sync_params_t * params; 265} le_audio_big_sync_t; 266 | 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 --- 250 unchanged lines hidden (view full) --- 259 uint8_t next_bis; 260 uint8_t status; 261 } state_vars; 262 uint8_t num_bis; 263 hci_con_handle_t bis_con_handles[MAX_NR_BIS]; 264 const le_audio_big_sync_params_t * params; 265} le_audio_big_sync_t; 266 |
267// -- Connected Isochronuous Group CIG 268 269typedef enum { 270 LE_AUDIO_CIG_STATE_CREATE, 271 LE_AUDIO_CIG_STATE_W4_ESTABLISHED, 272// LE_AUDIO_CIG_STATE_SETUP_ISO_PATH, 273// LE_AUDIO_CIG_STATE_W4_SETUP_ISO_PATH, 274// LE_AUDIO_CIG_STATE_W4_SETUP_ISO_PATH_THEN_TERMINATE, 275// LE_AUDIO_CIG_STATE_SETUP_ISO_PATHS_FAILED, 276 LE_AUDIO_CIG_STATE_ACTIVE, 277// LE_AUDIO_CIG_STATE_TERMINATE, 278// LE_AUDIO_CIG_STATE_W4_TERMINATED_AFTER_SETUP_FAILED, 279// LE_AUDIO_CIG_STATE_W4_TERMINATED, 280} le_audio_cig_state_t; 281 282typedef struct { 283 uint8_t cis_id; 284 uint16_t max_sdu_c_to_p; 285 uint16_t max_sdu_p_to_c; 286 uint8_t phy_c_to_p; 287 uint8_t phy_p_to_c; 288 uint8_t rtn_c_to_p; 289 uint8_t rtn_p_to_c; 290} le_audio_cis_params_t; 291 292typedef struct { 293 uint8_t cig_id; 294 uint32_t sdu_interval_c_to_p; 295 uint32_t sdu_interval_p_to_c; 296 uint8_t worst_case_sca; 297 uint8_t packing; 298 uint8_t framing; 299 uint16_t max_transport_latency_c_to_p; 300 uint16_t max_transport_latency_p_to_c; 301 uint8_t num_cis; 302 le_audio_cis_params_t cis_params[MAX_NR_CIS]; 303} le_audio_cig_params_t; 304 305typedef struct { 306 btstack_linked_item_t item; 307 uint8_t cig_id; 308 le_audio_cig_params_t * params; 309 le_audio_cig_state_t state; 310 union { 311 uint8_t next_cis; 312 uint8_t status; 313 } state_vars; 314 uint8_t num_cis; 315 hci_con_handle_t cis_con_handles[MAX_NR_CIS]; 316 // request to send 317 bool can_send_now_requested; 318} le_audio_cig_t; 319 |
|
267/* API_START */ 268 269// Classic + LE 270 271/** 272 * @brief Read RSSI 273 * @param con_handle 274 * @events: GAP_EVENT_RSSI_MEASUREMENT --- 996 unchanged lines hidden --- | 320/* API_START */ 321 322// Classic + LE 323 324/** 325 * @brief Read RSSI 326 * @param con_handle 327 * @events: GAP_EVENT_RSSI_MEASUREMENT --- 996 unchanged lines hidden --- |