On this page
article
peary::hal::Oscillator
peary::hal::Oscillator
A resource which can control an oscillator.
#include <peary/hal/Resources.hpp>
Inherits from peary::hal::Resource
Inherited by peary::board::carboard::ZynqClockGenerator
Public Functions
| Name | |
|---|---|
| virtual void | setFrequency(uint64_t frequency) =0Set the frequency of the clock generator. |
Additional inherited members
Public Functions inherited from peary::hal::Resource
| Name | |
|---|---|
| virtual | ~Resource() =defaultDefault constructor. |
| void | setName(std::string_view name)Set the name of the resource, usually corresponds to the name used in the schematic. |
| std::string | name() constGet the name of the resource. |
| void | setType(std::string_view type)Set the type string (e.g. VoltageRegulator) |
| std::string | type() constGet the type of the resource. |
Protected Attributes inherited from peary::hal::Resource
| Name | |
|---|---|
| std::string | _name |
| std::string | _type |
Public Functions Documentation
function setFrequency
virtual void setFrequency(
uint64_t frequency
) =0
Set the frequency of the clock generator.
Parameters:
- frequency Frequency to be set in Hz
Reimplemented by: peary::board::carboard::ZynqClockGenerator::setFrequency
Purely virtual function to be implemented by the actual resource class
Updated on 2026-01-30 at 22:01:05 +0100