![]() |
Dataflow Runtime API
3.0.3.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. More... | |
| imt::base::bsp::type::ErrorCode::Id | read (uint32_t *const pValue) const |
| Reads the current value. More... | |
Public Member Functions inherited from imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC > | |
| 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 Public Attributes inherited from imt::base::bsp::module::DriverAbs< imt::base::bsp::type::DriverType::ADC > | |
| static const imt::base::bsp::type::DriverType::Id | Type |
| Constant holding the driver type. More... | |
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). |
|
virtual |
Destructor.
|
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. |