FreeRTOS: BLE
BLE
Return to main page ↑
bt_hal_avsrc_profile.h
1 /*
2  * FreeRTOS BLE HAL V5.1.0
3  * Copyright (C) 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://aws.amazon.com/freertos
23  * http://www.FreeRTOS.org
24  */
25 
37 #ifndef _BT_HAL_AVSRC_PROFILE_H
38 #define _BT_HAL_AVSRC_PROFILE_H
39 
40 #include <stddef.h>
41 #include <stdint.h>
42 #include "bt_hal_manager_types.h"
43 
47 typedef enum
48 {
54 
58 typedef enum
59 {
64 
68 typedef enum
69 {
73 
83  BTBdaddr_t * pxBdAddr );
84 
92  BTBdaddr_t * pxBdAddr );
93 
94 
104  BTBdaddr_t * pxBdAddr );
105 
106 typedef struct
107 {
108  size_t xSize;
113 
115 typedef struct
116 {
118  size_t xSize;
119 
125  BTStatus_t ( * pxAvsrcInit )( BTAvsrcCallbacks_t * pxCallbacks );
126 
132  BTStatus_t ( * pxAvsrcCleanup )();
133 
139  BTStatus_t ( * pxAvsrcConnect )( BTBdaddr_t * pxRemote_addr );
140 
147  BTStatus_t ( * pxAvsrcDisconnect )( BTBdaddr_t * pxRemote_addr );
149 
150 const BTAvsrcInterface_t * BT_GetAvsrcInterface();
151 
152 #endif /* _BT_HAL_AVSRC_PROFILE_H */
153 
void(* BTAvsrcAclPriorityCallback_t)(BTAvsrcAclPriority_t xPriority, BTBdaddr_t *pxBdAddr)
Callback invoked when ACL priority changes Priority can change when the stack enables/disables silent...
Definition: bt_hal_avsrc_profile.h:103
Definition: bt_hal_avsrc_profile.h:50
size_t xSize
Definition: bt_hal_avsrc_profile.h:118
BTAvsrcConnectionStateCallback_t xConnStateCback
Definition: bt_hal_avsrc_profile.h:109
Definition: bt_hal_avsrc_profile.h:51
Definition: bt_hal_avsrc_profile.h:60
void(* BTAvsrcConnectionStateCallback_t)(BTAvConnectionState_t xState, BTBdaddr_t *pxBdAddr)
Callback invoked in to notify AV connection state change.
Definition: bt_hal_avsrc_profile.h:82
Definition: bt_hal_avsrc_profile.h:49
BTAvsrcAclPriority_t
Bluetooth AV ACL Priority.
Definition: bt_hal_avsrc_profile.h:68
Definition: bt_hal_avsrc_profile.h:62
Definition: bt_hal_avsrc_profile.h:52
Definition: bt_hal_avsrc_profile.h:71
Definition: bt_hal_avsrc_profile.h:70
Definition: bt_hal_avsrc_profile.h:106
BTAvAudioState_t
Bluetooth AV data path states.
Definition: bt_hal_avsrc_profile.h:58
Definition: bt_hal_avsrc_profile.h:61
BTAvConnectionState_t
Bluetooth AV connection states.
Definition: bt_hal_avsrc_profile.h:47
BTAvsrcAudioStateCallback_t xAudioStateCback
Definition: bt_hal_avsrc_profile.h:110
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:97
BT/BLE address.
Definition: bt_hal_manager_types.h:66
void(* BTAvsrcAudioStateCallback_t)(BTAvAudioState_t xState, BTBdaddr_t *pxBdAddr)
Callback invoked in to notify AV Audio state change.
Definition: bt_hal_avsrc_profile.h:91
Definition: bt_hal_avsrc_profile.h:115
BTAvsrcAclPriorityCallback_t xAclPriorityCback
Definition: bt_hal_avsrc_profile.h:111