btrc_interface_t Struct Reference

btrc_interface_t Struct Reference

#include < bt_rc.h >

Data Fields

size_t  size
 
bt_status_t (*  init )( btrc_callbacks_t *callbacks)
 
bt_status_t (*  get_play_status_rsp )( btrc_play_status_t play_status, uint32_t song_len, uint32_t song_pos)
 
bt_status_t (*  list_player_app_attr_rsp )(int num_attr, btrc_player_attr_t *p_attrs)
 
bt_status_t (*  list_player_app_value_rsp )(int num_val, uint8_t *p_vals)
 
bt_status_t (*  get_player_app_value_rsp )( btrc_player_settings_t *p_vals)
 
bt_status_t (*  get_player_app_attr_text_rsp )(int num_attr, btrc_player_setting_text_t *p_attrs)
 
bt_status_t (*  get_player_app_value_text_rsp )(int num_val, btrc_player_setting_text_t *p_vals)
 
bt_status_t (*  get_element_attr_rsp )(uint8_t num_attr, btrc_element_attr_val_t *p_attrs)
 
bt_status_t (*  set_player_app_value_rsp )( btrc_status_t rsp_status)
 
bt_status_t (*  register_notification_rsp )( btrc_event_id_t event_id, btrc_notification_type_t type, btrc_register_notification_t *p_param)
 
bt_status_t (*  set_volume )(uint8_t volume)
 
void(*  cleanup )(void)
 

Detailed Description

Represents the standard BT-RC AVRCP Target interface.

Definition at line 223 of file bt_rc.h .

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 291 of file bt_rc.h .

bt_status_t (* get_element_attr_rsp)(uint8_t num_attr, btrc_element_attr_val_t *p_attrs)

Returns the current songs' element attributes text ("Title"/"Album"/"Artist") num_attr: Specifies the number of attributes' text contained in the pointer p_attrs

Definition at line 265 of file bt_rc.h .

bt_status_t (* get_play_status_rsp)( btrc_play_status_t play_status, uint32_t song_len, uint32_t song_pos)

Respose to GetPlayStatus request. Contains the current

  1. Play status
  2. Song duration/length
  3. Song position

Definition at line 237 of file bt_rc.h .

bt_status_t (* get_player_app_attr_text_rsp)(int num_attr, btrc_player_setting_text_t *p_attrs)

Returns the application attributes text ("Shuffle"/"Repeat"/...) num_attr: Specifies the number of attributes' text contained in the pointer p_attrs

Definition at line 255 of file bt_rc.h .

bt_status_t (* get_player_app_value_rsp)( btrc_player_settings_t *p_vals)

Returns the current application attribute values for each of the specified attr_id

Definition at line 250 of file bt_rc.h .

bt_status_t (* get_player_app_value_text_rsp)(int num_val, btrc_player_setting_text_t *p_vals)

Returns the application attributes text ("Shuffle"/"Repeat"/...) num_attr: Specifies the number of attribute values' text contained in the pointer p_vals

Definition at line 260 of file bt_rc.h .

bt_status_t (* init)( btrc_callbacks_t *callbacks)

Register the BtRc callbacks

Definition at line 230 of file bt_rc.h .

bt_status_t (* list_player_app_attr_rsp)(int num_attr, btrc_player_attr_t *p_attrs)

Lists the support player application attributes (Shuffle/Repeat/...) num_attr: Specifies the number of attributes contained in the pointer p_attrs

Definition at line 242 of file bt_rc.h .

bt_status_t (* list_player_app_value_rsp)(int num_val, uint8_t *p_vals)

Lists the support player application attributes (Shuffle Off/On/Group) num_val: Specifies the number of values contained in the pointer p_vals

Definition at line 247 of file bt_rc.h .

Definition at line 277 of file bt_rc.h .

bt_status_t (* set_player_app_value_rsp)( btrc_status_t rsp_status)

Response to set player attribute request ("Shuffle"/"Repeat") rsp_status: Status of setting the player attributes for the current media player

Definition at line 270 of file bt_rc.h .

bt_status_t (* set_volume)(uint8_t volume)

Send current volume setting to remote side. Support limited to SetAbsoluteVolume This can be enhanced to support Relative Volume (AVRCP 1.0). With RelateVolume, we will send VOLUME_UP/VOLUME_DOWN opposed to absolute volume level volume: Should be in the range 0-127. bit7 is reseved and cannot be set

Definition at line 288 of file bt_rc.h .

size_t size

set to sizeof(BtRcInterface)

Definition at line 226 of file bt_rc.h .


The documentation for this struct was generated from the following file:
  • hardware/libhardware/include/hardware/ bt_rc.h