Prusa MINI Firmware overview
GpioEvent Struct Reference

#include <Gpio.h>

Collaboration diagram for GpioEvent:

Public Types

enum  Type {
  NOP, FALL, RISE, SET_VALUE,
  SETM, SETD
}
 

Public Member Functions

 GpioEvent (uint64_t timestamp, pin_type pin_id, GpioEvent::Type event)
 

Public Attributes

uint64_t timestamp
 
pin_type pin_id
 
GpioEvent::Type event
 

Member Enumeration Documentation

◆ Type

Enumerator
NOP 
FALL 
RISE 
SET_VALUE 
SETM 
SETD 
31  {
32  NOP,
33  FALL,
34  RISE,
35  SET_VALUE,
36  SETM,
37  SETD
38  };

Constructor & Destructor Documentation

◆ GpioEvent()

GpioEvent::GpioEvent ( uint64_t  timestamp,
pin_type  pin_id,
GpioEvent::Type  event 
)
43  {
44  this->timestamp = timestamp;
45  this->pin_id = pin_id;
46  this->event = event;
47  }

Member Data Documentation

◆ timestamp

uint64_t GpioEvent::timestamp

◆ pin_id

pin_type GpioEvent::pin_id

◆ event

GpioEvent::Type GpioEvent::event
GpioEvent::pin_id
pin_type pin_id
Definition: Gpio.h:40
GpioEvent::RISE
Definition: Gpio.h:34
GpioEvent::FALL
Definition: Gpio.h:33
GpioEvent::NOP
Definition: Gpio.h:32
GpioEvent::event
GpioEvent::Type event
Definition: Gpio.h:41
GpioEvent::SET_VALUE
Definition: Gpio.h:35
GpioEvent::SETM
Definition: Gpio.h:36
GpioEvent::timestamp
uint64_t timestamp
Definition: Gpio.h:39
GpioEvent::SETD
Definition: Gpio.h:37