hfp.h (471dea41ab395d4c7fcbf32edf8a18b239742ccb) hfp.h (090c81feb660788a282ef81cee7bdb8ae8d35677)
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

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

754int send_str_over_rfcomm(uint16_t cid, const char * command);
755int join(char * buffer, int buffer_size, uint8_t * values, int values_nr);
756int join_bitmap(char * buffer, int buffer_size, uint32_t values, int values_nr);
757int get_bit(uint16_t bitmap, int position);
758int store_bit(uint32_t bitmap, int position, uint8_t value);
759// UTILS_END
760
761void hfp_finalize_connection_context(hfp_connection_t * hfp_connection);
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

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

754int send_str_over_rfcomm(uint16_t cid, const char * command);
755int join(char * buffer, int buffer_size, uint8_t * values, int values_nr);
756int join_bitmap(char * buffer, int buffer_size, uint32_t values, int values_nr);
757int get_bit(uint16_t bitmap, int position);
758int store_bit(uint32_t bitmap, int position, uint8_t value);
759// UTILS_END
760
761void hfp_finalize_connection_context(hfp_connection_t * hfp_connection);
762void hfp_emit_sco_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr, uint8_t negotiated_codec);
762void hfp_emit_sco_connection_established(hfp_connection_t *hfp_connection, uint8_t status, hci_con_handle_t sco_handle, bd_addr_t addr,
763 uint8_t negotiated_codec, uint16_t packet_types);
763
764void hfp_set_ag_callback(btstack_packet_handler_t callback);
765void hfp_set_ag_rfcomm_packet_handler(btstack_packet_handler_t handler);
766
767void hfp_set_hf_callback(btstack_packet_handler_t callback);
768void hfp_set_hf_rfcomm_packet_handler(btstack_packet_handler_t handler);
769
770void hfp_init(void);

--- 106 unchanged lines hidden ---
764
765void hfp_set_ag_callback(btstack_packet_handler_t callback);
766void hfp_set_ag_rfcomm_packet_handler(btstack_packet_handler_t handler);
767
768void hfp_set_hf_callback(btstack_packet_handler_t callback);
769void hfp_set_hf_rfcomm_packet_handler(btstack_packet_handler_t handler);
770
771void hfp_init(void);

--- 106 unchanged lines hidden ---