CVB.Net 14.0
IDeviceControl Interface Reference

Driver specific get or set operations on a Device. More...

Inherits IDeviceInterface.

Inherited by DeviceControl.

Public Member Functions

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 IDeviceInterface
Device Parent [get]
 The Device this interface works on.
 

Detailed Description

Driver specific get or set operations on a Device.

Member Function Documentation

◆ SendCommand() [1/3]

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 bytes.

Parameters
commandCommand to execute.
inputBufferPointer to input buffer to send.
inputBufferSizeSize of inputBuffer data.
outputBufferPointer to buffer to received command data; IntPtr.Zero to query size in outputBufferSize .
outputBufferSizeSize of the outputBuffer data if not IntPtr.Zero; will receive the minimal necessary size otherwise.

◆ SendCommand() [2/3]

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 bytes.

Parameters
commandCommand to execute.
inputBufferPointer to input buffer to send.
inputBufferSizeSize of inputBuffer data.
outputBufferPointer to buffer to received command data; IntPtr.Zero to query size in outputBufferSize .
outputBufferSizeSize of the outputBuffer data if not IntPtr.Zero; will receive the minimal necessary size otherwise.

◆ SendCommand() [3/3]

void SendCommand ( DeviceControlCommand  command,
string  value,
out string  result 
)

Sends the given command value to the driver.

Parameters
commandCommand to execute.
valueValue to send.
resultCommand answer string.

◆ SendCommand< Tin, Tout >()

void SendCommand< Tin, Tout > ( DeviceControlCommand  command,
Tin  value,
out Tout  result 
)

Sends the given command value to the driver.

Template Parameters
TinValue type (non-reference type).
ToutValue type (non-reference type).
Parameters
commandCommand to execute.
valueValue to send.
resultCommand answer.
Type Constraints
Tin :struct 
Tout :struct