Read an input bit from an A2D IO pin.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static int ReadA2DInput(
	byte iicAddress,
	AnalogToDigitalIoPinType a2dIoPin,
	bool sendReplyToHost,
	bool sendReplyToReflex
)
Visual Basic (Declaration)
Public Shared Function ReadA2DInput ( _
	iicAddress As Byte, _
	a2dIoPin As AnalogToDigitalIoPinType, _
	sendReplyToHost As Boolean, _
	sendReplyToReflex As Boolean _
) As Integer
Visual C++
public:
static int ReadA2DInput(
	unsigned char iicAddress, 
	AnalogToDigitalIoPinType a2dIoPin, 
	bool sendReplyToHost, 
	bool sendReplyToReflex
)

Parameters

iicAddress
Type: System..::.Byte
The address of the IIC module referenced by the packet.
a2dIoPin
Type: Bespoke.Robotics.BrainStem..::.AnalogToDigitalIoPinType
The digital IO pin to read the input from.
sendReplyToHost
Type: System..::.Boolean
The BrainStem will send a reply packet to the host.
sendReplyToReflex
Type: System..::.Boolean
The value will go directly to a reflex routine within the BrainStem.

Return Value

The input from the specified digital IO pin.

Exceptions

ExceptionCondition
Bespoke.Robotics.BrainStem.Exceptions..::.CommandExceptionThrown if there's an error processing the command.

See Also