Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::PinData Struct Reference

Pin informations. More...

#include <PinObserver.h>

Public Attributes

std::function< void(PinTransition)> callback
 The callback function.
 
uint32_t threshold
 Number of periods to trigger an event.
 
uint32_t periodCount
 Number of periods the value was the same.
 
uint64_t lastStateTimestamp
 Timestamp of the last measurement.
 
bool lastState
 The last measured pin state.
 
uint32_t changesCount
 Incremental count of the pin changes.
 
bool reverted
 Whether to revert the pin state.
 

Detailed Description

Pin informations.

Definition at line 45 of file PinObserver.h.

Member Data Documentation

◆ callback

std::function<void(PinTransition)> Boardcore::PinData::callback

The callback function.

Definition at line 47 of file PinObserver.h.

◆ changesCount

uint32_t Boardcore::PinData::changesCount

Incremental count of the pin changes.

Definition at line 52 of file PinObserver.h.

◆ lastState

bool Boardcore::PinData::lastState

The last measured pin state.

Definition at line 51 of file PinObserver.h.

◆ lastStateTimestamp

uint64_t Boardcore::PinData::lastStateTimestamp

Timestamp of the last measurement.

Definition at line 50 of file PinObserver.h.

◆ periodCount

uint32_t Boardcore::PinData::periodCount

Number of periods the value was the same.

Definition at line 49 of file PinObserver.h.

◆ reverted

bool Boardcore::PinData::reverted

Whether to revert the pin state.

Definition at line 53 of file PinObserver.h.

◆ threshold

uint32_t Boardcore::PinData::threshold

Number of periods to trigger an event.

Definition at line 48 of file PinObserver.h.


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