Microchip® Advanced Software Framework

gatt_server.c File Reference
#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. More...
 
at_ble_status_t at_ble_notification_send (at_ble_handle_t conn_handle, at_ble_handle_t attr_handle)
 Sends a Notification. 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 uint8_t char_properties ( at_ble_characteristic_t characteristic)
static
static bool is_client_conf_defined ( at_ble_characteristic_t characteristic)
static
static bool is_extended_properties_defined ( at_ble_characteristic_t characteristic)
static
static bool is_presentation_format_defined ( at_ble_characteristic_t characteristic)
static
static bool is_server_conf_defined ( at_ble_characteristic_t characteristic)
static
static bool is_user_desc_defined ( at_ble_characteristic_t characteristic)
static
static uint8_t uuid_size ( at_ble_uuid_t uuid)
static

uint8_t char_uuid[] = {0x03, 0x28}
static

Referenced by at_ble_service_define().

uint8_t client_conf_uuid[] = {0x02, 0x29}
static

Referenced by client_conf_define().

uint8_t extended_props_uuid[] = {0x00, 0x29}
static
uint8_t include_uuid[] = {0x02, 0x28}
static

Referenced by at_ble_service_define().

uint8_t presentation_format_uuid[] = {0x04, 0x29}
static
uint8_t primary_service_uuid[] = {0x00, 0x28}
static

Referenced by at_ble_service_define().

uint8_t secondary_service_uuid[] = {0x01, 0x28}
static

Referenced by at_ble_service_define().

uint8_t server_conf_uuid[] = {0x03, 0x29}
static

Referenced by server_conf_define().

uint8_t user_desc_uuid[] = {0x01, 0x29}
static

Referenced by user_description_define().