Microchip® Advanced Software Framework

thirdparty/wireless/ble_sdk/ble_services/link_loss/link_loss.c File Reference

Linkloss service.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

#include "link_loss.h"

Functions

void init_linkloss_service (gatt_service_handler_t *linkloss_serv)
 Linkloss service initialization. More...
 
at_ble_status_t lls_alert_level_read (at_ble_handle_t conn_handle, at_ble_handle_t char_handle)
 Send the Read request to link loss handler Read value will be reported via AT_BLE_CHARACTERISTIC_READ_RESPONSE event. More...
 
at_ble_status_t lls_alert_level_write (at_ble_handle_t conn_handle, at_ble_handle_t char_handle, link_loss_alert_level_t alert_level)
 write a characteristic to Link Loss Characteristics More...
 
int8_t lls_alert_read_response (at_ble_characteristic_read_response_t *read_resp, gatt_lls_char_handler_t *lls_handler)
 Read Link Loss Alert Value. More...
 
at_ble_status_t lls_primary_service_define (gatt_service_handler_t *lls_service)
 linkloss service definition More...
 
uint8_t lls_set_alert_value (at_ble_characteristic_changed_t *change_params, gatt_service_handler_t *lls_handler)
 Setting the alert value of linkloss service. More...
 

Variables

uint8_t linkloss_initial_value = 0
 
static const char * lls_gs_str [] = {"NO_ALERT", "MILD_ALERT", "HIGH_ALERT"}
 

uint8_t linkloss_initial_value = 0

Referenced by init_linkloss_service().

const char* lls_gs_str[] = {"NO_ALERT", "MILD_ALERT", "HIGH_ALERT"}
static

Referenced by lls_set_alert_value().