This is the client for the Reference Time Update Service Service.
More...
This is the client for the Reference Time Update Service Service.
|
#define | BLE_RTUC_TUCP_UUID (0x2A16) |
|
#define | BLE_RTUC_TUCP_LEN (1) |
|
#define | BLE_RTUC_TUS_UUID (0x2A17) |
|
#define | BLE_RTUC_TUS_LEN (2) |
|
◆ e_ble_rtuc_tucp_time_update_control_point_t
Time Update Control Point Time Update Control Point enumeration.
Enumerator |
---|
BLE_RTUC_TUCP_TIME_UPDATE_CONTROL_POINT_GET_REFERENCE_UPDATE | Get Reference Update
|
BLE_RTUC_TUCP_TIME_UPDATE_CONTROL_POINT_CANCEL_REFERENCE_UPDATE | Cancel Reference Update
|
◆ e_ble_rtuc_tus_current_state_t
Time Update State Current State enumeration.
Enumerator |
---|
BLE_RTUC_TUS_CURRENT_STATE_IDLE | Idle
|
BLE_RTUC_TUS_CURRENT_STATE_UPDATE_PENDING | Update Pending
|
◆ e_ble_rtuc_tus_result_t
Time Update State Result enumeration.
Enumerator |
---|
BLE_RTUC_TUS_RESULT_SUCCESSFUL | Successful
|
BLE_RTUC_TUS_RESULT_CANCELED | Canceled
|
BLE_RTUC_TUS_RESULT_NO_CONNECTION_TO_REFERENCE | No Connection To Reference
|
BLE_RTUC_TUS_RESULT_REFERENCE_RESPONDED_WITH_AN_ERROR | Reference responded with an error
|
BLE_RTUC_TUS_RESULT_TIMEOUT | Timeout
|
BLE_RTUC_TUS_RESULT_UPDATE_NOT_ATTEMPTED_AFTER_RESET | Update not attempted after reset
|
◆ e_ble_rtuc_char_idx_t
Reference Time Update Service characteristic ID.
◆ e_ble_rtuc_event_t
Reference Time Update Service client event type.
◆ R_BLE_RTUC_GetTucpAttrHdl()
Get Time Update Control Point attribute handles.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
- Returns
- ble_status_t
◆ R_BLE_RTUC_ReadTus()
Read Time Update State characteristic value from the remote GATT database.
- Parameters
-
[in] | conn_hdl | Connection handle. |
- Returns
- ble_status_t
◆ R_BLE_RTUC_GetTusAttrHdl()
Get Time Update State attribute handles.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
- Returns
- ble_status_t
◆ R_BLE_RTUC_Init()
Initialize Reference Time Update Service client.
- Parameters
-
- Returns
- ble_status_t
◆ R_BLE_RTUC_ServDiscCb()
void R_BLE_RTUC_ServDiscCb |
( |
uint16_t |
conn_hdl, |
|
|
uint8_t |
serv_idx, |
|
|
uint16_t |
type, |
|
|
void * |
p_param |
|
) |
| |
Reference Time Update Service client discovery callback.
- Parameters
-
[in] | conn_hdl | Connection handle |
[in] | serv_idx | Service instance index. |
[in] | type | Service discovery event type. |
[in] | p_param | Service discovery event parameter. |
- Returns
- ble_status_t
◆ R_BLE_RTUC_GetServAttrHdl()
Get Reference Time Update Service client attribute handle.
- Parameters
-
[in] | p_addr | Bluetooth device address for the attribute handles. |
[out] | p_hdl | The pointer to store the retrieved attribute handles. |
◆ R_BLE_RTUC_TimeUpdate_WriteWithoutRsp()
ble_status_t R_BLE_RTUC_TimeUpdate_WriteWithoutRsp |
( |
uint16_t |
conn_hdl, |
|
|
const uint8_t * |
p_value |
|
) |
| |
Time Update without response characteristic value to remote GATT database.
- Parameters
-
[in] | conn_hdl | - Connection handle. |
[in] | p_value | - Pointer to Time Update without response characteristic value to write. |
- Returns
- ble_status_t