Next DST Change Service Application declarations.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "ble_manager.h"
Data Structures | |
struct | gatt_dst_handler |
Macros | |
#define | DST_INVALID_CHAR_HANDLE (0) |
#define | DST_READ_LENGTH (8) |
#define | DST_READ_OFFSET (0) |
Typedefs | |
typedef struct gatt_dst_handler | gatt_dst_handler_t |
Functions | |
at_ble_status_t | tis_dst_change_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle) |
Send the Read request to the current time characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event. More... | |
int8_t | tis_dst_change_read_response (at_ble_characteristic_read_response_t *read_resp, gatt_dst_handler_t *dst_handler) |
Read response handler for read response. More... | |
#define DST_INVALID_CHAR_HANDLE (0) |
Referenced by tis_dst_change_read().
#define DST_READ_LENGTH (8) |
Referenced by tis_dst_change_read().
#define DST_READ_OFFSET (0) |
Referenced by tis_dst_change_read().
typedef struct gatt_dst_handler gatt_dst_handler_t |
at_ble_status_t tis_dst_change_read | ( | at_ble_handle_t | conn_handle, |
at_ble_handle_t | char_handle | ||
) |
Send the Read request to the current time characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.
[in] | conn_handle | handle of the connection |
[in] | char_handle | handle of the characteristic |
Send the Read request to the current time characteristic Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event.
References at_ble_characteristic_read(), AT_BLE_INVALID_STATE, DST_INVALID_CHAR_HANDLE, DST_READ_LENGTH, and DST_READ_OFFSET.
Referenced by app_read_response_cb().
int8_t tis_dst_change_read_response | ( | at_ble_characteristic_read_response_t * | read_resp, |
gatt_dst_handler_t * | dst_handler | ||
) |
Read response handler for read response.
[in] | read_value | read response data available form at_ble_characteristic_read_response_t |
Read response handler for read response.
References AT_BLE_SUCCESS, at_ble_characteristic_read_response_t::char_handle, at_ble_characteristic_read_response_t::char_value, DBG_LOG, DBG_LOG_CONT, gatt_dst_handler::dst_char_handle, and at_ble_characteristic_read_response_t::status.
Referenced by time_info_characteristic_read_response(), and time_info_notification_handler().