![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
This service exposes a control point to allow a peer device to control LEDs and switched on the device. More...
This service exposes a control point to allow a peer device to control LEDs and switched on the device.
Enumerations | |
| enum | e_ble_lss_char_idx_t { BLE_LSS_SWITCH_STATE_IDX, BLE_LSS_SWITCH_STATE_CLI_CNFG_IDX, BLE_LSS_BLINK_RATE_IDX } |
| LED Switch characteristic Index. More... | |
| enum | e_ble_lss_event_t { BLE_LSS_EVENT_SWITCH_STATE_CLI_CNFG_WRITE_REQ = BLE_SERVS_ATTR_EVENT(BLE_LSS_SWITCH_STATE_CLI_CNFG_IDX, BLE_SERVS_WRITE_REQ), BLE_LSS_EVENT_SWITCH_STATE_CLI_CNFG_WRITE_COMP = BLE_SERVS_ATTR_EVENT(BLE_LSS_SWITCH_STATE_CLI_CNFG_IDX, BLE_SERVS_WRITE_COMP), BLE_LSS_EVENT_SWITCH_STATE_CLI_CNFG_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_LSS_SWITCH_STATE_CLI_CNFG_IDX, BLE_SERVS_READ_REQ), BLE_LSS_EVENT_BLINK_RATE_WRITE_REQ = BLE_SERVS_ATTR_EVENT(BLE_LSS_BLINK_RATE_IDX, BLE_SERVS_WRITE_REQ), BLE_LSS_EVENT_BLINK_RATE_WRITE_COMP = BLE_SERVS_ATTR_EVENT(BLE_LSS_BLINK_RATE_IDX, BLE_SERVS_WRITE_COMP), BLE_LSS_EVENT_BLINK_RATE_READ_REQ = BLE_SERVS_ATTR_EVENT(BLE_LSS_BLINK_RATE_IDX, BLE_SERVS_READ_REQ) } |
| LED Switch event type. More... | |
Functions | |
| ble_status_t | R_BLE_LSS_NotifySwitchState (uint16_t conn_hdl, const uint8_t *p_value) |
| Send notification of Switch State characteristic value to the remote device. More... | |
| ble_status_t | R_BLE_LSS_SetSwitchStateCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
| Set Switch State cli cnfg descriptor value to the local GATT database. More... | |
| ble_status_t | R_BLE_LSS_GetSwitchStateCliCnfg (uint16_t conn_hdl, uint16_t *p_value) |
| Get Switch State cli cnfg descriptor value from the local GATT database. More... | |
| ble_status_t | R_BLE_LSS_SetBlinkRate (const uint8_t *p_value) |
| Set LED Blink Rate characteristic value to the local GATT database. More... | |
| ble_status_t | R_BLE_LSS_GetBlinkRate (uint8_t *p_value) |
| Get LED Blink Rate characteristic value from the local GATT database. More... | |
| ble_status_t | R_BLE_LSS_Init (ble_servs_app_cb_t cb) |
| Initialize LED Switch service. More... | |
| enum e_ble_lss_char_idx_t |
LED Switch characteristic Index.
| enum e_ble_lss_event_t |
LED Switch event type.
| ble_status_t R_BLE_LSS_NotifySwitchState | ( | uint16_t | conn_hdl, |
| const uint8_t * | p_value | ||
| ) |
Send notification of Switch State characteristic value to the remote device.
| [in] | conn_hdl | Connection handle. |
| [in] | p_value | Characteristic value to send. |
| ble_status_t R_BLE_LSS_SetSwitchStateCliCnfg | ( | uint16_t | conn_hdl, |
| const uint16_t * | p_value | ||
| ) |
Set Switch State cli cnfg descriptor value to the local GATT database.
| [in] | conn_hdl | Connection handle. |
| [in] | p_value | Descriptor value to set. |
| ble_status_t R_BLE_LSS_GetSwitchStateCliCnfg | ( | uint16_t | conn_hdl, |
| uint16_t * | p_value | ||
| ) |
Get Switch State cli cnfg descriptor value from the local GATT database.
| [in] | conn_hdl | Connection handle. |
| [in] | p_value | Output location for the acquired descriptor value. |
| ble_status_t R_BLE_LSS_SetBlinkRate | ( | const uint8_t * | p_value | ) |
Set LED Blink Rate characteristic value to the local GATT database.
| [in] | p_value | Characteristic value to set. |
| ble_status_t R_BLE_LSS_GetBlinkRate | ( | uint8_t * | p_value | ) |
Get LED Blink Rate characteristic value from the local GATT database.
| [in] | p_value | Output location for the acquired descriptor value. |
| ble_status_t R_BLE_LSS_Init | ( | ble_servs_app_cb_t | cb | ) |