avrcp_controller: added send generic pass through command

This commit is contained in:
Milanka Ringwald 2025-01-14 14:09:39 +01:00
parent d18fc62ae6
commit d91664ea97
3 changed files with 14 additions and 0 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Unreleased
### Added
- GAP: simulate HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE if HCI Remote Name Request fails
- AVRCP Controller: Added send generic PASS THROUGH command
### Fixed
- GAP: store link key for standard/non-SSP pairing
### Changed

View File

@ -725,10 +725,15 @@ static uint8_t avrcp_controller_request_pass_through_press_control_cmd(uint16_t
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){
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){
return avrcp_controller_request_pass_through_press_control_cmd(avrcp_cid, opid, playback_speed, true);
}

View File

@ -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);
/**
* 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.
* @param avrcp_cid