Wiced BT Types¶
-
group
bt_types
WICED BT Types.
Transport types
-
typedef uint8_t
wiced_bt_transport_t
¶ Transport type (see BT Transport Types)
-
BT_TRANSPORT_BR_EDR
¶ BR/EDR transport.
-
BT_TRANSPORT_LE
¶ BLE transport.
Device Types
-
typedef uint8_t
wiced_bt_device_type_t
¶ Bluetooth device type (see BT Device Types)
-
BT_DEVICE_TYPE_BREDR
¶ BR/EDR device.
-
BT_DEVICE_TYPE_BLE
¶ LE device.
-
BT_DEVICE_TYPE_BREDR_BLE
¶ Dual Mode device.
Address Types
-
typedef uint8_t
wiced_bt_ble_address_type_t
¶ BLE device address type (see BT Address Types)
-
BLE_ADDR_PUBLIC
¶ Public address.
-
BLE_ADDR_RANDOM
¶ Random address.
-
BLE_ADDR_PUBLIC_ID
¶ Public ID.
-
BLE_ADDR_RANDOM_ID
¶ Random ID.
Defines
-
BT_PSM_SDP
¶ Service Discovery Protocol)
-
BT_PSM_RFCOMM
¶ RFCOMM with TS 07.10.
-
BT_PSM_TCS
¶ (deprecated)
-
BT_PSM_CTP
¶ (deprecated)
-
BT_PSM_BNEP
¶ Bluetooth Network Encapsulation Protocol.
-
BT_PSM_HIDC
¶ Human Interface Device (Control)
-
BT_PSM_HIDI
¶ Human Interface Device (Interrupt)
-
BT_PSM_UPNP
¶ Universal PlugNPlay.
-
BT_PSM_AVCTP
¶ Audio/Video Control Transport Protocol.
-
BT_PSM_AVDTP
¶ Audio/Video Distribution Transport Protocol.
-
BT_PSM_AVCTP_13
¶ Advanced Control - Browsing.
-
BT_PSM_UDI_CP
¶ Unrestricted Digital Information C-Plane.
-
BT_PSM_ATT
¶ Attribute Protocol.
-
BT_PSM_3DS
¶ 3D sync
-
BT_LE_PSM_IPSP
¶ Internet Protocol Support (IPv6/6LoWPAN)
-
BT_LE_PSM_EATT
¶ Enhanced Attribute protocol.
-
BT_EIR_FLAGS_TYPE
¶ EIR Flag Type.
-
BT_EIR_MORE_16BITS_UUID_TYPE
¶ EIR 16 bits UUID Type.
-
BT_EIR_COMPLETE_16BITS_UUID_TYPE
¶ EIR Complete 16 bits UUID Type.
-
BT_EIR_MORE_32BITS_UUID_TYPE
¶ EIR 32 bits UUID Type.
-
BT_EIR_COMPLETE_32BITS_UUID_TYPE
¶ EIR Complete 32 bits UUID Type.
-
BT_EIR_MORE_128BITS_UUID_TYPE
¶ EIR 128 bits UUID Type.
-
BT_EIR_COMPLETE_128BITS_UUID_TYPE
¶ EIR 128 bits UUID Type.
-
BT_EIR_SHORTENED_LOCAL_NAME_TYPE
¶ EIR Shorthand Local Name Type.
-
BT_EIR_COMPLETE_LOCAL_NAME_TYPE
¶ EIR Complete Local Name Type.
-
BT_EIR_TX_POWER_LEVEL_TYPE
¶ EIR TX Power Level Type.
-
BT_EIR_OOB_BD_ADDR_TYPE
¶ EIR OOB BDA Type.
-
BT_EIR_OOB_COD_TYPE
¶ EIR OOB COD Type.
-
BT_EIR_OOB_SSP_HASH_C_TYPE
¶ EIR OOB SSP HASH C Type.
-
BT_EIR_OOB_SSP_RAND_R_TYPE
¶ EIR OOB SSP RAND R Type.
-
BT_EIR_OOB_SSP_HASH_C_256_TYPE
¶ EIR OOB SSP HASH C256 Type.
-
BT_EIR_OOB_SSP_RAND_R_256_TYPE
¶ EIR OOB SSP RAND R256 Type.
-
BT_EIR_3D_SYNC_TYPE
¶ EIR 3D SYNC Type.
-
BT_EIR_MANUFACTURER_SPECIFIC_TYPE
¶ EIR Manufacturer Specific Type.
-
BT_OOB_COD_SIZE
¶ OOB Class of Device Size.
-
BT_OOB_HASH_C_SIZE
¶ OOB Hash C size.
-
BT_OOB_RAND_R_SIZE
¶ OOB Rand R size.
-
BT_OOB_HASH_C_256_SIZE
¶ OOB Hash C-256 Size.
-
BT_OOB_RAND_R_256_SIZE
¶ OOB Rand R-256 Size.
-
WICED_BT_DEVICE_ADDRESS
¶ Device Bluetooth Address.
-
BD_ADDR_LEN
¶ Device Bluetooth Address Length.
-
BD_NAME_LEN
¶ Local Name Length.
-
DEV_CLASS_LEN
¶ Device class Length.
-
MAX_UUID_SIZE
¶ Maximum UUID size - 16 bytes, and structure to hold any type of UUID.
-
BT_DB_HASH_LEN
¶ Database Hash length.
-
WICED_BT_GATT_CLIENT_SUPPORTED_FEATURE_OCTET_LEN
¶ GATT Client Supported feature length.
-
BT_OCTET8_LEN
¶ octet length: 8
-
BT_OCTET16_LEN
¶ octet length: 16
-
BT_OCTET32_LEN
¶ octet length: 32
-
NO_TRAFFIC
¶ No Traffic.
-
BEST_EFFORT
¶ Best Effort.
-
GUARANTEED
¶ Guaranteed.
-
LINK_KEY_LEN
¶ Link Key Len.
-
DRB_OVERHEAD_SIZE
¶ length and offset
-
EATT_CHANNELS_PER_TRANSACTION
¶ EATT Max Channel per TX.
-
UINT128_TO_STREAM
(p, u128)¶ Covert UINT128 to Stream array.
-
UINT64_TO_STREAM
(p, u64)¶ Covert uint64_t to Stream array.
-
UINT48_TO_STREAM
(p, u48)¶ Covert UINT48 to Stream array.
-
UINT40_TO_STREAM
(p, u40)¶ Covert UINT40 to Stream array.
-
UINT24_TO_STREAM
(p, u24)¶ Covert UINT24 to Stream array.
-
UINT8_TO_STREAM
(p, u8)¶ Covert uint8_t to Stream array.
-
INT8_TO_STREAM
(p, u8)¶ Covert int8_t to Stream array.
-
ARRAY32_TO_STREAM
(p, a)¶ Covert 32 bytes to Stream array.
-
ARRAY16_TO_STREAM
(p, a)¶ Covert 16 bytes to Stream array.
-
ARRAY8_TO_STREAM
(p, a)¶ Covert 8 bytes to Stream array.
-
LAP_TO_STREAM
(p, a)¶ Covert LAP to Stream array.
-
DEVCLASS_TO_STREAM
(p, a)¶ Covert Device class to Stream array.
-
ARRAY_TO_STREAM
(p, a, len)¶ Covert array to Stream array.
-
REVERSE_ARRAY_TO_STREAM
(p, a, len)¶ Reverse Array.
-
STREAM_TO_UINT24
(u32, p)¶ Convert byte stream to UINT24.
-
STREAM_TO_UINT40
(u40, p)¶ Convert byte stream to UINT40.
-
STREAM_TO_ARRAY32
(a, p)¶ Convert byte stream to ARRAY32.
-
STREAM_TO_ARRAY16
(a, p)¶ Convert byte stream to ARRAY16.
-
STREAM_TO_ARRAY8
(a, p)¶ Convert byte stream to ARRAY8.
-
STREAM_TO_DEVCLASS
(a, p)¶ Convert byte stream to Device Class.
-
STREAM_TO_LAP
(a, p)¶ Convert byte stream to LAP.
-
STREAM_TO_ARRAY
(a, p, len)¶ Convert byte stream to Array.
-
REVERSE_STREAM_TO_ARRAY
(a, p, len)¶ Reverse Stream to Array.
-
STREAM_TO_UINT8
(u8, p)¶ Convert byte stream to uint8_t.
-
STREAM_TO_INT8
(i8, p)¶ Convert byte stream to int8_t.
-
BCM_STRNCPY_S
(x1, x2, x3, x4)¶ String copy.
-
UINT32_TO_STREAM
(p, u32)¶ Covert uint32_t to Stream.
-
UINT16_TO_STREAM
(p, u16)¶ Covert uint16_t to Stream.
-
STREAM_TO_UINT32
(u32, p)¶ Covert Stream to uint32_t.
-
STREAM_TO_UINT16
(u16, p)¶ Covert Stream to uint16_t.
-
BDADDR_TO_STREAM
(p, a)¶ Convert BDA to stream.
-
STREAM_TO_BDADDR
(a, p)¶ Convert stream to BDA.
-
UINT32_TO_FIELD
(p, u32)¶ Covert uint32_t to Field.
-
UINT24_TO_FIELD
(p, u24)¶ Covert UINT24 to Field.
-
UINT16_TO_FIELD
(p, u16)¶ Covert uint16_t to Field.
-
UINT8_TO_FIELD
(p, u8)¶ Covert uint8_t to Field.
-
UINT128_TO_BE_STREAM
(p, u128)¶ Covert UINT128 to Stream.
-
UINT64_TO_BE_STREAM
(p, u64)¶ Covert uint64_t to Stream.
-
UINT32_TO_BE_STREAM
(p, u32)¶ Covert uint32_t to Stream.
-
UINT24_TO_BE_STREAM
(p, u24)¶ Covert UINT24 to Stream.
-
UINT16_TO_BE_STREAM
(p, u16)¶ Covert uint16_t to Stream.
-
UINT8_TO_BE_STREAM
(p, u8)¶ Covert uint8_t to Stream.
-
ARRAY_TO_BE_STREAM
(p, a, len)¶ Covert Array to Stream.
-
BE_STREAM_TO_UINT8
(u8, p)¶ Stream to uint8_t.
-
BE_STREAM_TO_UINT16
(u16, p)¶ Stream to uint16_t.
-
BE_STREAM_TO_UINT24
(u32, p)¶ Stream to UINT24.
-
BE_STREAM_TO_UINT32
(u32, p)¶ Stream to uint32_t.
-
BE_STREAM_TO_UINT64
(u64, p)¶ Stream to uint64_t.
-
BE_STREAM_TO_ARRAY
(p, a, len)¶ Covert Array to Stream.
-
UINT32_TO_BE_FIELD
(p, u32)¶ uint32_t to Field
-
UINT24_TO_BE_FIELD
(p, u24)¶ UINT24 to Field.
-
UINT16_TO_BE_FIELD
(p, u16)¶ uint16_t to Field
-
UINT8_TO_BE_FIELD
(p, u8)¶ uint8_t to Field
-
EXPAND_BDADDR
(bd)¶ Expand BDA.
-
BDADDR_FORMAT
¶ Format BDA.
-
NUM_ELEMENTS
(x)¶ Number of Elements.
-
MIN
(a, b)¶ Min.
-
MAX
(a, b)¶ Max.
-
WICED_DECLARE_ALIGNED4
(datatype, var)¶ Declare 4 byte align for GCC.
-
ALIGN_SIZE
(value, align_to)¶ get aligned size
Typedefs
-
typedef uint8_t
wiced_bt_device_address_t
[BD_ADDR_LEN
]¶ Device address length.
-
typedef uint8_t *
BD_ADDR_PTR
¶ Pointer to Device Address.
-
typedef uint8_t
wiced_bt_remote_name_t
[BD_NAME_LEN
+ 1]¶ Device name.
-
typedef uint8_t *
wiced_bt_device_address_ptr_t
¶ Device address Pointer.
-
typedef uint8_t
wiced_bt_dev_class_t
[DEV_CLASS_LEN
]¶ Device class.
-
typedef uint8_t
wiced_bt_db_hash_t
[BT_DB_HASH_LEN
]¶ BLE database hash.
-
typedef uint8_t
wiced_bt_gatt_client_supported_features_t
[WICED_BT_GATT_CLIENT_SUPPORTED_FEATURE_OCTET_LEN
]¶ GATT Client Support features.
-
typedef uint8_t
BT_OCTET8
[BT_OCTET8_LEN
]¶ octet array: size 8
-
typedef uint8_t
BT_OCTET16
[BT_OCTET16_LEN
]¶ octet array: size 16
-
typedef uint8_t
BT_OCTET32
[BT_OCTET32_LEN
]¶ octet array: size 32
-
typedef uint8_t
wiced_bt_link_key_t
[LINK_KEY_LEN
]¶ Link Key.
Enums
Functions
-
uint8_t *
BTU_copyBdaToStream
(uint8_t *pStream, uint8_t *pBDA)¶ Copy BDA to stream.
-
uint8_t *
BTU_copyStreamToBda
(uint8_t *pBDA, uint8_t *pStream)¶ Copy Stream to BDA.
-
struct
wiced_bt_uuid_t
¶ - #include <>
UUID Type.
-
struct
wiced_bt_flow_spec_t
¶ - #include <>
Bluetooth QoS defintions.
Public Members
-
uint8_t
qos_flags
¶ Quality of service flag.
-
uint8_t
service_type
¶ service type (NO_TRAFFIC, BEST_EFFORT, or GUARANTEED)
-
uint32_t
token_rate
¶ token rate (bytes/second)
-
uint32_t
token_bucket_size
¶ token bucket size (bytes)
-
uint32_t
peak_bandwidth
¶ peak bandwidth (bytes/second)
-
uint32_t
latency
¶ latency (microseconds)
-
uint32_t
delay_variation
¶ delay variation (microseconds)
-
uint8_t
-
struct
wiced_bt_ble_address_t
¶ - #include <>
Wiced Ble Address structure.
Public Members
-
wiced_bt_ble_address_type_t
type
¶ BLE Address Type.
-
wiced_bt_device_address_t
bda
¶ BLE Address.
-
wiced_bt_ble_address_type_t
-
struct
tDRB
¶ - #include <>
Define a Data Received Buffer structure, which is used to pass received data back up through the stack.
-
typedef uint8_t