bthf_client_interface_t Struct Reference

bthf_client_interface_t Struct Reference

#include < bt_hf_client.h >

Data Fields

size_t  size
 
bt_status_t (*  init )( bthf_client_callbacks_t *callbacks)
 
bt_status_t (*  connect )(bt_bdaddr_t *bd_addr)
 
bt_status_t (*  disconnect )(bt_bdaddr_t *bd_addr)
 
bt_status_t (*  connect_audio )(bt_bdaddr_t *bd_addr)
 
bt_status_t (*  disconnect_audio )(bt_bdaddr_t *bd_addr)
 
bt_status_t (*  start_voice_recognition )(void)
 
bt_status_t (*  stop_voice_recognition )(void)
 
bt_status_t (*  volume_control )( bthf_client_volume_type_t type, int volume)
 
bt_status_t (*  dial )(const char *number)
 
bt_status_t (*  dial_memory )(int location)
 
bt_status_t (*  handle_call_action )( bthf_client_call_action_t action, int idx)
 
bt_status_t (*  query_current_calls )(void)
 
bt_status_t (*  query_current_operator_name )(void)
 
bt_status_t (*  retrieve_subscriber_info )(void)
 
bt_status_t (*  send_dtmf )(char code)
 
bt_status_t (*  request_last_voice_tag_number )(void)
 
void(*  cleanup )(void)
 
bt_status_t (*  send_at_cmd )(int cmd, int val1, int val2, const char *arg)
 

Detailed Description

Represents the standard BT-HF interface.

Definition at line 297 of file bt_hf_client.h .

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 355 of file bt_hf_client.h .

bt_status_t (* connect)(bt_bdaddr_t *bd_addr)

connect to audio gateway

Definition at line 307 of file bt_hf_client.h .

bt_status_t (* connect_audio)(bt_bdaddr_t *bd_addr)

create an audio connection

Definition at line 313 of file bt_hf_client.h .

bt_status_t (* dial)(const char *number)

place a call with number a number if number is NULL last called number is called (aka re-dial)

Definition at line 329 of file bt_hf_client.h .

bt_status_t (* dial_memory)(int location)

place a call with number specified by location (speed dial)

Definition at line 332 of file bt_hf_client.h .

bt_status_t (* disconnect)(bt_bdaddr_t *bd_addr)

disconnect from audio gateway

Definition at line 310 of file bt_hf_client.h .

bt_status_t (* disconnect_audio)(bt_bdaddr_t *bd_addr)

close the audio connection

Definition at line 316 of file bt_hf_client.h .

bt_status_t (* handle_call_action)( bthf_client_call_action_t action, int idx)

perform specified call related action idx is limited only for enhanced call control related action

Definition at line 337 of file bt_hf_client.h .

Register the BtHf callbacks

Definition at line 304 of file bt_hf_client.h .

bt_status_t (* query_current_calls)(void)

query list of current calls

Definition at line 340 of file bt_hf_client.h .

bt_status_t (* query_current_operator_name)(void)

query name of current selected operator

Definition at line 343 of file bt_hf_client.h .

bt_status_t (* request_last_voice_tag_number)(void)

Request a phone number from AG corresponding to last voice tag recorded

Definition at line 352 of file bt_hf_client.h .

bt_status_t (* retrieve_subscriber_info)(void)

Retrieve subscriber information

Definition at line 346 of file bt_hf_client.h .

bt_status_t (* send_at_cmd)(int cmd, int val1, int val2, const char *arg)

Send AT Command.

Definition at line 358 of file bt_hf_client.h .

bt_status_t (* send_dtmf)(char code)

Send DTMF code

Definition at line 349 of file bt_hf_client.h .

size_t size

set to sizeof(BtHfClientInterface)

Definition at line 300 of file bt_hf_client.h .

bt_status_t (* start_voice_recognition)(void)

start voice recognition

Definition at line 319 of file bt_hf_client.h .

bt_status_t (* stop_voice_recognition)(void)

stop voice recognition

Definition at line 322 of file bt_hf_client.h .

bt_status_t (* volume_control)( bthf_client_volume_type_t type, int volume)

volume control

Definition at line 325 of file bt_hf_client.h .


The documentation for this struct was generated from the following file: