roo_monitoring
API Documentation for roo_monitoring
Loading...
Searching...
No Matches
common.h File Reference
#include <Arduino.h>
#include <stdint.h>
#include <vector>
#include "roo_io/fs/filesystem.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_monitoring::Filename
 Helper class for generating filenames corresponding to timestamps. More...
 

Namespaces

namespace  roo_monitoring
 Umbrella header for the roo_monitoring module.
 

Functions

constexpr char roo_monitoring::toHexDigit (int d)
 Converts a 0-15 value to an uppercase hex digit.
 
String roo_monitoring::subdir (String base, const String &sub)
 Returns a path formed by joining the base directory and subdirectory.
 
String roo_monitoring::filepath (String dir, int64_t file)
 Returns a file path for the given directory and timestamp-like value.
 
std::vector< int64_t > roo_monitoring::listFiles (roo_io::Mount &fs, const char *dirname)
 Lists timestamp-named files in the directory and returns their timestamps.
 

Variables

static const int roo_monitoring::kRangeLength = 4
 Number of base-4 digits used per range.
 
static const int roo_monitoring::kRangeElementCount = 1 << (kRangeLength << 1)
 Number of items in a range (4^(kRangeLength)).