pb

package
v0.0.0-...-7824b26 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnectionType_name = map[int32]string{
		0: "UNKNOWN",
		1: "WIRELESS",
		2: "WIRED",
	}
	ConnectionType_value = map[string]int32{
		"UNKNOWN":  0,
		"WIRELESS": 1,
		"WIRED":    2,
	}
)

Enum value maps for ConnectionType.

View Source
var File_flydigi_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Color

type Color struct {
	Rgb int32 `protobuf:"varint,1,opt,name=rgb,proto3" json:"rgb,omitempty"`
	// contains filtered or unexported fields
}

func ColorFromHex

func ColorFromHex(hex string) (*Color, bool)

func ColorFromName

func ColorFromName(name string) (*Color, bool)

func ColorFromRGB

func ColorFromRGB(r, g, b byte) *Color

func (*Color) Descriptor deprecated

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

Deprecated: Use Color.ProtoReflect.Descriptor instead.

func (*Color) GetRgb

func (x *Color) GetRgb() int32

func (*Color) LedUnit

func (c *Color) LedUnit() *config.LedUnit

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) ProtoReflect

func (x *Color) ProtoReflect() protoreflect.Message

func (*Color) RGB

func (c *Color) RGB() (r, g, b byte)

func (*Color) Reset

func (x *Color) Reset()

func (*Color) String

func (x *Color) String() string

type ConnectionType

type ConnectionType int32
const (
	ConnectionType_UNKNOWN  ConnectionType = 0
	ConnectionType_WIRELESS ConnectionType = 1
	ConnectionType_WIRED    ConnectionType = 2
)

func (ConnectionType) Descriptor

func (ConnectionType) Enum

func (x ConnectionType) Enum() *ConnectionType

func (ConnectionType) EnumDescriptor deprecated

