Documentation
¶
Index ¶
- Variables
- type GetPositionRequest
- func (x *GetPositionRequest) ClearExtra()
- func (x *GetPositionRequest) ClearPositionType()
- func (x *GetPositionRequest) GetExtra() *structpb.Struct
- func (x *GetPositionRequest) GetName() string
- func (x *GetPositionRequest) GetPositionType() PositionType
- func (x *GetPositionRequest) HasExtra() bool
- func (x *GetPositionRequest) HasPositionType() bool
- func (*GetPositionRequest) ProtoMessage()
- func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPositionRequest) Reset()
- func (x *GetPositionRequest) SetExtra(v *structpb.Struct)
- func (x *GetPositionRequest) SetName(v string)
- func (x *GetPositionRequest) SetPositionType(v PositionType)
- func (x *GetPositionRequest) String() string
- type GetPositionRequest_builder
- type GetPositionResponse
- func (x *GetPositionResponse) GetPositionType() PositionType
- func (x *GetPositionResponse) GetValue() float32
- func (*GetPositionResponse) ProtoMessage()
- func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
- func (x *GetPositionResponse) Reset()
- func (x *GetPositionResponse) SetPositionType(v PositionType)
- func (x *GetPositionResponse) SetValue(v float32)
- func (x *GetPositionResponse) String() string
- type GetPositionResponse_builder
- type GetPropertiesRequest
- func (x *GetPropertiesRequest) ClearExtra()
- func (x *GetPropertiesRequest) GetExtra() *structpb.Struct
- func (x *GetPropertiesRequest) GetName() string
- func (x *GetPropertiesRequest) HasExtra() bool
- func (*GetPropertiesRequest) ProtoMessage()
- func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message
- func (x *GetPropertiesRequest) Reset()
- func (x *GetPropertiesRequest) SetExtra(v *structpb.Struct)
- func (x *GetPropertiesRequest) SetName(v string)
- func (x *GetPropertiesRequest) String() string
- type GetPropertiesRequest_builder
- type GetPropertiesResponse
- func (x *GetPropertiesResponse) GetAngleDegreesSupported() bool
- func (x *GetPropertiesResponse) GetTicksCountSupported() bool
- func (*GetPropertiesResponse) ProtoMessage()
- func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message
- func (x *GetPropertiesResponse) Reset()
- func (x *GetPropertiesResponse) SetAngleDegreesSupported(v bool)
- func (x *GetPropertiesResponse) SetTicksCountSupported(v bool)
- func (x *GetPropertiesResponse) String() string
- type GetPropertiesResponse_builder
- type PositionType
- type ResetPositionRequest
- func (x *ResetPositionRequest) ClearExtra()
- func (x *ResetPositionRequest) GetExtra() *structpb.Struct
- func (x *ResetPositionRequest) GetName() string
- func (x *ResetPositionRequest) HasExtra() bool
- func (*ResetPositionRequest) ProtoMessage()
- func (x *ResetPositionRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPositionRequest) Reset()
- func (x *ResetPositionRequest) SetExtra(v *structpb.Struct)
- func (x *ResetPositionRequest) SetName(v string)
- func (x *ResetPositionRequest) String() string
- type ResetPositionRequest_builder
- type ResetPositionResponse
- type ResetPositionResponse_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PositionType_name = map[int32]string{ 0: "POSITION_TYPE_UNSPECIFIED", 1: "POSITION_TYPE_TICKS_COUNT", 2: "POSITION_TYPE_ANGLE_DEGREES", } PositionType_value = map[string]int32{ "POSITION_TYPE_UNSPECIFIED": 0, "POSITION_TYPE_TICKS_COUNT": 1, "POSITION_TYPE_ANGLE_DEGREES": 2, } )
Enum value maps for PositionType.
View Source
var File_component_encoder_v1_encoder_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetPositionRequest ¶
type GetPositionRequest struct {
// Name of encoder
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// If supplied, the response will return the specified
// position type. If the driver does not implement
// the requested type, this call will return an error.
// If position type is not specified, the response
// will return a default according to the driver.
PositionType *PositionType `` /* 148-byte string literal not displayed */
// Additional arguments to the method
Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
// contains filtered or unexported fields
}
func (*GetPositionRequest) ClearExtra ¶
func (x *GetPositionRequest) ClearExtra()
func (*GetPositionRequest) ClearPositionType ¶
func (x *GetPositionRequest) ClearPositionType()
func (*GetPositionRequest) GetExtra ¶
func (x *GetPositionRequest) GetExtra() *structpb.Struct
func (*GetPositionRequest) GetName ¶
func (x *GetPositionRequest) GetName() string
func (*GetPositionRequest) GetPositionType ¶
func (x *GetPositionRequest) GetPositionType() PositionType
func (*GetPositionRequest) HasExtra ¶
func (x *GetPositionRequest) HasExtra() bool
func (*GetPositionRequest) HasPositionType ¶
func (x *GetPositionRequest) HasPositionType() bool
func (*GetPositionRequest) ProtoMessage ¶
func (*GetPositionRequest) ProtoMessage()
func (*GetPositionRequest) ProtoReflect ¶
func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
func (*GetPositionRequest) Reset ¶
func (x *GetPositionRequest) Reset()
func (*GetPositionRequest) SetExtra ¶
func (x *GetPositionRequest) SetExtra(v *structpb.Struct)
func (*GetPositionRequest) SetName ¶
func (x *GetPositionRequest) SetName(v string)
func (*GetPositionRequest) SetPositionType ¶
func (x *GetPositionRequest) SetPositionType(v PositionType)
func (*GetPositionRequest) String ¶
func (x *GetPositionRequest) String() string
type GetPositionRequest_builder ¶
type GetPositionRequest_builder struct {
// Name of encoder
Name string
// If supplied, the response will return the specified
// position type. If the driver does not implement
// the requested type, this call will return an error.
// If position type is not specified, the response
// will return a default according to the driver.
PositionType *PositionType
// Additional arguments to the method
Extra *structpb.Struct
// contains filtered or unexported fields
}
func (GetPositionRequest_builder) Build ¶
func (b0 GetPositionRequest_builder) Build() *GetPositionRequest
type GetPositionResponse ¶
type GetPositionResponse struct {
Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
PositionType PositionType `` /* 142-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetPositionResponse) GetPositionType ¶
func (x *GetPositionResponse) GetPositionType() PositionType
func (*GetPositionResponse) GetValue ¶
func (x *GetPositionResponse) GetValue() float32
func (*GetPositionResponse) ProtoMessage ¶
func (*GetPositionResponse) ProtoMessage()
func (*GetPositionResponse) ProtoReflect ¶
func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
func (*GetPositionResponse) Reset ¶
func (x *GetPositionResponse) Reset()
func (*GetPositionResponse) SetPositionType ¶
func (x *GetPositionResponse) SetPositionType(v PositionType)
func (*GetPositionResponse) SetValue ¶
func (x *GetPositionResponse) SetValue(v float32)
func (*GetPositionResponse) String ¶
func (x *GetPositionResponse) String() string
type GetPositionResponse_builder ¶
type GetPositionResponse_builder struct {
Value float32
PositionType PositionType
// contains filtered or unexported fields
}
func (GetPositionResponse_builder) Build ¶
func (b0 GetPositionResponse_builder) Build() *GetPositionResponse
type GetPropertiesRequest ¶
type GetPropertiesRequest struct {
// Name of the encoder
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Additional arguments to the method
Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
// contains filtered or unexported fields
}
func (*GetPropertiesRequest) ClearExtra ¶
func (x *GetPropertiesRequest) ClearExtra()
func (*GetPropertiesRequest) GetExtra ¶
func (x *GetPropertiesRequest) GetExtra() *structpb.Struct
func (*GetPropertiesRequest) GetName ¶
func (x *GetPropertiesRequest) GetName() string
func (*GetPropertiesRequest) HasExtra ¶
func (x *GetPropertiesRequest) HasExtra() bool
func (*GetPropertiesRequest) ProtoMessage ¶
func (*GetPropertiesRequest) ProtoMessage()
func (*GetPropertiesRequest) ProtoReflect ¶
func (x *GetPropertiesRequest) ProtoReflect() protoreflect.Message
func (*GetPropertiesRequest) Reset ¶
func (x *GetPropertiesRequest) Reset()
func (*GetPropertiesRequest) SetExtra ¶
func (x *GetPropertiesRequest) SetExtra(v *structpb.Struct)
func (*GetPropertiesRequest) SetName ¶
func (x *GetPropertiesRequest) SetName(v string)
func (*GetPropertiesRequest) String ¶
func (x *GetPropertiesRequest) String() string
type GetPropertiesRequest_builder ¶
type GetPropertiesRequest_builder struct {
// Name of the encoder
Name string
// Additional arguments to the method
Extra *structpb.Struct
// contains filtered or unexported fields
}
func (GetPropertiesRequest_builder) Build ¶
func (b0 GetPropertiesRequest_builder) Build() *GetPropertiesRequest
type GetPropertiesResponse ¶
type GetPropertiesResponse struct {
TicksCountSupported bool `protobuf:"varint,1,opt,name=ticks_count_supported,json=ticksCountSupported,proto3" json:"ticks_count_supported,omitempty"`
AngleDegreesSupported bool `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetPropertiesResponse) GetAngleDegreesSupported ¶
func (x *GetPropertiesResponse) GetAngleDegreesSupported() bool
func (*GetPropertiesResponse) GetTicksCountSupported ¶
func (x *GetPropertiesResponse) GetTicksCountSupported() bool
func (*GetPropertiesResponse) ProtoMessage ¶
func (*GetPropertiesResponse) ProtoMessage()
func (*GetPropertiesResponse) ProtoReflect ¶
func (x *GetPropertiesResponse) ProtoReflect() protoreflect.Message
func (*GetPropertiesResponse) Reset ¶
func (x *GetPropertiesResponse) Reset()
func (*GetPropertiesResponse) SetAngleDegreesSupported ¶
func (x *GetPropertiesResponse) SetAngleDegreesSupported(v bool)
func (*GetPropertiesResponse) SetTicksCountSupported ¶
func (x *GetPropertiesResponse) SetTicksCountSupported(v bool)
func (*GetPropertiesResponse) String ¶
func (x *GetPropertiesResponse) String() string
type GetPropertiesResponse_builder ¶
type GetPropertiesResponse_builder struct {
TicksCountSupported bool
AngleDegreesSupported bool
// contains filtered or unexported fields
}
func (GetPropertiesResponse_builder) Build ¶
func (b0 GetPropertiesResponse_builder) Build() *GetPropertiesResponse
type PositionType ¶
type PositionType int32
const ( PositionType_POSITION_TYPE_UNSPECIFIED PositionType = 0 // Return type for relative encoders that report // how far they've gone from a start position PositionType_POSITION_TYPE_TICKS_COUNT PositionType = 1 // Return type for absolute encoders that report // their position in degrees along the radial axis PositionType_POSITION_TYPE_ANGLE_DEGREES PositionType = 2 )
func (PositionType) Descriptor ¶
func (PositionType) Descriptor() protoreflect.EnumDescriptor
func (PositionType) Enum ¶
func (x PositionType) Enum() *PositionType
func (PositionType) Number ¶
func (x PositionType) Number() protoreflect.EnumNumber
func (PositionType) String ¶
func (x PositionType) String() string
func (PositionType) Type ¶
func (PositionType) Type() protoreflect.EnumType
type ResetPositionRequest ¶
type ResetPositionRequest struct {
// Name of an encoder
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Additional arguments to the method
Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
// contains filtered or unexported fields
}
func (*ResetPositionRequest) ClearExtra ¶
func (x *ResetPositionRequest) ClearExtra()
func (*ResetPositionRequest) GetExtra ¶
func (x *ResetPositionRequest) GetExtra() *structpb.Struct
func (*ResetPositionRequest) GetName ¶
func (x *ResetPositionRequest) GetName() string
func (*ResetPositionRequest) HasExtra ¶
func (x *ResetPositionRequest) HasExtra() bool
func (*ResetPositionRequest) ProtoMessage ¶
func (*ResetPositionRequest) ProtoMessage()
func (*ResetPositionRequest) ProtoReflect ¶
func (x *ResetPositionRequest) ProtoReflect() protoreflect.Message
func (*ResetPositionRequest) Reset ¶
func (x *ResetPositionRequest) Reset()
func (*ResetPositionRequest) SetExtra ¶
func (x *ResetPositionRequest) SetExtra(v *structpb.Struct)
func (*ResetPositionRequest) SetName ¶
func (x *ResetPositionRequest) SetName(v string)
func (*ResetPositionRequest) String ¶
func (x *ResetPositionRequest) String() string
type ResetPositionRequest_builder ¶
type ResetPositionRequest_builder struct {
// Name of an encoder
Name string
// Additional arguments to the method
Extra *structpb.Struct
// contains filtered or unexported fields
}
func (ResetPositionRequest_builder) Build ¶
func (b0 ResetPositionRequest_builder) Build() *ResetPositionRequest
type ResetPositionResponse ¶
type ResetPositionResponse struct {
// contains filtered or unexported fields
}
func (*ResetPositionResponse) ProtoMessage ¶
func (*ResetPositionResponse) ProtoMessage()
func (*ResetPositionResponse) ProtoReflect ¶
func (x *ResetPositionResponse) ProtoReflect() protoreflect.Message
func (*ResetPositionResponse) Reset ¶
func (x *ResetPositionResponse) Reset()
func (*ResetPositionResponse) String ¶
func (x *ResetPositionResponse) String() string
type ResetPositionResponse_builder ¶
type ResetPositionResponse_builder struct {
// contains filtered or unexported fields
}
func (ResetPositionResponse_builder) Build ¶
func (b0 ResetPositionResponse_builder) Build() *ResetPositionResponse
Source Files
¶
- encoder.pb.go
Click to show internal directories.
Click to hide internal directories.