• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 The Pigweed Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 //     https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 #include "pw_bluetooth_sapphire/internal/host/gatt/gatt_defs.h"
16 
17 namespace bt::gatt {
18 
ServiceData(ServiceKind kind,att::Handle start,att::Handle end,const UUID & type)19 ServiceData::ServiceData(ServiceKind kind,
20                          att::Handle start,
21                          att::Handle end,
22                          const UUID& type)
23     : kind(kind), range_start(start), range_end(end), type(type) {}
24 
CharacteristicData(Properties props,std::optional<ExtendedProperties> ext_props,att::Handle handle,att::Handle value_handle,const UUID & type)25 CharacteristicData::CharacteristicData(
26     Properties props,
27     std::optional<ExtendedProperties> ext_props,
28     att::Handle handle,
29     att::Handle value_handle,
30     const UUID& type)
31     : properties(props),
32       extended_properties(ext_props),
33       handle(handle),
34       value_handle(value_handle),
35       type(type) {}
36 
DescriptorData(att::Handle handle,const UUID & type)37 DescriptorData::DescriptorData(att::Handle handle, const UUID& type)
38     : handle(handle), type(type) {}
39 
40 }  // namespace bt::gatt
41