Class OpenSkyhawk::Pdu::TelemSchedule
ClassList > OpenSkyhawk > Pdu > TelemSchedule
#include <TelemSchedule.h>
Public Static Attributes
| Type | Name |
|---|---|
| constexpr uint32_t | EDGE_MIN_MS = 100per-page edge-send hold-off |
| constexpr uint8_t | PAGES = 3PDU_RAIL_12V, PDU_RAIL_5V, PDU_STATUS. |
| constexpr uint32_t | TELEM_PERIOD_MS = 1000one frame per second per node |
Public Functions
| Type | Name |
|---|---|
| int8_t | next (uint32_t nowMs, const uint8_t flags, bool & periodic) Which page to send now, if any. |
| void | sent (uint8_t slot, uint8_t flags, uint32_t nowMs) Record that page slot went out carryingflags atnowMs . |
| void | start (uint32_t nowMs) Start the clock; the first periodic frame is due one period later. |
Public Static Attributes Documentation
variable EDGE_MIN_MS
per-page edge-send hold-off
constexpr uint32_t OpenSkyhawk::Pdu::TelemSchedule::EDGE_MIN_MS;
variable PAGES
PDU_RAIL_12V, PDU_RAIL_5V, PDU_STATUS.
constexpr uint8_t OpenSkyhawk::Pdu::TelemSchedule::PAGES;
variable TELEM_PERIOD_MS
one frame per second per node
constexpr uint32_t OpenSkyhawk::Pdu::TelemSchedule::TELEM_PERIOD_MS;
Public Functions Documentation
function next
Which page to send now, if any.
int8_t OpenSkyhawk::Pdu::TelemSchedule::next (
uint32_t nowMs,
const uint8_t flags,
bool & periodic
)
Parameters:
nowMsmillis().flagsCurrent flag byte of each page (index = page slot).periodicOut: true for the periodic (window-restarting) send.
Returns:
Page slot 0..PAGES-1, or -1 when nothing is due.
function sent
Record that page slot went out carryingflags atnowMs .
void OpenSkyhawk::Pdu::TelemSchedule::sent (
uint8_t slot,
uint8_t flags,
uint32_t nowMs
)
function start
Start the clock; the first periodic frame is due one period later.
void OpenSkyhawk::Pdu::TelemSchedule::start (
uint32_t nowMs
)
The documentation for this class was generated from the following file Firmware/Libraries/PowerMonitor/TelemSchedule.h