Package com.viam.component.board.v1
Class BoardServiceGrpc.BoardServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<BoardServiceGrpc.BoardServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<BoardServiceGrpc.BoardServiceBlockingV2Stub>
com.viam.component.board.v1.BoardServiceGrpc.BoardServiceBlockingV2Stub
- Enclosing class:
BoardServiceGrpc
public static final class BoardServiceGrpc.BoardServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<BoardServiceGrpc.BoardServiceBlockingV2Stub>
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.io.grpc.stub.BlockingClientCall<?, Board.StreamTicksResponse> 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, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected BoardServiceGrpc.BoardServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<BoardServiceGrpc.BoardServiceBlockingV2Stub>
-
setGPIO
- Throws:
io.grpc.StatusException
-
getGPIO
GetGPIO gets the high/low state of the given pin of a board of the underlying robot.
- Throws:
io.grpc.StatusException
-
pWM
PWM gets the duty cycle of the given pin of a board of the underlying robot.
- Throws:
io.grpc.StatusException
-
setPWM
SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.
- Throws:
io.grpc.StatusException
-
pWMFrequency
public Board.PWMFrequencyResponse pWMFrequency(Board.PWMFrequencyRequest request) throws io.grpc.StatusException PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.
- Throws:
io.grpc.StatusException
-
setPWMFrequency
public Board.SetPWMFrequencyResponse setPWMFrequency(Board.SetPWMFrequencyRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
doCommand
public Common.DoCommandResponse doCommand(Common.DoCommandRequest request) throws io.grpc.StatusException DoCommand sends/receives arbitrary commands
- Throws:
io.grpc.StatusException
-
readAnalogReader
public Board.ReadAnalogReaderResponse readAnalogReader(Board.ReadAnalogReaderRequest request) throws io.grpc.StatusException ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.
- Throws:
io.grpc.StatusException
-
writeAnalog
public Board.WriteAnalogResponse writeAnalog(Board.WriteAnalogRequest request) throws io.grpc.StatusException WriteAnalog writes the value to the analog writer of the board.
- Throws:
io.grpc.StatusException
-
getDigitalInterruptValue
public Board.GetDigitalInterruptValueResponse getDigitalInterruptValue(Board.GetDigitalInterruptValueRequest request) throws io.grpc.StatusException GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.
- Throws:
io.grpc.StatusException
-
streamTicks
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,Board.StreamTicksResponse> streamTicks(Board.StreamTicksRequest request) StreamTicks starts a stream of ticks for the given digital interrupts.
-
setPowerMode
public Board.SetPowerModeResponse setPowerMode(Board.SetPowerModeRequest request) throws io.grpc.StatusException `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
- Throws:
io.grpc.StatusException
-
getGeometries
public Common.GetGeometriesResponse getGeometries(Common.GetGeometriesRequest request) throws io.grpc.StatusException GetGeometries returns the geometries of the component in their current configuration.
- Throws:
io.grpc.StatusException
-