MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Public Member Functions | Public Attributes | List of all members
mip::metadata::FunctionBits Struct Reference

#include <mip_structures.hpp>

Inheritance diagram for mip::metadata::FunctionBits:
mip::metadata::FieldAttributes mip::metadata::ParamAttributes

Public Member Functions

constexpr FunctionBits ()=default
 
constexpr FunctionBits (bool w, bool r, bool s, bool l, bool d)
 
constexpr bool canWrite () const
 
constexpr bool canRead () const
 
constexpr bool canSave () const
 
constexpr bool canLoad () const
 
constexpr bool canReset () const
 
constexpr FunctionBitssetCanWrite (bool w)
 
constexpr FunctionBitssetCanRead (bool r)
 
constexpr FunctionBitssetCanSave (bool s)
 
constexpr FunctionBitssetCanLoad (bool l)
 
constexpr FunctionBitssetCanReset (bool d)
 
constexpr bool has (mip::FunctionSelector function) const
 

Public Attributes

uint8_t bits = 0x00
 

Constructor & Destructor Documentation

◆ FunctionBits() [1/2]

constexpr mip::metadata::FunctionBits::FunctionBits ( )
constexprdefault

◆ FunctionBits() [2/2]

constexpr mip::metadata::FunctionBits::FunctionBits ( bool  w,
bool  r,
bool  s,
bool  l,
bool  d 
)
inlineconstexpr

Member Function Documentation

◆ canLoad()

constexpr bool mip::metadata::FunctionBits::canLoad ( ) const
inlineconstexpr

◆ canRead()

constexpr bool mip::metadata::FunctionBits::canRead ( ) const
inlineconstexpr

◆ canReset()

constexpr bool mip::metadata::FunctionBits::canReset ( ) const
inlineconstexpr

◆ canSave()

constexpr bool mip::metadata::FunctionBits::canSave ( ) const
inlineconstexpr

◆ canWrite()

constexpr bool mip::metadata::FunctionBits::canWrite ( ) const
inlineconstexpr

◆ has()

constexpr bool mip::metadata::FunctionBits::has ( mip::FunctionSelector  function) const
inlineconstexpr

◆ setCanLoad()

constexpr FunctionBits& mip::metadata::FunctionBits::setCanLoad ( bool  l)
inlineconstexpr

◆ setCanRead()

constexpr FunctionBits& mip::metadata::FunctionBits::setCanRead ( bool  r)
inlineconstexpr

◆ setCanReset()

constexpr FunctionBits& mip::metadata::FunctionBits::setCanReset ( bool  d)
inlineconstexpr

◆ setCanSave()

constexpr FunctionBits& mip::metadata::FunctionBits::setCanSave ( bool  s)
inlineconstexpr

◆ setCanWrite()

constexpr FunctionBits& mip::metadata::FunctionBits::setCanWrite ( bool  w)
inlineconstexpr

Member Data Documentation

◆ bits

uint8_t mip::metadata::FunctionBits::bits = 0x00

The documentation for this struct was generated from the following file: