COMMON IO-BLE v1.0.0
Hardware abstraction layer for Bluetooth
 
Loading...
Searching...
No Matches
bt_hal_avsrc_profile.h
Go to the documentation of this file.
1/*
2 * FreeRTOS BLE HAL V5.1.0
3 * Copyright (C) 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy of
8 * this software and associated documentation files (the "Software"), to deal in
9 * the Software without restriction, including without limitation the rights to
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 * the Software, and to permit persons to whom the Software is furnished to do so,
12 * subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included in all
15 * copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 *
24 * http://aws.amazon.com/freertos
25 * http://www.FreeRTOS.org
26 */
27
39#ifndef _BT_HAL_AVSRC_PROFILE_H
40#define _BT_HAL_AVSRC_PROFILE_H
41
42#include <stddef.h>
43#include <stdint.h>
45
50typedef enum
51{
57
62typedef enum
63{
68
73typedef enum
74{
78
90 BTBdaddr_t * pxBdAddr );
91
101 BTBdaddr_t * pxBdAddr );
102
103
115 BTBdaddr_t * pxBdAddr );
116
121typedef struct
122{
123 size_t xSize;
128
129
134typedef struct
135{
137 size_t xSize;
138
144 BTStatus_t ( * pxAvsrcInit )( BTAvsrcCallbacks_t * pxCallbacks );
145
151 BTStatus_t ( * pxAvsrcCleanup )();
152
158 BTStatus_t ( * pxAvsrcConnect )( BTBdaddr_t * pxRemote_addr );
159
166 BTStatus_t ( * pxAvsrcDisconnect )( BTBdaddr_t * pxRemote_addr );
168
169
174
175#endif /* _BT_HAL_AVSRC_PROFILE_H */
const BTAvsrcInterface_t * BT_GetAvsrcInterface()
This BT HAL provides the interfaces to control the Bluetooth power states ,local device control and d...
void(* BTAvsrcAudioStateCallback_t)(BTAvAudioState_t xState, BTBdaddr_t *pxBdAddr)
Callback invoked in to notify AV Audio state change.
Definition: bt_hal_avsrc_profile.h:100
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:114
void(* BTAvsrcConnectionStateCallback_t)(BTAvConnectionState_t xState, BTBdaddr_t *pxBdAddr)
Callback invoked in to notify AV connection state change.
Definition: bt_hal_avsrc_profile.h:89
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:111
BTAvConnectionState_t
Bluetooth AV connection states.
Definition: bt_hal_avsrc_profile.h:51
BTAvAudioState_t
Bluetooth AV data path states.
Definition: bt_hal_avsrc_profile.h:63
BTAvsrcAclPriority_t
Bluetooth AV ACL Priority.
Definition: bt_hal_avsrc_profile.h:74
@ eBTAvsrcConnectionStateDisconnected
Definition: bt_hal_avsrc_profile.h:52
@ eBTAvsrcConnectionStateConnected
Definition: bt_hal_avsrc_profile.h:54
@ eBTAvsrcConnectionStateConnecting
Definition: bt_hal_avsrc_profile.h:53
@ eBTAvsrcConnectionStateDisconnecting
Definition: bt_hal_avsrc_profile.h:55
@ eBTAvsrcAudioStateStopped
Definition: bt_hal_avsrc_profile.h:65
@ eBTAvsrcAudioStateStarted
Definition: bt_hal_avsrc_profile.h:66
@ eBTAvsrcAudioStateRemoteSuspend
Definition: bt_hal_avsrc_profile.h:64
@ eBTAvsrcAclPriorityLow
Definition: bt_hal_avsrc_profile.h:75
@ eBTAvsrcAclPriorityHigh
Definition: bt_hal_avsrc_profile.h:76
Represents the AVSRC callbacks.
Definition: bt_hal_avsrc_profile.h:122
BTAvsrcAclPriorityCallback_t xAclPriorityCback
Definition: bt_hal_avsrc_profile.h:126
size_t xSize
Definition: bt_hal_avsrc_profile.h:123
BTAvsrcConnectionStateCallback_t xConnStateCback
Definition: bt_hal_avsrc_profile.h:124
BTAvsrcAudioStateCallback_t xAudioStateCback
Definition: bt_hal_avsrc_profile.h:125
Represents the standard AV connection interface.
Definition: bt_hal_avsrc_profile.h:135
size_t xSize
Definition: bt_hal_avsrc_profile.h:137
BT/BLE address.
Definition: bt_hal_manager_types.h:77