On this page
article
peary::board::carboard::BiasRegulator
peary::board::carboard::BiasRegulator
Bias voltage regulator resource for CaR board.
#include <peary/hardware/boards/Carboard.hpp>
Inherits from peary::hal::VoltageControl, peary::hal::SwitchControl, peary::hal::Resource
Public Functions
| Name | |
|---|---|
| BiasRegulator(component::DAC7678 & dac, component::DAC7678::Channel channel)Constructor for BiasRegulator class. | |
| virtual void | setVoltage(double voltage) overrideSet the output voltage for the bias regulator. |
| virtual void | setSwitch(bool enable) overrideEnable or disable the output of the bias regulator. |
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 BiasRegulator
inline BiasRegulator(
component::DAC7678 & dac,
component::DAC7678::Channel channel
)
Constructor for BiasRegulator class.
Parameters:
- dac Reference to the DAC7678 component
- channel The channel to control
function setVoltage
inline virtual void setVoltage(
double voltage
) override
Set the output voltage for the bias regulator.
Parameters:
- voltage The voltage to set (in volts)
Reimplements: peary::hal::VoltageControl::setVoltage
function setSwitch
inline virtual void setSwitch(
bool enable
) override
Enable or disable the output of the bias regulator.
Parameters:
- enable True to enable the output, false to disable
Reimplements: peary::hal::SwitchControl::setSwitch
Updated on 2025-11-14 at 11:31:23 +0100