Read word from I2C device.

Namespace:  AForge.Robotics.Surveyor
Assembly:  AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public ushort I2CReadWord(
	SVS..::.Camera camera,
	byte deviceID,
	byte register
)

Parameters

camera
Type: AForge.Robotics.Surveyor..::.SVS..::.Camera
SRV-1 Blackfin camera to access I2C device on.
deviceID
Type: System..::.Byte
I2C device ID (7 bit notation).
register
Type: System..::.Byte
I2C device register to read.

Return Value

Returns word read from the specified register of the specified I2C device.

Exceptions

ExceptionCondition
AForge..::.NotConnectedExceptionNot connected to SVS. Connect to SVS board before using this method.
AForge..::.ConnectionLostExceptionConnection lost or communicaton failure. Try to reconnect.
System..::.ApplicationExceptionFailed parsing response from SRV-1.

See Also