COMMON IO-BLE v1.0.0
Hardware abstraction layer for Bluetooth
 
Loading...
Searching...
No Matches
bt_hal_manager_types.h
Go to the documentation of this file.
1/*
2 * FreeRTOS BLE HAL V5.1.0
3 * Copyright (C) 2020 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
37#ifndef _BT_HAL_MANAGER_TYPES_H_
38#define _BT_HAL_MANAGER_TYPES_H_
39
40#include <stdint.h>
41#include <stdbool.h>
42
47#define bt128BIT_UUID_LEN 16
48
53#define btADDRESS_LEN 6
54
59#define btKEY_MAX_LEN 16
60
65typedef enum
66{
71
76typedef struct
77{
78 uint8_t ucAddress[ btADDRESS_LEN ];
80
85typedef struct
86{
87 uint8_t * ucName;
89
90
95typedef struct
96{
98 union
99 {
100 uint16_t uu16;
101 uint32_t uu32;
102 uint8_t uu128[ bt128BIT_UUID_LEN ];
103 } uu;
104} BTUuid_t;
105
110typedef enum
111{
127
132typedef enum
133{
143 /* TODO : Add other profiles? */
144 eBTProfileMaxID = 9
146
151typedef enum
152{
159
160#endif /* _BT_HAL_MANAGER_TYPES_H_ */
#define btADDRESS_LEN
Size in byte of BT/BLE addresses.
Definition: bt_hal_manager_types.h:53
#define bt128BIT_UUID_LEN
Size in byte of 128bits UUID.
Definition: bt_hal_manager_types.h:47
BTStatus_t
Bluetooth Error Status .
Definition: bt_hal_manager_types.h:111
BTProfile_t
Bluetooth Profile .
Definition: bt_hal_manager_types.h:133
BTIOtypes_t
Input Output device type.
Definition: bt_hal_manager_types.h:152
BTuuidType_t
UUID types.
Definition: bt_hal_manager_types.h:66
@ eBTStatusLinkLoss
Definition: bt_hal_manager_types.h:125
@ eBTStatusBusy
Definition: bt_hal_manager_types.h:116
@ eBTStatusAuthRejected
Definition: bt_hal_manager_types.h:123
@ eBTStatusAuthFailure
Definition: bt_hal_manager_types.h:121
@ eBTStatusSuccess
Definition: bt_hal_manager_types.h:112
@ eBTStatusWakeLockError
Definition: bt_hal_manager_types.h:124
@ eBTStatusDone
Definition: bt_hal_manager_types.h:117
@ eBTStatusFail
Definition: bt_hal_manager_types.h:113
@ eBTStatusParamInvalid
Definition: bt_hal_manager_types.h:119
@ eBTStatusUnHandled
Definition: bt_hal_manager_types.h:120
@ eBTStatusUnsupported
Definition: bt_hal_manager_types.h:118
@ eBTStatusRMTDevDown
Definition: bt_hal_manager_types.h:122
@ eBTStatusNotReady
Definition: bt_hal_manager_types.h:114
@ eBTStatusNoMem
Definition: bt_hal_manager_types.h:115
@ eBTProfileInputDevice
Definition: bt_hal_manager_types.h:139
@ eBTProfileA2DPSink
Definition: bt_hal_manager_types.h:137
@ eBTProfileHeadsetClient
Definition: bt_hal_manager_types.h:140
@ eBTProfileSock
Definition: bt_hal_manager_types.h:142
@ eBTProfileA2DP
Definition: bt_hal_manager_types.h:135
@ eProfileHeadset
Definition: bt_hal_manager_types.h:134
@ eBTProfileAVRCPTarget
Definition: bt_hal_manager_types.h:136
@ eBTProfileMaxID
Definition: bt_hal_manager_types.h:144
@ eBTProfileAVRCPController
Definition: bt_hal_manager_types.h:138
@ eBTProfileGATT
Definition: bt_hal_manager_types.h:141
@ eBTIODisplayYesNo
Definition: bt_hal_manager_types.h:155
@ eBTIOKeyboardOnly
Definition: bt_hal_manager_types.h:156
@ eBTIODisplayOnly
Definition: bt_hal_manager_types.h:154
@ eBTIOKeyboardDisplay
Definition: bt_hal_manager_types.h:157
@ eBTIONone
Definition: bt_hal_manager_types.h:153
@ eBTuuidType32
Definition: bt_hal_manager_types.h:68
@ eBTuuidType128
Definition: bt_hal_manager_types.h:69
@ eBTuuidType16
Definition: bt_hal_manager_types.h:67
BT/BLE address.
Definition: bt_hal_manager_types.h:77
Device Name.
Definition: bt_hal_manager_types.h:86
uint8_t * ucName
Definition: bt_hal_manager_types.h:87
UUID.
Definition: bt_hal_manager_types.h:96
uint16_t uu16
Definition: bt_hal_manager_types.h:100
BTuuidType_t ucType
Definition: bt_hal_manager_types.h:97
uint32_t uu32
Definition: bt_hal_manager_types.h:101