Package com.viam.component.board.v1
Class BoardServiceGrpc.BoardServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<BoardServiceGrpc.BoardServiceStub>
com.viam.component.board.v1.BoardServiceGrpc.BoardServiceStub
- Enclosing class:
- BoardServiceGrpc
public static final class BoardServiceGrpc.BoardServiceStub
extends io.grpc.stub.AbstractAsyncStub<BoardServiceGrpc.BoardServiceStub>
A stub to allow clients to do asynchronous 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.BoardServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voiddoCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commandsvoidgetDigitalInterruptValue(Board.GetDigitalInterruptValueRequest request, io.grpc.stub.StreamObserver<Board.GetDigitalInterruptValueResponse> responseObserver) GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.voidgetGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configuration.voidgetGPIO(Board.GetGPIORequest request, io.grpc.stub.StreamObserver<Board.GetGPIOResponse> responseObserver) GetGPIO gets the high/low state of the given pin of a board of the underlying robot.voidpWM(Board.PWMRequest request, io.grpc.stub.StreamObserver<Board.PWMResponse> responseObserver) PWM gets the duty cycle of the given pin of a board of the underlying robot.voidpWMFrequency(Board.PWMFrequencyRequest request, io.grpc.stub.StreamObserver<Board.PWMFrequencyResponse> responseObserver) PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.voidreadAnalogReader(Board.ReadAnalogReaderRequest request, io.grpc.stub.StreamObserver<Board.ReadAnalogReaderResponse> responseObserver) ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.voidsetGPIO(Board.SetGPIORequest request, io.grpc.stub.StreamObserver<Board.SetGPIOResponse> responseObserver) voidsetPowerMode(Board.SetPowerModeRequest request, io.grpc.stub.StreamObserver<Board.SetPowerModeResponse> responseObserver) `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.voidsetPWM(Board.SetPWMRequest request, io.grpc.stub.StreamObserver<Board.SetPWMResponse> responseObserver) SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.voidsetPWMFrequency(Board.SetPWMFrequencyRequest request, io.grpc.stub.StreamObserver<Board.SetPWMFrequencyResponse> responseObserver) SetPWMFrequency sets the given pin of a board of the underlying robot to the given PWM frequency.voidstreamTicks(Board.StreamTicksRequest request, io.grpc.stub.StreamObserver<Board.StreamTicksResponse> responseObserver) StreamTicks starts a stream of ticks for the given digital interrupts.voidwriteAnalog(Board.WriteAnalogRequest request, io.grpc.stub.StreamObserver<Board.WriteAnalogResponse> responseObserver) WriteAnalog writes the value to the analog writer of the board.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods 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.BoardServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<BoardServiceGrpc.BoardServiceStub>
-
setGPIO
public void setGPIO(Board.SetGPIORequest request, io.grpc.stub.StreamObserver<Board.SetGPIOResponse> responseObserver) -
getGPIO
public void getGPIO(Board.GetGPIORequest request, io.grpc.stub.StreamObserver<Board.GetGPIOResponse> responseObserver) GetGPIO gets the high/low state of the given pin of a board of the underlying robot.
-
pWM
public void pWM(Board.PWMRequest request, io.grpc.stub.StreamObserver<Board.PWMResponse> responseObserver) PWM gets the duty cycle of the given pin of a board of the underlying robot.
-
setPWM
public void setPWM(Board.SetPWMRequest request, io.grpc.stub.StreamObserver<Board.SetPWMResponse> responseObserver) SetPWM sets the given pin of a board of the underlying robot to the given duty cycle.
-
pWMFrequency
public void pWMFrequency(Board.PWMFrequencyRequest request, io.grpc.stub.StreamObserver<Board.PWMFrequencyResponse> responseObserver) PWMFrequency gets the PWM frequency of the given pin of a board of the underlying robot.
-
setPWMFrequency
public void setPWMFrequency(Board.SetPWMFrequencyRequest request, io.grpc.stub.StreamObserver<Board.SetPWMFrequencyResponse> responseObserver) 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 void doCommand(Common.DoCommandRequest request, io.grpc.stub.StreamObserver<Common.DoCommandResponse> responseObserver) DoCommand sends/receives arbitrary commands
-
readAnalogReader
public void readAnalogReader(Board.ReadAnalogReaderRequest request, io.grpc.stub.StreamObserver<Board.ReadAnalogReaderResponse> responseObserver) ReadAnalogReader reads off the current value of an analog reader of a board of the underlying robot.
-
writeAnalog
public void writeAnalog(Board.WriteAnalogRequest request, io.grpc.stub.StreamObserver<Board.WriteAnalogResponse> responseObserver) WriteAnalog writes the value to the analog writer of the board.
-
getDigitalInterruptValue
public void getDigitalInterruptValue(Board.GetDigitalInterruptValueRequest request, io.grpc.stub.StreamObserver<Board.GetDigitalInterruptValueResponse> responseObserver) GetDigitalInterruptValue returns the current value of the interrupt which is based on the type of interrupt.
-
streamTicks
public void streamTicks(Board.StreamTicksRequest request, io.grpc.stub.StreamObserver<Board.StreamTicksResponse> responseObserver) StreamTicks starts a stream of ticks for the given digital interrupts.
-
setPowerMode
public void setPowerMode(Board.SetPowerModeRequest request, io.grpc.stub.StreamObserver<Board.SetPowerModeResponse> responseObserver) `SetPowerMode` sets the power consumption mode of the board to the requested setting for the given duration.
-
getGeometries
public void getGeometries(Common.GetGeometriesRequest request, io.grpc.stub.StreamObserver<Common.GetGeometriesResponse> responseObserver) GetGeometries returns the geometries of the component in their current configuration.
-