peary::board::carboard::ClockGenerator
peary::board::carboard::ClockGenerator
Clock generator resource for CaR board.
#include <peary/hardware/boards/Carboard.hpp>
Inherits from peary::hal::ClockSynthesizer, peary::hal::Resource
Public Functions
| Name | |
|---|---|
| ClockGenerator(component::Si5345 & si5345)Constructor for ClockGenerator class. | |
| virtual void | configure(const std::any & config) overrideConfigure the clock generator with the given configuration. |
| virtual void | disable() overrideDisable the clock generator. |
| virtual bool | isLocked() overrideCheck if the clock generator is locked. |
| interface::iface_i2c::dataVector_type | read(int page)Read a page of configuration data from 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 ClockGenerator
inline ClockGenerator(
component::Si5345 & si5345
)
Constructor for ClockGenerator class.
Parameters:
- si5345 Reference to the Si5345 component
function configure
inline virtual void configure(
const std::any & config
) override
Configure the clock generator with the given configuration.
Parameters:
- config The configuration object
Reimplements: peary::hal::ClockSynthesizer::configure
function disable
inline virtual void disable() override
Disable the clock generator.
Reimplements: peary::hal::ClockSynthesizer::disable
function isLocked
inline virtual bool isLocked() override
Check if the clock generator is locked.
Return: True if the clock generator is locked, false otherwise
Reimplements: peary::hal::ClockSynthesizer::isLocked
function read
inline interface::iface_i2c::dataVector_type read(
int page
)
Read a page of configuration data from the clock generator.
Parameters:
- page The page number to read
Return: A vector containing the data read from the specified page
Updated on 2025-11-14 at 11:31:23 +0100