On this page
article
peary::hal::VoltageControl
peary::hal::VoltageControl
A resource which can control a voltage level.
#include <peary/hal/Resources.hpp>
Inherits from peary::hal::Resource
Inherited by peary::board::carboard::BiasRegulator, peary::board::carboard::CMOSLevels, peary::board::carboard::VoltageRegulator
Public Functions
| Name | |
|---|---|
| virtual void | setVoltage(double voltage) =0Set the voltage level this resource controls. |
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. |
| std::string | name() constGet the name of the resource. |
Protected Attributes inherited from peary::hal::Resource
| Name | |
|---|---|
| std::string | _name |
Public Functions Documentation
function setVoltage
virtual void setVoltage(
double voltage
) =0
Set the voltage level this resource controls.
Parameters:
- voltage Voltage level to be set
Reimplemented by: peary::board::carboard::BiasRegulator::setVoltage, peary::board::carboard::CMOSLevels::setVoltage, peary::board::carboard::VoltageRegulator::setVoltage
Purely virtual function to be implemented by the actual resource class
Updated on 2026-01-16 at 00:29:06 +0100