Implementation of the device control interface. More...
#include <cvb/driver/device_control.hpp>
Public Member Functions | |
| DevicePtr | Parent () const noexcept |
| Gets the parent device of this interface. | |
| String | SendStringCommand (DeviceControlCommand command, const String &value) |
| Sends the given command value to the driver. | |
| template<class IN_TYPE, class OUT_TYPE> | |
| void | SendCommand (DeviceControlCommand command, IN_TYPE value, OUT_TYPE &result) |
| Sends the given command value to the driver. | |
| template<class OUT_TYPE> | |
| void | SendCommand (DeviceControlCommand command, OUT_TYPE &result) |
| Sends the given command value to the driver. | |
| void | SendCommand (DeviceControlCommand command, void *inputBuffer, std::size_t inputBufferSize, void *outputBuffer, std::size_t &outputBufferSize) |
| Sends the given command value to the driver. | |
Implementation of the device control interface.
|
inlinenoexcept |
Gets the parent device of this interface.
| Does | not throw any exception. |
|
inline |
Sends the given command value to the driver.
| [in] | command | Command to execute. |
| [in] | value | Value to send. |
| [in] | result | Command answer. |
| Any | exception derived from std::exception including CvbException. |
This method can handle custom, types.
|
inline |
Sends the given command value to the driver.
| [in] | command | Command to execute. |
| [in] | result | Command answer. |
| Any | exception derived from std::exception including CvbException. |
This method can handle custom, types.
|
inline |
Sends the given command value to the driver.
| [in] | command | Command to execute. |
| [in] | inputBuffer | Pointer to input buffer to send. |
| [in] | inputBufferSize | Size of the input buffer data. |
| [in] | outputBuffer | Pointer to buffer to received command data. |
| [in] | outputBufferSize | Size of the output buffer if not zero, will receive the minimal necessary size otherwise. |
| Any | exception derived from std::exception including CvbException. |
This method can only handle raw data. All sizes are given in byte.
|
inline |
Sends the given command value to the driver.
| [in] | command | Command to execute. |
| [in] | value | String value to send. |
| Any | exception derived from std::exception including CvbException. |