Package com.viam.component.board.v1
Class BoardServiceGrpc.BoardServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<BoardServiceGrpc.BoardServiceFutureStub>
com.viam.component.board.v1.BoardServiceGrpc.BoardServiceFutureStub
- Enclosing class:
- BoardServiceGrpc
public static final class BoardServiceGrpc.BoardServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<BoardServiceGrpc.BoardServiceFutureStub>
A stub to allow clients to do ListenableFuture-style 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 TypeMethodDescriptionprotected BoardServiceGrpc.BoardServiceFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse>
doCommand
(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commandscom.google.common.util.concurrent.ListenableFuture<Board.GetDigitalInterruptValueResponse>
GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.com.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse>
getGeometries
(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configuration.com.google.common.util.concurrent.ListenableFuture<Board.GetGPIOResponse>
getGPIO
(Board.GetGPIORequest request) GetGPIO gets the high/low state of the given pin of a board of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Board.PWMResponse>
pWM
(Board.PWMRequest request) PWM gets the duty cycle of the given pin of a board of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Board.PWMFrequencyResponse>
pWMFrequency
(Board.PWMFrequencyRequest request) PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Board.ReadAnalogReaderResponse>
ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.com.google.common.util.concurrent.ListenableFuture<Board.SetGPIOResponse>
setGPIO
(Board.SetGPIORequest request) com.google.common.util.concurrent.ListenableFuture<Board.SetPowerModeResponse>
setPowerMode
(Board.SetPowerModeRequest request) `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.com.google.common.util.concurrent.ListenableFuture<Board.SetPWMResponse>
setPWM
(Board.SetPWMRequest request) SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.com.google.common.util.concurrent.ListenableFuture<Board.SetPWMFrequencyResponse>
SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency.com.google.common.util.concurrent.ListenableFuture<Board.WriteAnalogResponse>
writeAnalog
(Board.WriteAnalogRequest request) WriteAnalog writes the value to the analog writer of the board.Methods inherited from class io.grpc.stub.AbstractFutureStub
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.BoardServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<BoardServiceGrpc.BoardServiceFutureStub>
-
setGPIO
public com.google.common.util.concurrent.ListenableFuture<Board.SetGPIOResponse> setGPIO(Board.SetGPIORequest request) -
getGPIO
public com.google.common.util.concurrent.ListenableFuture<Board.GetGPIOResponse> getGPIO(Board.GetGPIORequest request) GetGPIO gets the high/low state of the given pin of a board of the underlying robot.
-
pWM
public com.google.common.util.concurrent.ListenableFuture<Board.PWMResponse> pWM(Board.PWMRequest request) PWM gets the duty cycle of the given pin of a board of the underlying robot.
-
setPWM
public com.google.common.util.concurrent.ListenableFuture<Board.SetPWMResponse> setPWM(Board.SetPWMRequest request) SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.
-
pWMFrequency
public com.google.common.util.concurrent.ListenableFuture<Board.PWMFrequencyResponse> pWMFrequency(Board.PWMFrequencyRequest request) PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.
-
setPWMFrequency
public com.google.common.util.concurrent.ListenableFuture<Board.SetPWMFrequencyResponse> setPWMFrequency(Board.SetPWMFrequencyRequest request) 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
public com.google.common.util.concurrent.ListenableFuture<Common.DoCommandResponse> doCommand(Common.DoCommandRequest request) DoCommand sends/receives arbitrary commands
-
readAnalogReader
public com.google.common.util.concurrent.ListenableFuture<Board.ReadAnalogReaderResponse> readAnalogReader(Board.ReadAnalogReaderRequest request) ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.
-
writeAnalog
public com.google.common.util.concurrent.ListenableFuture<Board.WriteAnalogResponse> writeAnalog(Board.WriteAnalogRequest request) WriteAnalog writes the value to the analog writer of the board.
-
getDigitalInterruptValue
public com.google.common.util.concurrent.ListenableFuture<Board.GetDigitalInterruptValueResponse> getDigitalInterruptValue(Board.GetDigitalInterruptValueRequest request) GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.
-
setPowerMode
public com.google.common.util.concurrent.ListenableFuture<Board.SetPowerModeResponse> setPowerMode(Board.SetPowerModeRequest request) `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
-
getGeometries
public com.google.common.util.concurrent.ListenableFuture<Common.GetGeometriesResponse> getGeometries(Common.GetGeometriesRequest request) GetGeometries returns the geometries of the component in their current configuration.
-