Defines Embedded BLE GAP Class.
Public Member Functions | |
ble_error_t | getAddress (BluetoothAddress addr) |
Generic Bluetooth Controller/Device Management routine. More... | |
ble_error_t | setAddress (BluetoothAddress addr) |
Sets Device' Bluetooth GAP name. More... | |
ble_error_t | getName (char *name) |
Gets Device' Bluetooth GAP name. More... | |
ble_error_t | setName (const char *name) |
Sets Device' Bluetooth GAP name. More... | |
ble_error_t | setAdvertisementData (uint8_t *adv_data, uint8_t length) |
Bluetooth Low Energy Advertisement APIs. More... | |
ble_error_t | startAdvertisements (void) |
Start Advertising. More... | |
ble_error_t | stopAdvertisements (void) |
Stop advertising. More... | |
ble_error_t | startScan (void) |
Bluetooth Low Energy Scan APIs. More... | |
ble_error_t | stopScan (void) |
Stop Scanning of nearby advertising devices. More... | |
Static Public Member Functions | |
static Gap & | getGapInstance (void) |
Gets static singleton instance of Embedded BLE GAP interface. | |
ble_error_t cypress::embedded::Gap::getAddress | ( | BluetoothAddress | addr | ) |
Generic Bluetooth Controller/Device Management routine.
Gets Device' Bluetooth Address.
[out] | addr | Device Bluetooth Address |
ble_error_t cypress::embedded::Gap::setAddress | ( | BluetoothAddress | addr | ) |
Sets Device' Bluetooth GAP name.
[in] | addr | Device Bluetooth Address |
ble_error_t cypress::embedded::Gap::getName | ( | char * | name | ) |
Gets Device' Bluetooth GAP name.
[out] | name | Device Bluetooth Name |
ble_error_t cypress::embedded::Gap::setName | ( | const char * | name | ) |
Sets Device' Bluetooth GAP name.
[in] | name | Device Bluetooth Name |
ble_error_t cypress::embedded::Gap::setAdvertisementData | ( | uint8_t * | adv_data, |
uint8_t | length | ||
) |
Bluetooth Low Energy Advertisement APIs.
Set Advertisement data.
[in] | adv_data | Advertising data payload pointer |
[in] | length | Advertising data payload length |
ble_error_t cypress::embedded::Gap::startAdvertisements | ( | void | ) |
Start Advertising.
ble_error_t cypress::embedded::Gap::stopAdvertisements | ( | void | ) |
Stop advertising.
ble_error_t cypress::embedded::Gap::startScan | ( | void | ) |
Bluetooth Low Energy Scan APIs.
Start Scanning of nearby advertising devices.
ble_error_t cypress::embedded::Gap::stopScan | ( | void | ) |
Stop Scanning of nearby advertising devices.