2020-12-24 22:12:59 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "configuration.h"
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
2020-12-25 16:10:38 -08:00
|
|
|
enum reportTypes { TX_LOG, RX_LOG, RX_ALL_LOG };
|
|
|
|
|
|
|
|
|
|
void logAirtime(reportTypes reportType, uint32_t airtime_ms);
|
|
|
|
|
|
2020-12-26 22:39:43 -08:00
|
|
|
void airtimeCalculator();
|
|
|
|
|
|
2020-12-25 16:10:38 -08:00
|
|
|
uint8_t currentHourIndex();
|
2020-12-26 22:39:43 -08:00
|
|
|
uint8_t getHoursToLog();
|
2020-12-25 16:10:38 -08:00
|
|
|
|
2020-12-26 22:39:43 -08:00
|
|
|
uint32_t getSecondsSinceBoot();
|
2020-12-25 16:10:38 -08:00
|
|
|
|
|
|
|
|
uint16_t *airtimeReport(reportTypes reportType);
|