ST Expansion SW Team / libNDEF

Dependents:   mbed-os-nfc04a1 Wiagro-Lanza34-XDot

Embed: (wiki syntax)

« Back to documentation index

lib_NDEF_Bluetooth.h File Reference

lib_NDEF_Bluetooth.h File Reference

This file help to manage a NDEF file representing a Bluetooth pairing info. More...

Go to the source code of this file.

Data Structures

struct  Ndef_Bluetooth_OOB_t
 Bluetooth Out-Of-Band data structure. More...
struct  NDEF_EIR_t
 Extended Inquiry Response format. More...

Enumerations

enum  Ndef_Bluetooth_Eir_Types_t {
  BLUETOOTH_EIR_FLAGS = 0x01, BLUETOOTH_EIR_SERVICE_CLASS_UUID_PARTIAL_16 = 0x02, BLUETOOTH_EIR_SERVICE_CLASS_UUID_COMPLETE_16 = 0x03, BLUETOOTH_EIR_SERVICE_CLASS_UUID_PARTIAL_32 = 0x04,
  BLUETOOTH_EIR_SERVICE_CLASS_UUID_COMPLETE_32 = 0x05, BLUETOOTH_EIR_SERVICE_CLASS_UUID_PARTIAL_128 = 0x06, BLUETOOTH_EIR_SERVICE_CLASS_UUID_COMPLETE_128 = 0x07, BLUETOOTH_EIR_SHORT_LOCAL_NAME = 0x08,
  BLUETOOTH_EIR_COMPLETE_LOCAL_NAME = 0x09, BLUETOOTH_EIR_TX_POWER_LEVEL = 0x0A, BLUETOOTH_EIR_DEVICE_CLASS = 0x0D, BLUETOOTH_EIR_SIMPLE_PAIRING_HASH = 0x0E,
  BLUETOOTH_EIR_SIMPLE_PAIRING_RANDOMIZER = 0x0F, BLUETOOTH_EIR_SECURITY_MANAGER_TK_VALUE = 0x10, BLUETOOTH_EIR_SECURITY_MANAGER_FLAGS = 0x11, BLUETOOTH_EIR_SLAVE_CONNECTION_INTERVAL_RANGE = 0x12,
  BLUETOOTH_EIR_SERVICE_SOLICITATION_16 = 0x14, BLUETOOTH_EIR_SERVICE_SOLICITATION_128 = 0x15, BLUETOOTH_EIR_SERVICE_DATA = 0x16, BLUETOOTH_EIR_APPEARANCE = 0x19,
  BLUETOOTH_EIR_BLE_DEVICE_ADDRESS = 0x1B, BLUETOOTH_EIR_BLE_ROLE = 0x1C, BLUETOOTH_EIR_MANUFACTURER_DATA = 0xFF
}
 

Enumerates the Extended Inquiry Responses, as defined in the Bluetooth v4.0 core specification.

More...
enum  Ndef_BLE_Address_Type_t { NDEF_BLE_PUBLIC_ADDRESS_TYPE = 0x0, NDEF_BLE_RANDOM_ADDRESS_TYPE = 0x1, NDEF_BLE_UNDEF_ADDRESS_TYPE = 0xff }
 

Enumerates the Bluetooth LE address types.

More...
enum  Ndef_BLE_Role_t {
  NDEF_BLE_ROLE_PERIPH_ONLY = 0x0, NDEF_BLE_ROLE_CENTRAL_ONLY = 0x1, NDEF_BLE_ROLE_PERIPH_PREFERRED = 0x2, NDEF_BLE_ROLE_CENTRAL_PREFERRED = 0x3,
  NDEF_BLE_ROLE_UNDEF = 0xff
}
 

Enumerates Bluetooth LE Roles.

More...
enum  Ndef_Bluetooth_type_t { NDEF_BLUETOOTH_BREDR, NDEF_BLUETOOTH_BLE }
 

Enumerates Bluetooth protocols.

More...

Functions

uint16_t NDEF_ReadBluetoothOOB (sRecordInfo_t *pRecord, Ndef_Bluetooth_OOB_t *pBluetooth)
 This function reads a NDEF record and retrieves Bluetooth (BR/EDR or BLE) OOB information if present.
uint16_t NDEF_AppendBluetoothOOB (Ndef_Bluetooth_OOB_t *pBluetooth, char *RecordID, I2C *mi2cChannel)
 This function appends a Bluetooth OOB record to the NDEF message, using the OOB data given in the input structure.
uint32_t NDEF_GetBluetoothOOBLength (Ndef_Bluetooth_OOB_t *pBluetooth)
 This function computeS the payload size for the OOB, using the data given in the input `Ndef_Bluetooth_OOB_t` structure.

Detailed Description

This file help to manage a NDEF file representing a Bluetooth pairing info.

This file help to manage Bluetooth NDEF file.

Author:
MMY Application Team
Version:
Revision:
2475
Date:
Date:
2016-06-24 12:11:59 +0200 (Fri, 24 Jun 2016)
Attention:

© COPYRIGHT 2016 STMicroelectronics

Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.st.com/myliberty

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. See the License for the specific language governing permissions and limitations under the License.

Definition in file lib_NDEF_Bluetooth.h.