func (ConnectionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConnectionType.Descriptor instead.

func (ConnectionType) Number

func (ConnectionType) String

func (x ConnectionType) String() string

func (ConnectionType) Type

type GamepadConfiguration

type GamepadConfiguration struct {
	LeftJoystick  *JoystickConfiguration `protobuf:"bytes,1,opt,name=left_joystick,json=leftJoystick,proto3" json:"left_joystick,omitempty"`
	RightJoystick *JoystickConfiguration `protobuf:"bytes,2,opt,name=right_joystick,json=rightJoystick,proto3" json:"right_joystick,omitempty"`
	// contains filtered or unexported fields
}

func ConvertGamepadConfiguration

func ConvertGamepadConfiguration(bean *config.AllConfigBean) *GamepadConfiguration

func (*GamepadConfiguration) ApplyTo

func (c *GamepadConfiguration) ApplyTo(bean *config.AllConfigBean)

func (*GamepadConfiguration) Descriptor deprecated

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

Deprecated: Use GamepadConfiguration.ProtoReflect.Descriptor instead.

func (*GamepadConfiguration) GetLeftJoystick

func (x *GamepadConfiguration) GetLeftJoystick() *JoystickConfiguration

func (*GamepadConfiguration) GetRightJoystick

func (x *GamepadConfiguration) GetRightJoystick() *JoystickConfiguration

func (*GamepadConfiguration) ProtoMessage

func (*GamepadConfiguration) ProtoMessage()

func (*GamepadConfiguration) ProtoReflect

func (x *GamepadConfiguration) ProtoReflect() protoreflect.Message

func (*GamepadConfiguration) Reset

func (x *GamepadConfiguration) Reset()

func (*GamepadConfiguration) String

func (x *GamepadConfiguration) String() string

type GamepadInfo

type GamepadInfo struct {
	DeviceId       int32          `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	BatteryPercent int32          `protobuf:"varint,2,opt,name=battery_percent,json=batteryPercent,proto3" json:"battery_percent,omitempty"`
	ConnectionType ConnectionType `` /* 132-byte string literal not displayed */
	CpuType        string         `protobuf:"bytes,4,opt,name=cpu_type,json=cpuType,proto3" json:"cpu_type,omitempty"`
	CpuName        string         `protobuf:"bytes,5,opt,name=cpu_name,json=cpuName,proto3" json:"cpu_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GamepadInfo) Descriptor deprecated

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

Deprecated: Use GamepadInfo.ProtoReflect.Descriptor instead.

func (*GamepadInfo) GetBatteryPercent

func (x *GamepadInfo) GetBatteryPercent() int32

func (*GamepadInfo) GetConnectionType

func (x *GamepadInfo) GetConnectionType() ConnectionType

func (*GamepadInfo) GetCpuName

func (x *GamepadInfo) GetCpuName() string

func (*GamepadInfo) GetCpuType

func (x *GamepadInfo) GetCpuType() string

func (*GamepadInfo) GetDeviceId

func (x *GamepadInfo) GetDeviceId() int32

func (*GamepadInfo) ProtoMessage

func (*GamepadInfo) ProtoMessage()

func (*GamepadInfo) ProtoReflect

func (x *GamepadInfo) ProtoReflect() protoreflect.Message

func (*GamepadInfo) Reset

func (x *GamepadInfo) Reset()

func (*GamepadInfo) String

func (x *GamepadInfo) String() string

type JoystickConfiguration

type JoystickConfiguration struct {
	Deadzone int32 `protobuf:"varint,1,opt,name=deadzone,proto3" json:"deadzone,omitempty"`
	// contains filtered or unexported fields
}

func ConvertJoystickConfiguration

func ConvertJoystickConfiguration(bean *config.JoyStickBean) *JoystickConfiguration

func (*JoystickConfiguration) ApplyTo

func (c *JoystickConfiguration) ApplyTo(bean *config.JoyStickBean)

func (*JoystickConfiguration) Descriptor deprecated

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

Deprecated: Use JoystickConfiguration.ProtoReflect.Descriptor instead.

func (*JoystickConfiguration) GetDeadzone

func (x *JoystickConfiguration) GetDeadzone() int32

func (*JoystickConfiguration) ProtoMessage

func (*JoystickConfiguration) ProtoMessage()

func (*JoystickConfiguration) ProtoReflect

func (x *JoystickConfiguration) ProtoReflect() protoreflect.Message

func (*JoystickConfiguration) Reset

func (x *JoystickConfiguration) Reset()

func (*JoystickConfiguration) String

func (x *JoystickConfiguration) String() string

type LedsConfiguration

type LedsConfiguration struct {
	Brightness float32 `protobuf:"fixed32,1,opt,name=brightness,proto3" json:"brightness,omitempty"`
	// Types that are assignable to Leds:
	//
	//	*LedsConfiguration_Off
	//	*LedsConfiguration_Steady
	//	*LedsConfiguration_Streamlined
	Leds isLedsConfiguration_Leds `protobuf_oneof:"leds"`
	// contains filtered or unexported fields
}

func ConvertLEDConfiguration

func ConvertLEDConfiguration(bean *config.NewLedConfigBean) *LedsConfiguration

func (*LedsConfiguration) ApplyTo

func (c *LedsConfiguration) ApplyTo(bean *config.NewLedConfigBean)

func (*LedsConfiguration) Descriptor deprecated

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

Deprecated: Use LedsConfiguration.ProtoReflect.Descriptor instead.

func (*LedsConfiguration) GetBrightness

func (x *LedsConfiguration) GetBrightness() float32

func (*LedsConfiguration) GetLeds

func (m *LedsConfiguration) GetLeds() isLedsConfiguration_Leds

func (*LedsConfiguration) GetOff

func (x *LedsConfiguration) GetOff() *LedsOff

func (*LedsConfiguration) GetSteady

func (x *LedsConfiguration) GetSteady() *LedsSteady

func (*LedsConfiguration) GetStreamlined

func (x *LedsConfiguration) GetStreamlined() *LedsStreamlined

func (*LedsConfiguration) ProtoMessage

func (*LedsConfiguration) ProtoMessage()

func (*LedsConfiguration) ProtoReflect

func (x *LedsConfiguration) ProtoReflect() protoreflect.Message

func (*LedsConfiguration) Reset

func (x *LedsConfiguration) Reset()

func (*LedsConfiguration) String

func (x *LedsConfiguration) String() string

type LedsConfiguration_Off

type LedsConfiguration_Off struct {
	Off *LedsOff `protobuf:"bytes,10,opt,name=off,proto3,oneof"`
}

type LedsConfiguration_Steady

type LedsConfiguration_Steady struct {
	Steady *LedsSteady `protobuf:"bytes,12,opt,name=steady,proto3,oneof"`
}

type LedsConfiguration_Streamlined

type LedsConfiguration_Streamlined struct {
	Streamlined *LedsStreamlined `protobuf:"bytes,13,opt,name=streamlined,proto3,oneof"`
}

type LedsOff

type LedsOff struct {
	// contains filtered or unexported fields
}

func (*LedsOff) Descriptor deprecated

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

Deprecated: Use LedsOff.ProtoReflect.Descriptor instead.

func (*LedsOff) ProtoMessage

func (*LedsOff) ProtoMessage()

func (*LedsOff) ProtoReflect

func (x *LedsOff) ProtoReflect() protoreflect.Message

func (*LedsOff) Reset

func (x *LedsOff) Reset()

func (*LedsOff) String

func (x *LedsOff) String() string

type LedsSteady

type LedsSteady struct {
	Color *Color `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*LedsSteady) Descriptor deprecated

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

Deprecated: Use LedsSteady.ProtoReflect.Descriptor instead.

func (*LedsSteady) GetColor

func (x *LedsSteady) GetColor() *Color

func (*LedsSteady) ProtoMessage

func (*LedsSteady) ProtoMessage()

func (*LedsSteady) ProtoReflect

func (x *LedsSteady) ProtoReflect() protoreflect.Message

func (*LedsSteady) Reset

func (x *LedsSteady) Reset()

func (*LedsSteady) String

func (x *LedsSteady) String() string

type LedsStreamlined

type LedsStreamlined struct {
	Speed float32 `protobuf:"fixed32,1,opt,name=speed,proto3" json:"speed,omitempty"`
	// contains filtered or unexported fields
}

func (*LedsStreamlined) Descriptor deprecated

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

Deprecated: Use LedsStreamlined.ProtoReflect.Descriptor instead.

func (*LedsStreamlined) GetSpeed

func (x *LedsStreamlined) GetSpeed() float32

func (*LedsStreamlined) ProtoMessage

func (*LedsStreamlined) ProtoMessage()

func (*LedsStreamlined) ProtoReflect

func (x *LedsStreamlined) ProtoReflect() protoreflect.Message

func (*LedsStreamlined) Reset

func (x *LedsStreamlined) Reset()

func (*LedsStreamlined) String

func (x *LedsStreamlined) String() string

Jump to

Keyboard shortcuts

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