MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
mip_definitions.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
6 
7 namespace mip::metadata
8 {
9 
10 struct FieldInfo;
11 struct DescriptorSetInfo;
12 
13 // A list of const DescriptorSetInfo pointers.
14 // This is a view of an array of const pointers to const DescriptorSetInfos.
16 
17 const DescriptorSetInfo* findDescriptorSet(const DescriptorSetSpan& descriptorSets, uint8_t descriptor);
18 const FieldInfo* findField(const DescriptorSetSpan& descriptorSets, mip::CompositeDescriptor descriptor);
19 const FieldInfo* findField(const DescriptorSetInfo& ds_info, uint8_t field_desc, bool check_shared_data=true);
20 
21 } // namespace mip::metadata
mip_descriptors.hpp
mip::metadata
Definition: commands_3dm.hpp:10
mip::metadata::findField
const FieldInfo * findField(const DescriptorSetSpan &descriptorSets, mip::CompositeDescriptor descriptor)
Searches for field metadata info by descriptor ID.
Definition: mip_definitions.cpp:41
microstrain::Span
Implementation of std::span from C++20.
Definition: span.hpp:40
mip::metadata::findDescriptorSet
const DescriptorSetInfo * findDescriptorSet(const DescriptorSetSpan &descriptorSets, uint8_t descriptor)
Searches for a descriptor set in a list of descriptor sets.
Definition: mip_definitions.cpp:22
mip::metadata::FieldInfo
Definition: mip_structures.hpp:216
mip::metadata::DescriptorSetInfo
Definition: mip_structures.hpp:223
mip::CompositeDescriptor
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:21
span.hpp