![]() |
Dataflow Runtime API
3.0.3.0
|
Driver to access a single DAC output. More...
#include <Imt.Base.BSP/Driver/DacDriver.h>
Public Member Functions | |
DacDriver (const size_t indexModule, const size_t indexChannel) | |
Constructor. More... | |
virtual | ~DacDriver (void) |
Destructor. More... | |
uint32_t | getValue (void) const |
Gets the last set value of the output. More... | |
imt::base::bsp::type::ErrorCode::Id | write (uint32_t value) |
Writes the value to the output. More... | |
![]() | |
DriverAbs (const size_t indexModule, const size_t indexDriver) | |
Constructor. More... | |
virtual | ~DriverAbs (void) |
Destructor. More... | |
void | initialize (void) |
Initialize the driver. More... | |
void | enable (void) |
Enable the driver. More... | |
imt::base::bsp::type::ErrorCode::Id | start (void) |
Starts the driver. More... | |
imt::base::bsp::type::ErrorCode::Id | stop (void) |
Stops the driver. More... | |
size_t | getIndexDriver (void) const |
Gets the index of the driver inisde the module. More... | |
size_t | getIndexModule (void) const |
Gets the index of the module the driver is part of. More... | |
imt::base::bsp::type::DriverType::Id | getType (void) const |
Gets the type of the driver. More... | |
bool | isInitialized (void) const |
Gets if the driver has been initialzied. More... | |
bool | isEnabled (void) const |
Gets if the driver has been enabled. More... | |
bool | isStarted (void) const |
Gets if the driver has been started. More... | |
Protected Member Functions | |
virtual void | onInitialize (void) |
virtual void | onEnable (void) |
virtual imt::base::bsp::type::ErrorCode::Id | onStart (void) |
virtual imt::base::bsp::type::ErrorCode::Id | onStop (void) |
Additional Inherited Members | |
![]() | |
static const imt::base::bsp::type::DriverType::Id | Type |
Constant holding the driver type. More... | |
Driver to access a single DAC output.
|
explicit |
Constructor.
indexModule | Index of the module (starting at 0). |
indexChannel | Index of the channel (starting at 0). |
|
virtual |
Destructor.
uint32_t imt::base::bsp::driver::DacDriver::getValue | ( | void | ) | const |
Gets the last set value of the output.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::DAC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::DAC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::DAC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::DAC >.
imt::base::bsp::type::ErrorCode::Id imt::base::bsp::driver::DacDriver::write | ( | uint32_t | value | ) |
Writes the value to the output.
value | The raw DAC counts. |