![]() |
Dataflow Runtime API
2.7.4.0
|
Driver to access a single ADC channel. More...
#include <Imt.Base.BSP/Driver/AdcDriver.h>
Public Member Functions | |
AdcDriver (const size_t indexModule, const size_t indexChannel) | |
Constructor. More... | |
virtual | ~AdcDriver (void) |
Destructor. | |
imt::base::bsp::type::ErrorCode::Id | read (uint32_t *const pValue) const |
Reads the current value. More... | |
![]() | |
DriverAbs (const size_t indexModule, const size_t indexDriver) | |
Constructor. More... | |
virtual | ~DriverAbs (void) |
Destructor. | |
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. | |
Driver to access a single ADC channel.
|
explicit |
Constructor.
indexModule | Index of the module (starting at 0). |
indexChannel | Index of the channel (starting at 0). |
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC >.
|
protectedvirtual |
Implements imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC >.
imt::base::bsp::type::ErrorCode::Id imt::base::bsp::driver::AdcDriver::read | ( | uint32_t *const | pValue | ) | const |
Reads the current value.
pValue | Set to the raw ADC counts. |