MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mip::data_system::GpioState Struct Reference

#include <data_system.hpp>

Public Member Functions

auto asTuple () const
 
auto asTuple ()
 
void insert (Serializer &serializer) const
 Serialization. More...
 
void extract (Serializer &serializer)
 

Public Attributes

uint8_t states = 0
 Parameters. More...
 

Static Public Attributes

static constexpr const uint8_t DESCRIPTOR_SET = ::mip::data_system::DESCRIPTOR_SET
 Descriptors. More...
 
static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::data_system::DATA_GPIO_STATE
 
static constexpr const CompositeDescriptor DESCRIPTOR = {DESCRIPTOR_SET, FIELD_DESCRIPTOR}
 
static constexpr const char * NAME = "GpioState"
 
static constexpr const char * DOC_NAME = "GpioState"
 
static constexpr const bool HAS_FUNCTION_SELECTOR = false
 

Member Function Documentation

◆ asTuple() [1/2]

auto mip::data_system::GpioState::asTuple ( )
inline

◆ asTuple() [2/2]

auto mip::data_system::GpioState::asTuple ( ) const
inline

◆ extract()

void mip::data_system::GpioState::extract ( Serializer serializer)

◆ insert()

void mip::data_system::GpioState::insert ( Serializer serializer) const

Serialization.

Member Data Documentation

◆ DESCRIPTOR

constexpr const CompositeDescriptor mip::data_system::GpioState::DESCRIPTOR = {DESCRIPTOR_SET, FIELD_DESCRIPTOR}
staticconstexpr

◆ DESCRIPTOR_SET

constexpr const uint8_t mip::data_system::GpioState::DESCRIPTOR_SET = ::mip::data_system::DESCRIPTOR_SET
staticconstexpr

Descriptors.

◆ DOC_NAME

constexpr const char* mip::data_system::GpioState::DOC_NAME = "GpioState"
staticconstexpr

◆ FIELD_DESCRIPTOR

constexpr const uint8_t mip::data_system::GpioState::FIELD_DESCRIPTOR = ::mip::data_system::DATA_GPIO_STATE
staticconstexpr

◆ HAS_FUNCTION_SELECTOR

constexpr const bool mip::data_system::GpioState::HAS_FUNCTION_SELECTOR = false
staticconstexpr

◆ NAME

constexpr const char* mip::data_system::GpioState::NAME = "GpioState"
staticconstexpr

◆ states

uint8_t mip::data_system::GpioState::states = 0

Parameters.

Bitfield containing the states for each GPIO pin.
Bit 0 (0x01): pin 1
Bit 1 (0x02): pin 2
Bit 2 (0x04): pin 3
Bit 3 (0x08): pin 4
Bits for pins that don't exist will read as 0.


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