On this page
article
peary::board::carboard::CMOSLevels
peary::board::carboard::CMOSLevels
CMOS level shifter resource for CaR board.
#include <peary/hardware/boards/Carboard.hpp>
Inherits from peary::hal::VoltageControl, peary::hal::SwitchControl, peary::hal::Resource
Public Functions
| Name | |
|---|---|
| CMOSLevels(component::DAC7678 & dac, std::vector< component::DAC7678::Channel > channels)Constructor for CMOSLevels class. | |
| virtual void | setVoltage(double voltage) overrideSet the output voltage for the CMOS level shifters. |
| virtual void | setSwitch(bool enable) overrideEnable or disable the output of the CMOS level shifters. |
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 CMOSLevels
inline CMOSLevels(
component::DAC7678 & dac,
std::vector< component::DAC7678::Channel > channels
)
Constructor for CMOSLevels class.
Parameters:
- dac Reference to the DAC7678 component
- channels The channels to control
function setVoltage
inline virtual void setVoltage(
double voltage
) override
Set the output voltage for the CMOS level shifters.
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 CMOS level shifters.
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