#include "at_ble_api.h"
#include "gattm_task.h"
#include "gattc_task.h"
#include "string.h"
#include "error.h"
#include "cmn_defs.h"
Functions | |
at_ble_status_t | at_ble_characteristic_value_get (at_ble_handle_t handle, uint8_t *value, uint16_t *actual_read_len) |
Reads A characteristic value. More... | |
at_ble_status_t | at_ble_characteristic_value_set (at_ble_handle_t handle, uint8_t *value, uint16_t len) |
Sets A characteristic value. More... | |
at_ble_status_t | at_ble_indication_send (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle) |
Sends an Indication AT_BLE_INDICATION_CONFIRMED is received when indication has been correctly received by peer device. More... | |
at_ble_status_t | at_ble_notification_send (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle) |
Sends a Notification AT_BLE_NOTIFICATION_CONFIRMED is received as soon as notification PDU has been sent over the air. More... | |
at_ble_status_t | at_ble_primary_service_define (at_ble_uuid_t *uuid, at_ble_handle_t *service_handle, at_ble_included_service_t *included_list, uint16_t included_count, at_ble_characteristic_t *charactristic_list, uint16_t char_count) |
Defines a new Primary service along with its included services and characteristics. More... | |
at_ble_status_t | at_ble_secondary_service_define (at_ble_uuid_t *uuid, at_ble_handle_t *service_handle, at_ble_included_service_t *included_list, uint16_t included_count, at_ble_characteristic_t *charactristic_list, uint16_t char_count) |
Defines a new Secondary service along with its included services and characteristics. More... | |
at_ble_status_t | at_ble_service_changed_notification_send (at_ble_handle_t conn_handle, at_ble_handle_t start_handle, at_ble_handle_t end_handle) |
Sends a Service changed Notification. More... | |
static at_ble_status_t | at_ble_service_define (at_ble_uuid_t *uuid, at_ble_handle_t *service_handle, at_ble_included_service_t *included_list, uint16_t included_count, at_ble_characteristic_t *charactristic_list, uint16_t char_count, bool primary) |
static uint16_t | att_permissions (at_ble_attr_permissions_t permissions, char Read, char Write) |
static uint16_t | char_permissions (at_ble_characteristic_t *characteristic) |
static uint8_t | char_properties (at_ble_characteristic_t *characteristic) |
static ATT_ERR | client_conf_define (at_ble_handle_t service_handle, at_ble_characteristic_t *characteristic) |
static ATT_ERR | extended_properties_define (at_ble_handle_t service_handle, at_ble_characteristic_t *characteristic) |
static bool | is_client_conf_defined (at_ble_characteristic_t *characteristic) |
static bool | is_extended_properties_defined (at_ble_characteristic_t *characteristic) |
static bool | is_presentation_format_defined (at_ble_characteristic_t *characteristic) |
static bool | is_server_conf_defined (at_ble_characteristic_t *characteristic) |
static bool | is_user_desc_defined (at_ble_characteristic_t *characteristic) |
static ATT_ERR | presentation_format_define (at_ble_handle_t service_handle, at_ble_characteristic_t *characteristic) |
static ATT_ERR | server_conf_define (at_ble_handle_t service_handle, at_ble_characteristic_t *characteristic) |
static ATT_ERR | user_description_define (at_ble_handle_t service_handle, at_ble_characteristic_t *characteristic) |
static uint8_t | uuid_size (at_ble_uuid_t *uuid) |
Variables | |
static uint8_t | char_uuid [] = {0x03, 0x28} |
static uint8_t | client_conf_uuid [] = {0x02, 0x29} |
static uint8_t | extended_props_uuid [] = {0x00, 0x29} |
static uint8_t | include_uuid [] = {0x02, 0x28} |
static uint8_t | presentation_format_uuid [] = {0x04, 0x29} |
static uint8_t | primary_service_uuid [] = {0x00, 0x28} |
static uint8_t | secondary_service_uuid [] = {0x01, 0x28} |
static uint8_t | server_conf_uuid [] = {0x03, 0x29} |
static uint8_t | user_desc_uuid [] = {0x01, 0x29} |
|
static |
References at_ble_att_error(), AT_BLE_UUID_128, AT_BLE_UUID_128_LEN, AT_BLE_UUID_16, AT_BLE_UUID_32, AT_BLE_UUID_INVALID, ATT_ERR_NO_ERROR, char_permissions(), char_properties(), char_uuid, at_ble_characteristic_t::char_val_handle, client_conf_define(), ENABLE, at_ble_included_service_t::end_group_handle, extended_properties_define(), gattm_add_attribute_req_handler(), gattm_add_svc_req_handler(), gattm_att_set_value_req_handler(), include_uuid, at_ble_characteristic_t::init_value, is_client_conf_defined(), is_extended_properties_defined(), is_presentation_format_defined(), is_server_conf_defined(), is_user_desc_defined(), NULL, PERM, presentation_format_define(), primary_service_uuid, secondary_service_uuid, server_conf_define(), at_ble_included_service_t::service_handle, total_size, at_ble_characteristic_t::user_desc_len, user_description_define(), at_ble_uuid_t::uuid, at_ble_characteristic_t::uuid, at_ble_included_service_t::uuid, uuid_size(), at_ble_characteristic_t::value_init_len, and at_ble_characteristic_t::value_max_len.
Referenced by at_ble_primary_service_define(), and at_ble_secondary_service_define().
|
static |
References AT_BLE_ATTR_READABLE_NO_AUTHN_REQ_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_REQ_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_REQ_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_REQ_AUTHR, AUTH, ENABLE, and PERM.
Referenced by client_conf_define(), server_conf_define(), and user_description_define().
|
static |
References AT_BLE_ATTR_READABLE_NO_AUTHN_REQ_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_REQ_AUTHR, AT_BLE_ATTR_WRITABLE_NO_AUTHN_REQ_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_REQ_AUTHR, AT_BLE_CHAR_INDICATE, AT_BLE_CHAR_NOTIFY, AT_BLE_CHAR_READ, AT_BLE_CHAR_RELIABLE_WRITE, AT_BLE_CHAR_SIGNED_WRITE, AT_BLE_CHAR_WRITE, AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE, AUTH, ENABLE, PERM, at_ble_characteristic_t::properties, and at_ble_characteristic_t::value_permissions.
Referenced by at_ble_service_define().
|
static |
References is_extended_properties_defined(), and at_ble_characteristic_t::properties.
Referenced by at_ble_service_define().
|
static |
|
static |
|
static |
References AT_BLE_CHAR_INDICATE, AT_BLE_CHAR_NOTIFY, and at_ble_characteristic_t::properties.
Referenced by at_ble_service_define().
|
static |
References AT_BLE_CHAR_RELIABLE_WRITE, AT_BLE_CHAR_WRITEABLE_AUX, and at_ble_characteristic_t::properties.
Referenced by at_ble_service_define(), and char_properties().
|
static |
References NULL, and at_ble_characteristic_t::presentation_format.
Referenced by at_ble_service_define().
|
static |
References AT_BLE_CHAR_BROADCST, and at_ble_characteristic_t::properties.
Referenced by at_ble_service_define().
|
static |
References at_ble_characteristic_t::user_desc_len.
Referenced by at_ble_service_define().
|
static |
References ATT_ERR_NO_ERROR, at_ble_char_presentation_t::description, ENABLE, at_ble_char_presentation_t::exponent, at_ble_char_presentation_t::format, gattm_add_attribute_req_handler(), gattm_att_set_value_req_handler(), at_ble_char_presentation_t::name_space, PERM, at_ble_characteristic_t::presentation_format, presentation_format_uuid, and at_ble_char_presentation_t::unit.
Referenced by at_ble_service_define().
|
static |
|
static |
References AT_BLE_CHAR_WRITEABLE_AUX, ATT_ERR_NO_ERROR, att_permissions(), ENABLE, gattm_add_attribute_req_handler(), gattm_att_set_value_req_handler(), NULL, PERM, at_ble_characteristic_t::properties, at_ble_characteristic_t::user_desc, at_ble_characteristic_t::user_desc_handle, at_ble_characteristic_t::user_desc_len, at_ble_characteristic_t::user_desc_permissions, and user_desc_uuid.
Referenced by at_ble_service_define().
|
static |
References AT_BLE_UUID_128, AT_BLE_UUID_16, AT_BLE_UUID_32, and at_ble_uuid_t::type.
Referenced by at_ble_service_define().
|
static |
Referenced by at_ble_service_define().
|
static |
Referenced by client_conf_define().
|
static |
Referenced by extended_properties_define().
|
static |
Referenced by at_ble_service_define().
|
static |
Referenced by presentation_format_define().
|
static |
Referenced by at_ble_service_define().
|
static |
Referenced by at_ble_service_define().
|
static |
Referenced by server_conf_define().
|
static |
Referenced by user_description_define().