libyggdrasil
v1.0.0
|
DAC Channel implementation for Asgard. More...
#include <dac.hpp>
Public Member Functions | |
DACChannel (const DACChannel &)=delete | |
auto | operator= (const DACChannel &)=delete |
auto | operator= (float value) const noexcept |
Set the current DAC value. More... | |
operator float () const noexcept | |
Get the current DAC value. More... | |
DACChannel (const DACChannel &)=delete | |
auto | operator= (const DACChannel &)=delete |
auto | operator= (float value) const noexcept |
Set the current DAC value. More... | |
operator float () const noexcept | |
Get the current DAC value. More... | |
Static Public Member Functions | |
static bool | init () |
Init function. More... | |
static bool | deinit () |
Deinit function. More... | |
static bool | init () |
Init function. More... | |
static bool | deinit () |
Deinit function. More... | |
Static Public Attributes | |
constexpr static auto | ReferenceVoltage = 3.3 |
Friends | |
template<auto , template< auto, u8, u32, u32 > typename> | |
struct | bsp::drv::DAConverter |
Declare DAConverter frontend as friend. More... | |
template<auto , template< auto, u8, u32, u32 > typename> | |
struct | bsp::drv::DAConverter |
Declare DAConverter frontend as friend. More... | |
DAC Channel implementation for Asgard.
DAC Channel implementation for Midgard.
Context | DAC Context |
Index | ChannelID |
Offset | Calibration offset |
MaxValue | Maximum value used |
|
delete |
|
delete |
|
inlinestatic |
Deinit function.
|
inlinestatic |
Deinit function.
|
inlinestatic |
Init function.
|
inlinestatic |
Init function.
|
inlinenoexcept |
Get the current DAC value.
|
inlinenoexcept |
Get the current DAC value.
|
delete |
|
delete |
|
inlinenoexcept |
Set the current DAC value.
value | Current value between 0.0 and 1.0 |
|
inlinenoexcept |
Set the current DAC value.
value | Current value between 0.0 and 1.0 |
|
friend |
Declare DAConverter frontend as friend.
|
friend |
Declare DAConverter frontend as friend.
|
staticconstexpr |