hfp.h (50b9afa46bbafa0ea0b51cd71aeaf6ef5869f857) hfp.h (553a4a561f786fff6050306fb8f8ca8e28d447d4)
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

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

744void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role);
745void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role);
746void hfp_emit_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, uint8_t value);
747void hfp_emit_simple_event(hfp_connection_t * hfp_connection, uint8_t event_subtype);
748void hfp_emit_string_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, const char * value);
749void hfp_emit_slc_connection_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr);
750
751/**
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

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

744void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role);
745void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role);
746void hfp_emit_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, uint8_t value);
747void hfp_emit_simple_event(hfp_connection_t * hfp_connection, uint8_t event_subtype);
748void hfp_emit_string_event(hfp_connection_t * hfp_connection, uint8_t event_subtype, const char * value);
749void hfp_emit_slc_connection_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr);
750
751/**
752 * @brief Emit HFP_SUBEVENT_VOICE_RECOGNITION_STATUS event
752 * @brief Emit HFP_SUBEVENT_VOICE_RECOGNITION_ENABLED event
753 * @param hfp_connection
754 * @param status ERROR_CODE_SUCCESS if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED
753 * @param hfp_connection
754 * @param status ERROR_CODE_SUCCESS if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED
755 * @param state 0 if deactivated, 1 if activated
756 */
755 */
757void hfp_emit_voice_recognition_state_event(hfp_connection_t * hfp_connection, uint8_t status);
756void hfp_emit_voice_recognition_enabled(hfp_connection_t * hfp_connection, uint8_t status);
757
758/**
759 * @brief Emit HFP_SUBEVENT_VOICE_RECOGNITION_DISABLED event
760 * @param hfp_connection
761 * @param status ERROR_CODE_SUCCESS if successful, otherwise ERROR_CODE_COMMAND_DISALLOWED
762 */
763void hfp_emit_voice_recognition_disabled(hfp_connection_t * hfp_connection, uint8_t status);
764
758void hfp_emit_enhanced_voice_recognition_hf_ready_for_audio_event(hfp_connection_t * hfp_connection, uint8_t status);
759void hfp_emit_enhanced_voice_recognition_state_event(hfp_connection_t * hfp_connection, uint8_t status);
760
761hfp_connection_t * get_hfp_connection_context_for_rfcomm_cid(uint16_t cid);
762hfp_connection_t * get_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr, hfp_role_t hfp_role);
763hfp_connection_t * get_hfp_connection_context_for_sco_handle(uint16_t handle, hfp_role_t hfp_role);
764hfp_connection_t * get_hfp_connection_context_for_acl_handle(uint16_t handle, hfp_role_t hfp_role);
765

--- 71 unchanged lines hidden ---
765void hfp_emit_enhanced_voice_recognition_hf_ready_for_audio_event(hfp_connection_t * hfp_connection, uint8_t status);
766void hfp_emit_enhanced_voice_recognition_state_event(hfp_connection_t * hfp_connection, uint8_t status);
767
768hfp_connection_t * get_hfp_connection_context_for_rfcomm_cid(uint16_t cid);
769hfp_connection_t * get_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr, hfp_role_t hfp_role);
770hfp_connection_t * get_hfp_connection_context_for_sco_handle(uint16_t handle, hfp_role_t hfp_role);
771hfp_connection_t * get_hfp_connection_context_for_acl_handle(uint16_t handle, hfp_role_t hfp_role);
772

--- 71 unchanged lines hidden ---