Package com.viam.component.board.v1
Class BoardServiceGrpc.BoardServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<BoardServiceGrpc.BoardServiceBlockingStub>
com.viam.component.board.v1.BoardServiceGrpc.BoardServiceBlockingStub
- Enclosing class:
- BoardServiceGrpc
public static final class BoardServiceGrpc.BoardServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<BoardServiceGrpc.BoardServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service BoardService.
BoardService services all Boards associated with a robot
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandsGetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.getGeometries
(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configuration.getGPIO
(Board.GetGPIORequest request) GetGPIO gets the high/low state of the given pin of a board of the underlying robot.pWM
(Board.PWMRequest request) PWM gets the duty cycle of the given pin of a board of the underlying robot.pWMFrequency
(Board.PWMFrequencyRequest request) PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.setGPIO
(Board.SetGPIORequest request) setPowerMode
(Board.SetPowerModeRequest request) `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.setPWM
(Board.SetPWMRequest request) SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency.streamTicks
(Board.StreamTicksRequest request) StreamTicks starts a stream of ticks for the given digital interrupts.writeAnalog
(Board.WriteAnalogRequest request) WriteAnalog writes the value to the analog writer of the board.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected BoardServiceGrpc.BoardServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<BoardServiceGrpc.BoardServiceBlockingStub>
-
setGPIO
-
getGPIO
GetGPIO gets the high/low state of the given pin of a board of the underlying robot.
-
pWM
PWM gets the duty cycle of the given pin of a board of the underlying robot.
-
setPWM
SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.
-
pWMFrequency
PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.
-
setPWMFrequency
SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency. 0 will use the board's default PWM frequency.
-
doCommand
DoCommand sends/receives arbitrary commands
-
readAnalogReader
ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.
-
writeAnalog
WriteAnalog writes the value to the analog writer of the board.
-
getDigitalInterruptValue
public Board.GetDigitalInterruptValueResponse getDigitalInterruptValue(Board.GetDigitalInterruptValueRequest request) GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.
-
streamTicks
StreamTicks starts a stream of ticks for the given digital interrupts.
-
setPowerMode
`SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
-
getGeometries
GetGeometries returns the geometries of the component in their current configuration.
-