Immediate Alert service.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "immediate_alert.h"
Functions | |
at_ble_status_t | ias_primary_service_define (gatt_service_handler_t *ias_primary_service) |
Immediate alert service definition. More... | |
uint8_t | ias_set_alert_value (at_ble_characteristic_changed_t *change_params, gatt_service_handler_t *ias_handler) |
Setting Alert Level Value of immediate alert service. More... | |
void | init_immediate_alert_service (gatt_service_handler_t *immediate_alert_serv) |
Immediate alert service initialization. More... | |
Variables | |
uint8_t | immediate_alert_initial_value = 0 |
at_ble_status_t ias_primary_service_define | ( | gatt_service_handler_t * | ias_primary_service | ) |
Immediate alert service definition.
Defining Immediate alert service to the attribute data base.
References at_ble_primary_service_define(), IAS_CHARACTERISTIC_COUNT, and IAS_INCLUDED_SERVICE_COUNT.
Referenced by fmp_target_service_define().
uint8_t ias_set_alert_value | ( | at_ble_characteristic_changed_t * | change_params, |
gatt_service_handler_t * | ias_handler | ||
) |
Setting Alert Level Value of immediate alert service.
sets the alert value of the immediate alert service
References at_ble_characteristic_changed_t::char_handle, at_ble_characteristic_changed_t::char_new_value, and INVALID_IAS_PARAM.
Referenced by fmp_target_char_changed_handler().
void init_immediate_alert_service | ( | gatt_service_handler_t * | immediate_alert_serv | ) |
Immediate alert service initialization.
Initialize the Immediate alert service with default values.
References ALERT_LEVEL_CHAR_UUID, AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_WRITABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_WRITABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_CHAR_WRITE_WITHOUT_RESPONSE, AT_BLE_UUID_16, immediate_alert_initial_value, and IMMEDIATE_ALERT_SERVICE_UUID.
Referenced by fmp_target_service_init().
uint8_t immediate_alert_initial_value = 0 |
Referenced by init_immediate_alert_service().