MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mip::commands_3dm::EventTrigger Struct Reference

#include <commands_3dm.hpp>

Classes

struct  CombinationParams
 
struct  GpioParams
 
union  Parameters
 
struct  Response
 
struct  ThresholdParams
 

Public Types

enum  Type : uint8_t { Type::NONE = 0, Type::GPIO = 1, Type::THRESHOLD = 2, Type::COMBINATION = 3 }
 

Public Member Functions

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

Static Public Member Functions

static EventTrigger create_sld_all (::mip::FunctionSelector function)
 

Public Attributes

FunctionSelector function = static_cast<FunctionSelector>(0)
 Parameters. More...
 
uint8_t instance = 0
 Trigger number. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to all instances. More...
 
Type type = static_cast<Type>(0)
 Type of trigger to configure. More...
 
Parameters parameters
 

Static Public Attributes

static constexpr const uint8_t DESCRIPTOR_SET = ::mip::commands_3dm::DESCRIPTOR_SET
 Descriptors. More...
 
static constexpr const uint8_t FIELD_DESCRIPTOR = ::mip::commands_3dm::CMD_EVENT_TRIGGER_CONFIG
 
static constexpr const CompositeDescriptor DESCRIPTOR = {DESCRIPTOR_SET, FIELD_DESCRIPTOR}
 
static constexpr const char * NAME = "EventTrigger"
 
static constexpr const char * DOC_NAME = "Event Trigger Configuration"
 
static constexpr const bool HAS_FUNCTION_SELECTOR = true
 

Member Enumeration Documentation

◆ Type

Enumerator
NONE 

No trigger selected. The state will always be inactive.

GPIO 

Trigger based on the state of a GPIO pin. See GpioParams.

THRESHOLD 

Compare a data quantity against a high and low threshold. See ThresholdParams.

COMBINATION 

Logical combination of two or more triggers. See CombinationParams.

Member Function Documentation

◆ asTuple() [1/2]

auto mip::commands_3dm::EventTrigger::asTuple ( )
inline

◆ asTuple() [2/2]

auto mip::commands_3dm::EventTrigger::asTuple ( ) const
inline

◆ create_sld_all()

static EventTrigger mip::commands_3dm::EventTrigger::create_sld_all ( ::mip::FunctionSelector  function)
inlinestatic

◆ extract()

void mip::commands_3dm::EventTrigger::extract ( Serializer serializer)

◆ insert()

void mip::commands_3dm::EventTrigger::insert ( Serializer serializer) const

Serialization.

Member Data Documentation

◆ DESCRIPTOR

constexpr const CompositeDescriptor mip::commands_3dm::EventTrigger::DESCRIPTOR = {DESCRIPTOR_SET, FIELD_DESCRIPTOR}
staticconstexpr

◆ DESCRIPTOR_SET

constexpr const uint8_t mip::commands_3dm::EventTrigger::DESCRIPTOR_SET = ::mip::commands_3dm::DESCRIPTOR_SET
staticconstexpr

Descriptors.

◆ DOC_NAME

constexpr const char* mip::commands_3dm::EventTrigger::DOC_NAME = "Event Trigger Configuration"
staticconstexpr

◆ FIELD_DESCRIPTOR

constexpr const uint8_t mip::commands_3dm::EventTrigger::FIELD_DESCRIPTOR = ::mip::commands_3dm::CMD_EVENT_TRIGGER_CONFIG
staticconstexpr

◆ function

FunctionSelector mip::commands_3dm::EventTrigger::function = static_cast<FunctionSelector>(0)

◆ HAS_FUNCTION_SELECTOR

constexpr const bool mip::commands_3dm::EventTrigger::HAS_FUNCTION_SELECTOR = true
staticconstexpr

◆ instance

uint8_t mip::commands_3dm::EventTrigger::instance = 0

Trigger number. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to all instances.

◆ NAME

constexpr const char* mip::commands_3dm::EventTrigger::NAME = "EventTrigger"
staticconstexpr

◆ parameters

Parameters mip::commands_3dm::EventTrigger::parameters

◆ type

Type mip::commands_3dm::EventTrigger::type = static_cast<Type>(0)

Type of trigger to configure.


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