MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
src
cpp
mip
metadata
mip_definitions.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
microstrain/common/span.hpp
>
4
#include <
mip/mip_descriptors.hpp
>
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.
15
using
DescriptorSetSpan
=
microstrain::Span<DescriptorSetInfo const* const>
;
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
Generated by
1.8.17