MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
Namespaces | |
utils | |
Typedefs | |
template<class T > | |
using | Span = microstrain::Span< T > |
Enumerations | |
enum | Type { Type::NONE = 0, Type::CHAR, Type::BOOL, Type::U8, Type::S8, Type::U16, Type::S16, Type::U32, Type::S32, Type::U64, Type::S64, Type::FLOAT, Type::DOUBLE, Type::ENUM, Type::BITS, Type::STRUCT, Type::UNION } |
Functions | |
void * | accessFunctionSelector (void *p) |
template<size_t I, class FieldType > | |
auto & | get (typename EnableForFieldTypes< FieldType >::type &field) |
Gets a reference to parameter 'I' in the struct for the given field. More... | |
constexpr size_t | sizeForBasicType (Type type, const void *info=nullptr) |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL). More... | |
constexpr size_t | sizeForBasicType (const TypeInfo &type) |
using mip::metadata::Span = typedef microstrain::Span<T> |
|
strong |
|
inline |
auto& mip::metadata::get | ( | typename EnableForFieldTypes< FieldType >::type & | field | ) |
Gets a reference to parameter 'I' in the struct for the given field.
I | Index indicating which parameter to access. 0-based. |
FieldType | Type of the MIP field struct. |
field | An instance of the field struct whose member variable will be accessed. |
|
constexpr |
|
constexpr |
Gets the size of a basic type (including bitfields and enums if class_ is not NULL).