TX Service.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#include "tx_power.h"
Functions | |
void | init_tx_power_service (gatt_service_handler_t *tx_power_serv) |
Tx power service initialization. More... | |
at_ble_status_t | txps_primary_service_define (gatt_service_handler_t *txps_primary_service) |
Tx power service definition. More... | |
Variables | |
int8_t | tx_power_initial_value = DEFAULT_TX_PWR_VALUE |
void init_tx_power_service | ( | gatt_service_handler_t * | tx_power_serv | ) |
Tx power service initialization.
Initialize the tx power service with default values.
References AT_BLE_ATTR_NO_PERMISSIONS, AT_BLE_ATTR_READABLE_NO_AUTHN_NO_AUTHR, AT_BLE_ATTR_READABLE_REQ_AUTHN_NO_AUTHR, AT_BLE_CHAR_READ, AT_BLE_UUID_16, tx_power_initial_value, TX_POWER_LEVEL_CHAR_UUID, and TX_POWER_SERVICE_UUID.
Referenced by pxp_service_init().
at_ble_status_t txps_primary_service_define | ( | gatt_service_handler_t * | txps_primary_service | ) |
Tx power service definition.
Defining the tx power service to the attribute data base.
References at_ble_primary_service_define(), TXPS_CHARACTERISTIC_COUNT, and TXPS_INCLUDED_SERVICE_COUNT.
Referenced by pxp_service_define().
int8_t tx_power_initial_value = DEFAULT_TX_PWR_VALUE |
Referenced by init_tx_power_service().