MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
Public Types | Public Member Functions | Public Attributes | List of all members
mip::commands_3dm::EventAction::GpioParams Struct Reference

#include <commands_3dm.hpp>

Public Types

enum  Mode : uint8_t {
  Mode::DISABLED = 0, Mode::ACTIVE_HIGH = 1, Mode::ACTIVE_LOW = 2, Mode::ONESHOT_HIGH = 5,
  Mode::ONESHOT_LOW = 6, Mode::TOGGLE = 7
}
 

Public Member Functions

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

Public Attributes

uint8_t pin = 0
 Parameters. More...
 
Mode mode = static_cast<Mode>(0)
 Behavior of the pin. More...
 

Member Enumeration Documentation

◆ Mode

Enumerator
DISABLED 

Pin state will not be changed.

ACTIVE_HIGH 

Pin will be set high when the trigger is active and low otherwise.

ACTIVE_LOW 

Pin will be set low when the trigger is active and high otherwise.

ONESHOT_HIGH 

Pin will be set high each time the trigger activates. It will not be set low.

ONESHOT_LOW 

Pin will be set low each time the trigger activates. It will not be set high.

TOGGLE 

Pin will change to the opposite state each time the trigger activates.

Member Function Documentation

◆ extract()

void mip::commands_3dm::EventAction::GpioParams::extract ( Serializer serializer)

◆ insert()

void mip::commands_3dm::EventAction::GpioParams::insert ( Serializer serializer) const

Serialization.

Member Data Documentation

◆ mode

Mode mip::commands_3dm::EventAction::GpioParams::mode = static_cast<Mode>(0)

Behavior of the pin.

◆ pin

uint8_t mip::commands_3dm::EventAction::GpioParams::pin = 0

Parameters.

GPIO pin number.


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