hfp.c (efda0b48f920fa795cb4c2d0cf0c4acf184fb858) hfp.c (fffdd288575b1b4b1bf0e7fec3011e209f5de43f)
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

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

30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * Please inquire about commercial licensing options at
34 * [email protected]
35 *
36 */
37
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

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

30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * Please inquire about commercial licensing options at
34 * [email protected]
35 *
36 */
37
38// *****************************************************************************
39//
40// Minimal setup for HFP Audio Gateway (AG) unit (!! UNDER DEVELOPMENT !!)
41//
42// *****************************************************************************
43
44#include "btstack_config.h"
45
46#include <stdint.h>
47#include <stdio.h>
48#include <stdlib.h>
49#include <string.h>
50#include <inttypes.h>

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

289 hfp_connection->codec_confirmed = 0;
290
291 hfp_connection->establish_audio_connection = 0;
292 hfp_connection->call_waiting_notification_enabled = 0;
293 hfp_connection->command = HFP_CMD_NONE;
294 hfp_connection->enable_status_update_for_ag_indicators = 0xFF;
295}
296
38
39#include "btstack_config.h"
40
41#include <stdint.h>
42#include <stdio.h>
43#include <stdlib.h>
44#include <string.h>
45#include <inttypes.h>

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

284 hfp_connection->codec_confirmed = 0;
285
286 hfp_connection->establish_audio_connection = 0;
287 hfp_connection->call_waiting_notification_enabled = 0;
288 hfp_connection->command = HFP_CMD_NONE;
289 hfp_connection->enable_status_update_for_ag_indicators = 0xFF;
290}
291
297static hfp_connection_t * create_hfp_connection_context(){
292static hfp_connection_t * create_hfp_connection_context(void){
298 hfp_connection_t * hfp_connection = btstack_memory_hfp_connection_get();
299 if (!hfp_connection) return NULL;
300 // init state
301 memset(hfp_connection,0, sizeof(hfp_connection_t));
302
303 hfp_connection->state = HFP_IDLE;
304 hfp_connection->call_state = HFP_CALL_IDLE;
305 hfp_connection->codecs_state = HFP_CODECS_IDLE;

--- 1042 unchanged lines hidden ---
293 hfp_connection_t * hfp_connection = btstack_memory_hfp_connection_get();
294 if (!hfp_connection) return NULL;
295 // init state
296 memset(hfp_connection,0, sizeof(hfp_connection_t));
297
298 hfp_connection->state = HFP_IDLE;
299 hfp_connection->call_state = HFP_CALL_IDLE;
300 hfp_connection->codecs_state = HFP_CODECS_IDLE;

--- 1042 unchanged lines hidden ---