xref: /nrf52832-nimble/packages/NimBLE-latest/nimble/host/services/bas/syscfg.yml (revision 042d53a763ad75cb1465103098bb88c245d95138)
1*042d53a7SEvalZero# Licensed to the Apache Software Foundation (ASF) under one
2*042d53a7SEvalZero# or more contributor license agreements.  See the NOTICE file
3*042d53a7SEvalZero# distributed with this work for additional information
4*042d53a7SEvalZero# regarding copyright ownership.  The ASF licenses this file
5*042d53a7SEvalZero# to you under the Apache License, Version 2.0 (the
6*042d53a7SEvalZero# "License"); you may not use this file except in compliance
7*042d53a7SEvalZero# with the License.  You may obtain a copy of the License at
8*042d53a7SEvalZero#
9*042d53a7SEvalZero#  http://www.apache.org/licenses/LICENSE-2.0
10*042d53a7SEvalZero#
11*042d53a7SEvalZero# Unless required by applicable law or agreed to in writing,
12*042d53a7SEvalZero# software distributed under the License is distributed on an
13*042d53a7SEvalZero# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14*042d53a7SEvalZero# KIND, either express or implied.  See the License for the
15*042d53a7SEvalZero# specific language governing permissions and limitations
16*042d53a7SEvalZero# under the License.
17*042d53a7SEvalZero
18*042d53a7SEvalZerosyscfg.defs:
19*042d53a7SEvalZero    BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM:
20*042d53a7SEvalZero        description: >
21*042d53a7SEvalZero            Defines permissions for reading "Battery Level" characteristics. Can
22*042d53a7SEvalZero            be zero to allow read without extra permissions or combination of:
23*042d53a7SEvalZero                BLE_GATT_CHR_F_READ_ENC
24*042d53a7SEvalZero                BLE_GATT_CHR_F_READ_AUTHEN
25*042d53a7SEvalZero                BLE_GATT_CHR_F_READ_AUTHOR
26*042d53a7SEvalZero        value: 0
27*042d53a7SEvalZero    BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE:
28*042d53a7SEvalZero        description: >
29*042d53a7SEvalZero            Set to 1 to support notification or 0 to disable it.
30*042d53a7SEvalZero        value: 1
31*042d53a7SEvalZero    BLE_SVC_BAS_SYSINIT_STAGE:
32*042d53a7SEvalZero        description: >
33*042d53a7SEvalZero            Sysinit stage for the battery level service.
34*042d53a7SEvalZero        value: 303
35