mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 10:20:58 +00:00
avrcp_controller: added send generic pass through command
This commit is contained in:
parent
d18fc62ae6
commit
d91664ea97
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
### Added
|
### Added
|
||||||
- GAP: simulate HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE if HCI Remote Name Request fails
|
- GAP: simulate HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE if HCI Remote Name Request fails
|
||||||
|
- AVRCP Controller: Added send generic PASS THROUGH command
|
||||||
### Fixed
|
### Fixed
|
||||||
- GAP: store link key for standard/non-SSP pairing
|
- GAP: store link key for standard/non-SSP pairing
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -725,10 +725,15 @@ static uint8_t avrcp_controller_request_pass_through_press_control_cmd(uint16_t
|
|||||||
return ERROR_CODE_SUCCESS;
|
return ERROR_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static uint8_t request_single_pass_through_press_control_cmd(uint16_t avrcp_cid, avrcp_operation_id_t opid, uint16_t playback_speed){
|
static uint8_t request_single_pass_through_press_control_cmd(uint16_t avrcp_cid, avrcp_operation_id_t opid, uint16_t playback_speed){
|
||||||
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, playback_speed, false);
|
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, playback_speed, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t avrcp_controller_send_pass_through_cmd(uint16_t avrcp_cid, avrcp_operation_id_t opid){
|
||||||
|
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, 0, false);
|
||||||
|
}
|
||||||
|
|
||||||
static uint8_t request_continuous_pass_through_press_control_cmd(uint16_t avrcp_cid, avrcp_operation_id_t opid, uint16_t playback_speed){
|
static uint8_t request_continuous_pass_through_press_control_cmd(uint16_t avrcp_cid, avrcp_operation_id_t opid, uint16_t playback_speed){
|
||||||
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, playback_speed, true);
|
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, playback_speed, true);
|
||||||
}
|
}
|
||||||
|
@ -140,6 +140,14 @@ uint8_t avrcp_controller_start_press_and_hold_cmd(uint16_t avrcp_cid, avrcp_oper
|
|||||||
*/
|
*/
|
||||||
uint8_t avrcp_controller_release_press_and_hold_cmd(uint16_t avrcp_cid);
|
uint8_t avrcp_controller_release_press_and_hold_cmd(uint16_t avrcp_cid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Send PASS THROUGH command. Event AVRCP_SUBEVENT_OPERATION_COMPLETE returns operation id and status.
|
||||||
|
* @param avrcp_cid
|
||||||
|
* @param operation_id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
uint8_t avrcp_controller_send_pass_through_cmd(uint16_t avrcp_cid, avrcp_operation_id_t operation_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Play. Event AVRCP_SUBEVENT_OPERATION_COMPLETE returns operation id and status.
|
* @brief Play. Event AVRCP_SUBEVENT_OPERATION_COMPLETE returns operation id and status.
|
||||||
* @param avrcp_cid
|
* @param avrcp_cid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user