SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::SystemHz Class Reference

Reports the current clock speed of the ESP. More...

#include <sensesp/sensors/system_info.h>

Inheritance diagram for sensesp::SystemHz:
[legend]

Public Member Functions

 SystemHz ()
virtual ~SystemHz ()
String get_value_name ()
Public Member Functions inherited from sensesp::ValueProducer< float >
 ValueProducer ()
 ValueProducer (const float &initial_value)
virtual const float & get () const
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< float, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type connect_to (std::shared_ptr< VConsumer > consumer)
 Connect a producer to a transform with a different input type.
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< float, typenameVConsumer::input_type >::value, VConsumer * >::type connect_to (VConsumer *consumer)
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< float, typenameVConsumer::input_type >::value, VConsumer * >::type connect_to (VConsumer &consumer)
void emit (const float &new_value)
Public Member Functions inherited from sensesp::Observable
 Observable ()
 Observable (Observable &&other)
 Move constructor.
void notify ()
int attach (std::function< void()> observer)
 Attach an observer callback.
void detach (int id)
 Remove a previously attached observer by its ID.

Protected Member Functions

void update ()

Protected Attributes

uint32_t last_tick_count_ = 0
elapsedMillis elapsed_millis_
reactesp::RepeatEvent * repeat_event_ = nullptr
Protected Attributes inherited from sensesp::ValueProducer< float >
float output_

Detailed Description

Reports the current clock speed of the ESP.

Nothing about it is configurable, except whether or not it appears in your project's output. That is configured with SensESPAppBuilder.

Definition at line 47 of file system_info.h.

Constructor & Destructor Documentation

◆ SystemHz()

sensesp::SystemHz::SystemHz ( )
inline

Definition at line 49 of file system_info.h.

Here is the call graph for this function:

◆ ~SystemHz()

virtual sensesp::SystemHz::~SystemHz ( )
inlinevirtual

Definition at line 53 of file system_info.h.

Here is the call graph for this function:

Member Function Documentation

◆ get_value_name()

String sensesp::SystemHz::get_value_name ( )
inline

Definition at line 58 of file system_info.h.

◆ update()

void sensesp::SystemHz::update ( )
protected

Definition at line 12 of file system_info.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ elapsed_millis_

elapsedMillis sensesp::SystemHz::elapsed_millis_
protected

Definition at line 62 of file system_info.h.

◆ last_tick_count_

uint32_t sensesp::SystemHz::last_tick_count_ = 0
protected

Definition at line 61 of file system_info.h.

◆ repeat_event_

reactesp::RepeatEvent* sensesp::SystemHz::repeat_event_ = nullptr
protected

Definition at line 63 of file system_info.h.


The documentation for this class was generated from the following files: