avrcp_target.h (8904232662bfa6862e1c9def1ef6bab9e01bc902) avrcp_target.h (0346f11d884525c33c2c73350b5a6313c7a831a1)
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 78 unchanged lines hidden (view full) ---

87/**
88 * @brief Select Player that is controlled by Controller
89 * @param callback
90 * @note Callback should return if selected player is valid
91 */
92void avrcp_target_register_set_addressed_player_handler(bool (*callback)(uint16_t player_id));
93
94/**
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 78 unchanged lines hidden (view full) ---

87/**
88 * @brief Select Player that is controlled by Controller
89 * @param callback
90 * @note Callback should return if selected player is valid
91 */
92void avrcp_target_register_set_addressed_player_handler(bool (*callback)(uint16_t player_id));
93
94/**
95 * @brief Send a list of Company IDs supported by target.
96 * @note The avrcp_target_packet_handler will receive AVRCP_SUBEVENT_COMPANY_IDS_QUERY event. Use this function to respond.
95 * @brief Register a list of Company IDs supported by target.
97 * @param avrcp_cid
96 * @param avrcp_cid
98 * @param num_company_ids
99 * @param company_ids
100 * @param company_ids_size
97 * @param num_companies
98 * @param companies
101 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, otherwise ERROR_CODE_SUCCESS
102 */
99 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, otherwise ERROR_CODE_SUCCESS
100 */
101uint8_t avrcp_target_support_companies(uint16_t avrcp_cid, uint8_t num_companies, const uint32_t *companies);
103
104/**
102
103/**
105 * @brief Send a list of Events supported by target.
106 * @note The avrcp_target_packet_handler will receive AVRCP_SUBEVENT_EVENT_IDS_QUERY event. Use this function to respond.
104 * @brief Register event ID supported by target.
107 * @param avrcp_cid
105 * @param avrcp_cid
108 * @param num_event_ids
109 * @param event_ids
110 * @param event_ids_size
111 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, otherwise ERROR_CODE_SUCCESS
106 * @param event_id
107 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, ERROR_CODE_UNSUPPORTED_FEATURE_OR_PARAMETER_VALUE for unsupported event id, otherwise ERROR_CODE_SUCCESS,
112 */
108 */
109uint8_t avrcp_target_support_event(uint16_t avrcp_cid, avrcp_notification_event_id_t event_id);
113
114/**
115 * @brief Send a play status.
116 * @note The avrcp_target_packet_handler will receive AVRCP_SUBEVENT_PLAY_STATUS_QUERY event. Use this function to respond.
117 * @param avrcp_cid
118 * @param song_length_ms
119 * @param song_position_ms
120 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, otherwise ERROR_CODE_SUCCESS

--- 136 unchanged lines hidden ---
110
111/**
112 * @brief Send a play status.
113 * @note The avrcp_target_packet_handler will receive AVRCP_SUBEVENT_PLAY_STATUS_QUERY event. Use this function to respond.
114 * @param avrcp_cid
115 * @param song_length_ms
116 * @param song_position_ms
117 * @return status ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER if connection is not found, otherwise ERROR_CODE_SUCCESS

--- 136 unchanged lines hidden ---