Struct OpenSkyhawk::Pdu::Latch
ClassList > OpenSkyhawk > Pdu > Latch
A condition that must hold setMs to raise and its clear condition holdclearMs to drop.
#include <RailMonitor.h>
Public Attributes
| Type | Name |
|---|---|
| bool | on = false |
| bool | pending = false |
| uint32_t | since = 0 |
Public Functions
| Type | Name |
|---|---|
| void | reset () |
| void | update (bool cond, bool clear, uint32_t setMs, uint32_t clearMs, uint32_t nowMs) Advance the latch. cond raises it,clear (evaluated while on) drops it. |
Public Attributes Documentation
variable on
bool OpenSkyhawk::Pdu::Latch::on;
variable pending
bool OpenSkyhawk::Pdu::Latch::pending;
variable since
uint32_t OpenSkyhawk::Pdu::Latch::since;
Public Functions Documentation
function reset
inline void OpenSkyhawk::Pdu::Latch::reset ()
function update
Advance the latch. cond raises it,clear (evaluated while on) drops it.
void OpenSkyhawk::Pdu::Latch::update (
bool cond,
bool clear,
uint32_t setMs,
uint32_t clearMs,
uint32_t nowMs
)
The documentation for this class was generated from the following file Firmware/Libraries/PowerMonitor/RailMonitor.h