Read byte from I2C device.
Namespace:
AForge.Robotics.SurveyorAssembly: AForge.Robotics.Surveyor (in AForge.Robotics.Surveyor.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
C# |
---|
public byte I2CReadByte( 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 byte read from the specified register of the specified I2C device.
Exceptions
Exception | Condition |
---|---|
AForge..::.NotConnectedException | Not connected to SVS. Connect to SVS board before using this method. |
AForge..::.ConnectionLostException | Connection lost or communicaton failure. Try to reconnect. |
System..::.ApplicationException | Failed parsing response from SRV-1. |