Provides an abstraction layer to request sensor data from AP3216C.
More...
#include <AP3216CAdapterFactory.h>
|
void | request_finish (const AP3216CData data) |
| Emitted when data is successfully read.
|
|
void | request_error () |
| Emitted when there is an error reading data.
|
|
void | __internal_async_request () |
| Internal signal for triggering the asynchronous request.
|
|
|
| AP3216CAdapterFactory (QObject *parent=nullptr) |
| Constructor.
|
|
bool | bind_file (const QString &file_path) |
| Binds to a device file path.
|
|
void | request_data () |
| Triggers an asynchronous data request.
|
|
std::optional< AP3216CData > | sync_request_data () |
| Performs a synchronous data request.
|
|
Provides an abstraction layer to request sensor data from AP3216C.
- Note
- Supports real and pseudo backends depending on the build configuration.
◆ bind_file()
bool AP3216CAdapterFactory::bind_file |
( |
const QString & |
file_path | ) |
|
Binds to a device file path.
- Parameters
-
file_path | Device file path. |
- Returns
- True if successfully bound, false otherwise.
◆ request_finish
void AP3216CAdapterFactory::request_finish |
( |
const AP3216CData |
data | ) |
|
|
signal |
Emitted when data is successfully read.
- Parameters
-
◆ sync_request_data()
std::optional< AP3216CData > AP3216CAdapterFactory::sync_request_data |
( |
| ) |
|
Performs a synchronous data request.
- Returns
- Optional sensor data, empty if reading fails.
The documentation for this class was generated from the following files:
- extern_app/professionals/boardlevel_application/Environment/Adapter/AP3216CAdapterFactory.h
- extern_app/professionals/boardlevel_application/Environment/Adapter/AP3216CAdapterFactory.cpp