CVB++ 14.0
DeviceControlCommand Class Reference

A specific command to send to the driver. More...

#include <cvb/driver/device_control.hpp>

Public Member Functions

template<class PARAM >
 DeviceControlCommand (PARAM parameter, DeviceControlOperation operation) noexcept
 Creates a command from the given operation and command parameter. More...
 
template<class PARAM = std::uint32_t>
PARAM Parameter () const noexcept
 Gets the parameter part of the command. More...
 
template<class PARAM = std::uint32_t>
void SetParameter (PARAM parameter) noexcept
 Sets the parameter part of the command. More...
 
DeviceControlOperation Operation () const noexcept
 Gets the operation part of the command. More...
 
void SetOperation (DeviceControlOperation operation) noexcept
 Sets the operation part of the command. More...
 

Detailed Description

A specific command to send to the driver.

Constructor & Destructor Documentation

◆ DeviceControlCommand()

DeviceControlCommand ( PARAM  parameter,
DeviceControlOperation  operation 
)
inlinenoexcept

Creates a command from the given operation and command parameter.

Parameters
[in]parameterDriver specific command parameter.
[in]operationOperation to perform on parameter.
Exceptions
Doesnot throw any exception.

Member Function Documentation

◆ Operation()

DeviceControlOperation Operation ( ) const
inlinenoexcept

Gets the operation part of the command.

Returns
The current operation.
Exceptions
Doesnot throw any exception.

◆ Parameter()

PARAM Parameter ( ) const
inlinenoexcept

Gets the parameter part of the command.

Returns
The current parameter. Basically driver specific raw byte data.
Exceptions
Doesnot throw any exception.

◆ SetOperation()

void SetOperation ( DeviceControlOperation  operation)
inlinenoexcept

Sets the operation part of the command.

Parameters
[in]operationThe new operation.
Exceptions
Doesnot throw any exception.

◆ SetParameter()

void SetParameter ( PARAM  parameter)
inlinenoexcept

Sets the parameter part of the command.

Parameters
[in]parameterThe new parameter. Basically driver specific raw byte data.
Exceptions
Doesnot throw any exception.