Implementation of the IDeviceControl interface. More...
Inherits DeviceInterfaceBase, and IDeviceControl.
Public Member Functions | |
DeviceControl (Device device) | |
Ctor. More... | |
void | SendCommand (DeviceControlCommand command, string value, out string result) |
Sends the given command value to the driver. More... | |
void | SendCommand< Tin, Tout > (DeviceControlCommand command, Tin value, out Tout result) |
Sends the given command value to the driver. More... | |
void | SendCommand (DeviceControlCommand command, IntPtr inputBuffer, int inputBufferSize, IntPtr outputBuffer, ref int outputBufferSize) |
Sends the given command buffer. More... | |
void | SendCommand (DeviceControlCommand command, IntPtr inputBuffer, long inputBufferSize, IntPtr outputBuffer, ref long outputBufferSize) |
Sends the given command buffer. More... | |
Public Member Functions inherited from DeviceInterfaceBase | |
DeviceInterfaceBase (Device device) | |
Ctor. More... | |
void | SendCommand (DeviceControlCommand command, string value, out string result) |
Sends the given command value to the driver. More... | |
void | SendCommand< Tin, Tout > (DeviceControlCommand command, Tin value, out Tout result) |
Sends the given command value to the driver. More... | |
void | SendCommand (DeviceControlCommand command, IntPtr inputBuffer, int inputBufferSize, IntPtr outputBuffer, ref int outputBufferSize) |
Sends the given command buffer. More... | |
void | SendCommand (DeviceControlCommand command, IntPtr inputBuffer, long inputBufferSize, IntPtr outputBuffer, ref long outputBufferSize) |
Sends the given command buffer. More... | |
Additional Inherited Members | |
Properties inherited from DeviceInterfaceBase | |
Device | Parent [get] |
The Device this interface works on. | |
Properties inherited from IDeviceInterface | |
Device | Parent [get] |
The Device this interface works on. | |
Implementation of the IDeviceControl interface.
DeviceControl | ( | Device | device | ) |
Ctor.
device |
void SendCommand | ( | DeviceControlCommand | command, |
IntPtr | inputBuffer, | ||
int | inputBufferSize, | ||
IntPtr | outputBuffer, | ||
ref int | outputBufferSize | ||
) |
Sends the given command buffer.
The inputBufferSize and outputBufferSize are given in byte
s.
command | Command to execute. |
inputBuffer | Pointer to input buffer to send. |
inputBufferSize | Size of inputBuffer data. |
outputBuffer | Pointer to buffer to received command data; IntPtr.Zero to query size in outputBufferSize . |
outputBufferSize | Size of the outputBuffer data if not IntPtr.Zero; will receive the minimal necessary size otherwise. |
Implements IDeviceControl.
void SendCommand | ( | DeviceControlCommand | command, |
IntPtr | inputBuffer, | ||
long | inputBufferSize, | ||
IntPtr | outputBuffer, | ||
ref long | outputBufferSize | ||
) |
Sends the given command buffer.
The inputBufferSize and outputBufferSize are given in byte
s.
command | Command to execute. |
inputBuffer | Pointer to input buffer to send. |
inputBufferSize | Size of inputBuffer data. |
outputBuffer | Pointer to buffer to received command data; IntPtr.Zero to query size in outputBufferSize . |
outputBufferSize | Size of the outputBuffer data if not IntPtr.Zero; will receive the minimal necessary size otherwise. |
Implements IDeviceControl.
void SendCommand | ( | DeviceControlCommand | command, |
string | value, | ||
out string | result | ||
) |
Sends the given command value to the driver.
command | Command to execute. |
value | Value to send. |
result | Command answer string. |
Implements IDeviceControl.
void SendCommand< Tin, Tout > | ( | DeviceControlCommand | command, |
Tin | value, | ||
out Tout | result | ||
) |
Sends the given command value to the driver.
Tin | Value type (non-reference type). |
Tout | Value type (non-reference type). |
command | Command to execute. |
value | Value to send. |
result | Command answer. |
Implements IDeviceControl.
Tin | : | struct | |
Tout | : | struct |