hfp.h (323d300063a7e0193cf61fbe114062cf000a3fe5) | hfp.h (ca59be5193cced59664efef288ea86d02eaef3a4) |
---|---|
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 --- 627 unchanged lines hidden (view full) --- 636// UTILS_START : TODO move to utils 637int send_str_over_rfcomm(uint16_t cid, char * command); 638int join(char * buffer, int buffer_size, uint8_t * values, int values_nr); 639int join_bitmap(char * buffer, int buffer_size, uint32_t values, int values_nr); 640int get_bit(uint16_t bitmap, int position); 641int store_bit(uint32_t bitmap, int position, uint8_t value); 642// UTILS_END 643 | 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 --- 627 unchanged lines hidden (view full) --- 636// UTILS_START : TODO move to utils 637int send_str_over_rfcomm(uint16_t cid, char * command); 638int join(char * buffer, int buffer_size, uint8_t * values, int values_nr); 639int join_bitmap(char * buffer, int buffer_size, uint32_t values, int values_nr); 640int get_bit(uint16_t bitmap, int position); 641int store_bit(uint32_t bitmap, int position, uint8_t value); 642// UTILS_END 643 |
644void hfp_set_callback(btstack_packet_handler_t callback); | 644void hfp_set_ag_callback(btstack_packet_handler_t callback); 645void hfp_set_ag_rfcomm_packet_handler(btstack_packet_handler_t handler); |
645 | 646 |
646void hfp_set_packet_handler_for_rfcomm_connections(btstack_packet_handler_t handler); | 647void hfp_set_hf_callback(btstack_packet_handler_t callback); 648void hfp_set_hf_rfcomm_packet_handler(btstack_packet_handler_t handler); |
647 648void hfp_create_sdp_record(uint8_t * service, uint32_t service_record_handle, uint16_t service_uuid, int rfcomm_channel_nr, const char * name); 649void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role); | 649 650void hfp_create_sdp_record(uint8_t * service, uint32_t service_record_handle, uint16_t service_uuid, int rfcomm_channel_nr, const char * name); 651void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role); |
650void hfp_emit_event(btstack_packet_handler_t callback, uint8_t event_subtype, uint8_t value); 651void hfp_emit_simple_event(btstack_packet_handler_t callback, uint8_t event_subtype); 652void hfp_emit_string_event(btstack_packet_handler_t callback, uint8_t event_subtype, const char * value); 653void hfp_emit_slc_connection_event(btstack_packet_handler_t callback, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr); | 652void hfp_emit_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, uint8_t value); 653void hfp_emit_simple_event(hfp_connection_t * hfp_connection, uint8_t event_subtype); 654void hfp_emit_string_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, const char * value); 655void hfp_emit_slc_connection_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr); |
654 655hfp_connection_t * get_hfp_connection_context_for_rfcomm_cid(uint16_t cid); 656hfp_connection_t * get_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr); 657hfp_connection_t * get_hfp_connection_context_for_sco_handle(uint16_t handle); 658hfp_connection_t * get_hfp_connection_context_for_acl_handle(uint16_t handle); 659 660btstack_linked_list_t * hfp_get_connections(void); 661void hfp_parse(hfp_connection_t * connection, uint8_t byte, int isHandsFree); --- 19 unchanged lines hidden --- | 656 657hfp_connection_t * get_hfp_connection_context_for_rfcomm_cid(uint16_t cid); 658hfp_connection_t * get_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr); 659hfp_connection_t * get_hfp_connection_context_for_sco_handle(uint16_t handle); 660hfp_connection_t * get_hfp_connection_context_for_acl_handle(uint16_t handle); 661 662btstack_linked_list_t * hfp_get_connections(void); 663void hfp_parse(hfp_connection_t * connection, uint8_t byte, int isHandsFree); --- 19 unchanged lines hidden --- |