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(const std::string & name)Set the name of the resource. |
| std::string | name() constGet the name of the resource. |
Protected Attributes inherited from peary::hal::Resource
| Name | |
|---|---|
| std::string | _name |
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 2025-11-14 at 11:31:23 +0100