hfp hf docu

This commit is contained in:
Milanka Ringwald 2016-02-17 16:20:14 +01:00
parent 91617f4954
commit 41b2727e4a
4 changed files with 17 additions and 16 deletions

View File

@ -1214,7 +1214,7 @@ void hfp_hf_terminate_call(bd_addr_t bd_addr){
// }
}
void hfp_hf_reject_call(bd_addr_t bd_addr){
void hfp_hf_reject_incoming_call(bd_addr_t bd_addr){
hfp_hf_establish_service_level_connection(bd_addr);
hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr);

View File

@ -203,49 +203,50 @@ void hfp_hf_establish_audio_connection(bd_addr_t bd_addr);
void hfp_hf_release_audio_connection(bd_addr_t bd_addr);
/**
* @brief
* @brief Answer incoming call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_answer_incoming_call(bd_addr_t bd_addr);
/**
* @brief
* @brief Reject incoming call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_reject_call(bd_addr_t bd_addr);
void hfp_hf_reject_incoming_call(bd_addr_t bd_addr);
/**
* @brief
* @brief Releases all held calls or sets User Determined User Busy (UDUB) for a waiting call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_user_busy(bd_addr_t addr);
/**
* @brief
* @brief Releases all active calls (if any exist) and accepts the other (held or waiting) call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_end_active_and_accept_other(bd_addr_t addr);
/**
* @brief
* @brief Places all active calls (if any exist) on hold and accepts the other (held or waiting) call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_swap_calls(bd_addr_t addr);
/**
* @brief
* @brief Adds a held call to the conversation.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_join_held_call(bd_addr_t addr);
/**
* @brief
* @brief Connects the two calls and disconnects the subscriber from both calls (Explicit Call
Transfer).
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_connect_calls(bd_addr_t addr);
/**
* @brief
* @brief Terminates an incoming or an outgoing call.
* @param bd_addr Bluetooth address of the AG
*/
void hfp_hf_terminate_call(bd_addr_t bd_addr);

View File

@ -149,8 +149,8 @@ static void user_command(char cmd){
hfp_hf_terminate_call(device_addr);
break;
case 'G':
printf("Reject call.\n");
hfp_hf_reject_call(device_addr);
printf("Reject incoming call.\n");
hfp_hf_reject_incoming_call(device_addr);
break;
case 'g':
printf("Query operator.\n");

View File

@ -113,7 +113,7 @@ static void show_usage(void){
printf("F - Hangup call\n");
printf("g - query network operator name\n");
printf("G - reject call\n");
printf("G - reject incoming call\n");
printf("i - dial 1234567\n");
printf("I - dial 7654321\n");
@ -252,8 +252,8 @@ static int stdin_process(struct data_source *ds){
break;
case 'G':
log_info("USER:\'%c\'", cmd);
printf("Reject call.\n");
hfp_hf_reject_call(device_addr);
printf("Reject incoming call.\n");
hfp_hf_reject_incoming_call(device_addr);
break;
case 'g':
log_info("USER:\'%c\'", cmd);
@ -537,7 +537,7 @@ int btstack_main(int argc, const char * argv[]){
hfp_hf_init(rfcomm_channel_nr);
hfp_hf_set_supported_features(438 | (1<<HFP_HFSF_ESCO_S4) | (1<<HFP_HFSF_EC_NR_FUNCTION));
hfp_hf_set_indicators(sizeof(indicators)/sizeof(uint16_t), indicators);
hfp_hf_set_codecs(sizeof(codecs), );
hfp_hf_set_codecs(sizeof(codecs), codecs);
hfp_hf_set_indicators_status(1);
hfp_hf_register_packet_handler(packet_handler);