pb

package
v0.0.0-...-af67c94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Motors    []*Motor `protobuf:"bytes,1,rep,name=Motors,proto3" json:"Motors,omitempty"`
	PWMPeriod uint32   `protobuf:"varint,2,opt,name=PWMPeriod,proto3" json:"PWMPeriod,omitempty"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetMotors

func (m *Config) GetMotors() []*Motor

func (*Config) GetPWMPeriod

func (m *Config) GetPWMPeriod() uint32

func (*Config) Marshal

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type Motor

type Motor struct {
	PinA      uint32 `protobuf:"varint,1,opt,name=PinA,proto3" json:"PinA,omitempty"`
	PinB      uint32 `protobuf:"varint,2,opt,name=PinB,proto3" json:"PinB,omitempty"`
	PinPWM    uint32 `protobuf:"varint,3,opt,name=PinPWM,proto3" json:"PinPWM,omitempty"`
	PinEnable uint32 `protobuf:"varint,4,opt,name=PinEnable,proto3" json:"PinEnable,omitempty"`
	PinEncA   uint32 `protobuf:"varint,5,opt,name=PinEncA,proto3" json:"PinEncA,omitempty"`
	PinEncB   uint32 `protobuf:"varint,6,opt,name=PinEncB,proto3" json:"PinEncB,omitempty"`
}

func (*Motor) Descriptor

func (*Motor) Descriptor() ([]byte, []int)

func (*Motor) GetPinA

func (m *Motor) GetPinA() uint32

func (*Motor) GetPinB

func (m *Motor) GetPinB() uint32

func (*Motor) GetPinEnable

func (m *Motor) GetPinEnable() uint32

func (*Motor) GetPinEncA

func (m *Motor) GetPinEncA() uint32

func (*Motor) GetPinEncB

func (m *Motor) GetPinEncB() uint32

func (*Motor) GetPinPWM

func (m *Motor) GetPinPWM() uint32

func (*Motor) Marshal

func (m *Motor) Marshal() (dAtA []byte, err error)

func (*Motor) MarshalTo

func (m *Motor) MarshalTo(dAtA []byte) (int, error)

func (*Motor) MarshalToSizedBuffer

func (m *Motor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Motor) ProtoMessage

func (*Motor) ProtoMessage()

func (*Motor) Reset

func (m *Motor) Reset()

func (*Motor) Size

func (m *Motor) Size() (n int)

func (*Motor) String

func (m *Motor) String() string

func (*Motor) Unmarshal

func (m *Motor) Unmarshal(dAtA []byte) error

func (*Motor) XXX_DiscardUnknown

func (m *Motor) XXX_DiscardUnknown()

func (*Motor) XXX_Marshal

func (m *Motor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Motor) XXX_Merge

func (m *Motor) XXX_Merge(src proto.Message)

func (*Motor) XXX_Size

func (m *Motor) XXX_Size() int

func (*Motor) XXX_Unmarshal

func (m *Motor) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL