platformproto

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GpsSource_name = map[int32]string{
		0: "GPS_SOURCE_UNKNOWN",
		1: "GPS_SOURCE_ANDROID_FUSED",
		2: "GPS_SOURCE_ANDROID_GPS",
		3: "GPS_SOURCE_ANDROID_NETWORK",
	}
	GpsSource_value = map[string]int32{
		"GPS_SOURCE_UNKNOWN":         0,
		"GPS_SOURCE_ANDROID_FUSED":   1,
		"GPS_SOURCE_ANDROID_GPS":     2,
		"GPS_SOURCE_ANDROID_NETWORK": 3,
	}
)

Enum value maps for GpsSource.

View Source
var (
	UsbClass_name = map[int32]string{
		0: "USB_CLASS_UNKNOWN",
		1: "USB_CLASS_AUDIO",
		2: "USB_CLASS_HID",
		3: "USB_CLASS_CDC_ACM",
		4: "USB_CLASS_VENDOR",
	}
	UsbClass_value = map[string]int32{
		"USB_CLASS_UNKNOWN": 0,
		"USB_CLASS_AUDIO":   1,
		"USB_CLASS_HID":     2,
		"USB_CLASS_CDC_ACM": 3,
		"USB_CLASS_VENDOR":  4,
	}
)

Enum value maps for UsbClass.

View Source
var (
	PttMethod_name = map[int32]string{
		0: "PTT_METHOD_UNKNOWN",
		1: "PTT_METHOD_CP2102N_RTS",
		2: "PTT_METHOD_CM108_HID",
		3: "PTT_METHOD_AIOC_CDC_DTR",
		4: "PTT_METHOD_VOX",
	}
	PttMethod_value = map[string]int32{
		"PTT_METHOD_UNKNOWN":      0,
		"PTT_METHOD_CP2102N_RTS":  1,
		"PTT_METHOD_CM108_HID":    2,
		"PTT_METHOD_AIOC_CDC_DTR": 3,
		"PTT_METHOD_VOX":          4,
	}
)

Enum value maps for PttMethod.

View Source
var (
	ErrorCode_name = map[int32]string{
		0: "ERROR_UNKNOWN",
		1: "ERROR_NOT_IMPLEMENTED",
		2: "ERROR_SCHEMA_MISMATCH",
		3: "ERROR_INVALID_ARGUMENT",
		4: "ERROR_PERMISSION_DENIED",
		5: "ERROR_NOT_FOUND",
		6: "ERROR_INTERNAL",
	}
	ErrorCode_value = map[string]int32{
		"ERROR_UNKNOWN":           0,
		"ERROR_NOT_IMPLEMENTED":   1,
		"ERROR_SCHEMA_MISMATCH":   2,
		"ERROR_INVALID_ARGUMENT":  3,
		"ERROR_PERMISSION_DENIED": 4,
		"ERROR_NOT_FOUND":         5,
		"ERROR_INTERNAL":          6,
	}
)

Enum value maps for ErrorCode.

View Source
var File_platform_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AudioDevice

type AudioDevice struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id       string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	IsInput  bool   `protobuf:"varint,3,opt,name=is_input,json=isInput,proto3" json:"is_input,omitempty"`
	IsOutput bool   `protobuf:"varint,4,opt,name=is_output,json=isOutput,proto3" json:"is_output,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioDevice) Descriptor deprecated

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

Deprecated: Use AudioDevice.ProtoReflect.Descriptor instead.

func (*AudioDevice) GetId

func (x *AudioDevice) GetId() string

func (*AudioDevice) GetIsInput

func (x *AudioDevice) GetIsInput() bool

func (*AudioDevice) GetIsOutput

func (x *AudioDevice) GetIsOutput() bool

func (*AudioDevice) GetName

func (x *AudioDevice) GetName() string

func (*AudioDevice) ProtoMessage

func (*AudioDevice) ProtoMessage()

func (*AudioDevice) ProtoReflect

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

func (*AudioDevice) Reset

func (x *AudioDevice) Reset()

func (*AudioDevice) String

func (x *AudioDevice) String() string

type AudioDeviceListRequest

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

func (*AudioDeviceListRequest) Descriptor deprecated

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

Deprecated: Use AudioDeviceListRequest.ProtoReflect.Descriptor instead.

func (*AudioDeviceListRequest) ProtoMessage

func (*AudioDeviceListRequest) ProtoMessage()

func (*AudioDeviceListRequest) ProtoReflect

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

func (*AudioDeviceListRequest) Reset

func (x *AudioDeviceListRequest) Reset()

func (*AudioDeviceListRequest) String

func (x *AudioDeviceListRequest) String() string

type AudioDeviceListResponse

type AudioDeviceListResponse struct {
	Devices []*AudioDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioDeviceListResponse) Descriptor deprecated

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

Deprecated: Use AudioDeviceListResponse.ProtoReflect.Descriptor instead.

func (*AudioDeviceListResponse) GetDevices

func (x *AudioDeviceListResponse) GetDevices() []*AudioDevice

func (*AudioDeviceListResponse) ProtoMessage

func (*AudioDeviceListResponse) ProtoMessage()

func (*AudioDeviceListResponse) ProtoReflect

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

func (*AudioDeviceListResponse) Reset

func (x *AudioDeviceListResponse) Reset()

func (*AudioDeviceListResponse) String

func (x *AudioDeviceListResponse) String() string

type AudioRouteChanged

type AudioRouteChanged struct {
	CurrentInputs  []*AudioDevice `protobuf:"bytes,1,rep,name=current_inputs,json=currentInputs,proto3" json:"current_inputs,omitempty"`
	CurrentOutputs []*AudioDevice `protobuf:"bytes,2,rep,name=current_outputs,json=currentOutputs,proto3" json:"current_outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioRouteChanged) Descriptor deprecated

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

Deprecated: Use AudioRouteChanged.ProtoReflect.Descriptor instead.

func (*AudioRouteChanged) GetCurrentInputs

func (x *AudioRouteChanged) GetCurrentInputs() []*AudioDevice

func (*AudioRouteChanged) GetCurrentOutputs

func (x *AudioRouteChanged) GetCurrentOutputs() []*AudioDevice

func (*AudioRouteChanged) ProtoMessage

func (*AudioRouteChanged) ProtoMessage()

func (*AudioRouteChanged) ProtoReflect

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

func (*AudioRouteChanged) Reset

func (x *AudioRouteChanged) Reset()

func (*AudioRouteChanged) String

func (x *AudioRouteChanged) String() string

type BatteryState

type BatteryState struct {
	Percent   float32 `protobuf:"fixed32,1,opt,name=percent,proto3" json:"percent,omitempty"`
	Charging  bool    `protobuf:"varint,2,opt,name=charging,proto3" json:"charging,omitempty"`
	TempDecic int32   `protobuf:"varint,3,opt,name=temp_decic,json=tempDecic,proto3" json:"temp_decic,omitempty"` // tenths of a degree C
	// contains filtered or unexported fields
}

func (*BatteryState) Descriptor deprecated

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

Deprecated: Use BatteryState.ProtoReflect.Descriptor instead.

func (*BatteryState) GetCharging

func (x *BatteryState) GetCharging() bool

func (*BatteryState) GetPercent

func (x *BatteryState) GetPercent() float32

func (*BatteryState) GetTempDecic

func (x *BatteryState) GetTempDecic() int32

func (*BatteryState) ProtoMessage

func (*BatteryState) ProtoMessage()

func (*BatteryState) ProtoReflect

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

func (*BatteryState) Reset

func (x *BatteryState) Reset()

func (*BatteryState) String

func (x *BatteryState) String() string

type Error

type Error struct {
	Code    ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=graywolf.platform.ErrorCode" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() ErrorCode

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_ERROR_UNKNOWN           ErrorCode = 0
	ErrorCode_ERROR_NOT_IMPLEMENTED   ErrorCode = 1
	ErrorCode_ERROR_SCHEMA_MISMATCH   ErrorCode = 2
	ErrorCode_ERROR_INVALID_ARGUMENT  ErrorCode = 3
	ErrorCode_ERROR_PERMISSION_DENIED ErrorCode = 4
	ErrorCode_ERROR_NOT_FOUND         ErrorCode = 5
	ErrorCode_ERROR_INTERNAL          ErrorCode = 6
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type GpsFix

type GpsFix struct {
	Lat        float64   `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lon        float64   `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"`
	AltM       float64   `protobuf:"fixed64,3,opt,name=alt_m,json=altM,proto3" json:"alt_m,omitempty"`
	SpeedMps   float64   `protobuf:"fixed64,4,opt,name=speed_mps,json=speedMps,proto3" json:"speed_mps,omitempty"`
	CourseDeg  float64   `protobuf:"fixed64,5,opt,name=course_deg,json=courseDeg,proto3" json:"course_deg,omitempty"`
	TimeUnixMs int64     `protobuf:"varint,6,opt,name=time_unix_ms,json=timeUnixMs,proto3" json:"time_unix_ms,omitempty"`
	Hdop       float64   `protobuf:"fixed64,7,opt,name=hdop,proto3" json:"hdop,omitempty"`
	NumSats    uint32    `protobuf:"varint,8,opt,name=num_sats,json=numSats,proto3" json:"num_sats,omitempty"`
	Source     GpsSource `protobuf:"varint,9,opt,name=source,proto3,enum=graywolf.platform.GpsSource" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*GpsFix) Descriptor deprecated

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

Deprecated: Use GpsFix.ProtoReflect.Descriptor instead.

func (*GpsFix) GetAltM

func (x *GpsFix) GetAltM() float64

func (*GpsFix) GetCourseDeg

func (x *GpsFix) GetCourseDeg() float64

func (*GpsFix) GetHdop

func (x *GpsFix) GetHdop() float64

func (*GpsFix) GetLat

func (x *GpsFix) GetLat() float64

func (*GpsFix) GetLon

func (x *GpsFix) GetLon() float64

func (*GpsFix) GetNumSats

func (x *GpsFix) GetNumSats() uint32

func (*GpsFix) GetSource

func (x *GpsFix) GetSource() GpsSource

func (*GpsFix) GetSpeedMps

func (x *GpsFix) GetSpeedMps() float64

func (*GpsFix) GetTimeUnixMs

func (x *GpsFix) GetTimeUnixMs() int64

func (*GpsFix) ProtoMessage

func (*GpsFix) ProtoMessage()

func (*GpsFix) ProtoReflect

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

func (*GpsFix) Reset

func (x *GpsFix) Reset()

func (*GpsFix) String

func (x *GpsFix) String() string

type GpsSource

type GpsSource int32
const (
	GpsSource_GPS_SOURCE_UNKNOWN         GpsSource = 0
	GpsSource_GPS_SOURCE_ANDROID_FUSED   GpsSource = 1
	GpsSource_GPS_SOURCE_ANDROID_GPS     GpsSource = 2
	GpsSource_GPS_SOURCE_ANDROID_NETWORK GpsSource = 3
)

func (GpsSource) Descriptor

func (GpsSource) Descriptor() protoreflect.EnumDescriptor

func (GpsSource) Enum

func (x GpsSource) Enum() *GpsSource

func (GpsSource) EnumDescriptor deprecated

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

Deprecated: Use GpsSource.Descriptor instead.

func (GpsSource) Number

func (x GpsSource) Number() protoreflect.EnumNumber

func (GpsSource) String

func (x GpsSource) String() string

func (GpsSource) Type

type Hello

type Hello struct {
	SchemaVersion uint32 `protobuf:"varint,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
	ClientVersion string `protobuf:"bytes,2,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
	ServerVersion string `protobuf:"bytes,3,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` // populated in the response only
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetClientVersion

func (x *Hello) GetClientVersion() string

func (*Hello) GetSchemaVersion

func (x *Hello) GetSchemaVersion() uint32

func (*Hello) GetServerVersion

func (x *Hello) GetServerVersion() string

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

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

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type PlatformMessage

type PlatformMessage struct {

	// Types that are valid to be assigned to Body:
	//
	//	*PlatformMessage_Hello
	//	*PlatformMessage_GpsFix
	//	*PlatformMessage_BatteryState
	//	*PlatformMessage_UsbAttach
	//	*PlatformMessage_UsbDetach
	//	*PlatformMessage_UsbListReq
	//	*PlatformMessage_UsbListResp
	//	*PlatformMessage_UsbSelectReq
	//	*PlatformMessage_UsbSelectResp
	//	*PlatformMessage_PttKeyReq
	//	*PlatformMessage_PttUnkeyReq
	//	*PlatformMessage_PttAck
	//	*PlatformMessage_AudioListReq
	//	*PlatformMessage_AudioListResp
	//	*PlatformMessage_AudioRouteChanged
	//	*PlatformMessage_Error
	Body isPlatformMessage_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

Top-level envelope. Every message on the wire is a PlatformMessage. Wire framing (matches pkg/modembridge/framing.go):

[4 BE bytes length][serialized PlatformMessage bytes]

func (*PlatformMessage) Descriptor deprecated

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

Deprecated: Use PlatformMessage.ProtoReflect.Descriptor instead.

func (*PlatformMessage) GetAudioListReq

func (x *PlatformMessage) GetAudioListReq() *AudioDeviceListRequest

func (*PlatformMessage) GetAudioListResp

func (x *PlatformMessage) GetAudioListResp() *AudioDeviceListResponse

func (*PlatformMessage) GetAudioRouteChanged

func (x *PlatformMessage) GetAudioRouteChanged() *AudioRouteChanged

func (*PlatformMessage) GetBatteryState

func (x *PlatformMessage) GetBatteryState() *BatteryState

func (*PlatformMessage) GetBody

func (x *PlatformMessage) GetBody() isPlatformMessage_Body

func (*PlatformMessage) GetError

func (x *PlatformMessage) GetError() *Error

func (*PlatformMessage) GetGpsFix

func (x *PlatformMessage) GetGpsFix() *GpsFix

func (*PlatformMessage) GetHello

func (x *PlatformMessage) GetHello() *Hello

func (*PlatformMessage) GetPttAck

func (x *PlatformMessage) GetPttAck() *PttAck

func (*PlatformMessage) GetPttKeyReq

func (x *PlatformMessage) GetPttKeyReq() *PttKeyRequest

func (*PlatformMessage) GetPttUnkeyReq

func (x *PlatformMessage) GetPttUnkeyReq() *PttUnkeyRequest

func (*PlatformMessage) GetUsbAttach

func (x *PlatformMessage) GetUsbAttach() *UsbAttach

func (*PlatformMessage) GetUsbDetach

func (x *PlatformMessage) GetUsbDetach() *UsbDetach

func (*PlatformMessage) GetUsbListReq

func (x *PlatformMessage) GetUsbListReq() *UsbDeviceListRequest

func (*PlatformMessage) GetUsbListResp

func (x *PlatformMessage) GetUsbListResp() *UsbDeviceListResponse

func (*PlatformMessage) GetUsbSelectReq

func (x *PlatformMessage) GetUsbSelectReq() *UsbSelectRequest

func (*PlatformMessage) GetUsbSelectResp

func (x *PlatformMessage) GetUsbSelectResp() *UsbSelectResponse

func (*PlatformMessage) ProtoMessage

func (*PlatformMessage) ProtoMessage()

func (*PlatformMessage) ProtoReflect

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

func (*PlatformMessage) Reset

func (x *PlatformMessage) Reset()

func (*PlatformMessage) String

func (x *PlatformMessage) String() string

type PlatformMessage_AudioListReq

type PlatformMessage_AudioListReq struct {
	AudioListReq *AudioDeviceListRequest `protobuf:"bytes,13,opt,name=audio_list_req,json=audioListReq,proto3,oneof"`
}

type PlatformMessage_AudioListResp

type PlatformMessage_AudioListResp struct {
	AudioListResp *AudioDeviceListResponse `protobuf:"bytes,14,opt,name=audio_list_resp,json=audioListResp,proto3,oneof"`
}

type PlatformMessage_AudioRouteChanged

type PlatformMessage_AudioRouteChanged struct {
	AudioRouteChanged *AudioRouteChanged `protobuf:"bytes,15,opt,name=audio_route_changed,json=audioRouteChanged,proto3,oneof"`
}

type PlatformMessage_BatteryState

type PlatformMessage_BatteryState struct {
	BatteryState *BatteryState `protobuf:"bytes,3,opt,name=battery_state,json=batteryState,proto3,oneof"`
}

type PlatformMessage_Error

type PlatformMessage_Error struct {
	Error *Error `protobuf:"bytes,16,opt,name=error,proto3,oneof"`
}

type PlatformMessage_GpsFix

type PlatformMessage_GpsFix struct {
	GpsFix *GpsFix `protobuf:"bytes,2,opt,name=gps_fix,json=gpsFix,proto3,oneof"`
}

type PlatformMessage_Hello

type PlatformMessage_Hello struct {
	Hello *Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}

type PlatformMessage_PttAck

type PlatformMessage_PttAck struct {
	PttAck *PttAck `protobuf:"bytes,12,opt,name=ptt_ack,json=pttAck,proto3,oneof"`
}

type PlatformMessage_PttKeyReq

type PlatformMessage_PttKeyReq struct {
	PttKeyReq *PttKeyRequest `protobuf:"bytes,10,opt,name=ptt_key_req,json=pttKeyReq,proto3,oneof"`
}

type PlatformMessage_PttUnkeyReq

type PlatformMessage_PttUnkeyReq struct {
	PttUnkeyReq *PttUnkeyRequest `protobuf:"bytes,11,opt,name=ptt_unkey_req,json=pttUnkeyReq,proto3,oneof"`
}

type PlatformMessage_UsbAttach

type PlatformMessage_UsbAttach struct {
	UsbAttach *UsbAttach `protobuf:"bytes,4,opt,name=usb_attach,json=usbAttach,proto3,oneof"`
}

type PlatformMessage_UsbDetach

type PlatformMessage_UsbDetach struct {
	UsbDetach *UsbDetach `protobuf:"bytes,5,opt,name=usb_detach,json=usbDetach,proto3,oneof"`
}

type PlatformMessage_UsbListReq

type PlatformMessage_UsbListReq struct {
	UsbListReq *UsbDeviceListRequest `protobuf:"bytes,6,opt,name=usb_list_req,json=usbListReq,proto3,oneof"`
}

type PlatformMessage_UsbListResp

type PlatformMessage_UsbListResp struct {
	UsbListResp *UsbDeviceListResponse `protobuf:"bytes,7,opt,name=usb_list_resp,json=usbListResp,proto3,oneof"`
}

type PlatformMessage_UsbSelectReq

type PlatformMessage_UsbSelectReq struct {
	UsbSelectReq *UsbSelectRequest `protobuf:"bytes,8,opt,name=usb_select_req,json=usbSelectReq,proto3,oneof"`
}

type PlatformMessage_UsbSelectResp

type PlatformMessage_UsbSelectResp struct {
	UsbSelectResp *UsbSelectResponse `protobuf:"bytes,9,opt,name=usb_select_resp,json=usbSelectResp,proto3,oneof"`
}

type PttAck

type PttAck struct {
	Ok           bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*PttAck) Descriptor deprecated

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

Deprecated: Use PttAck.ProtoReflect.Descriptor instead.

func (*PttAck) GetErrorMessage

func (x *PttAck) GetErrorMessage() string

func (*PttAck) GetOk

func (x *PttAck) GetOk() bool

func (*PttAck) ProtoMessage

func (*PttAck) ProtoMessage()

func (*PttAck) ProtoReflect

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

func (*PttAck) Reset

func (x *PttAck) Reset()

func (*PttAck) String

func (x *PttAck) String() string

type PttKeyRequest

type PttKeyRequest struct {
	Method   PttMethod `protobuf:"varint,1,opt,name=method,proto3,enum=graywolf.platform.PttMethod" json:"method,omitempty"`
	HandleId string    `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PttKeyRequest) Descriptor deprecated

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

Deprecated: Use PttKeyRequest.ProtoReflect.Descriptor instead.

func (*PttKeyRequest) GetHandleId

func (x *PttKeyRequest) GetHandleId() string

func (*PttKeyRequest) GetMethod

func (x *PttKeyRequest) GetMethod() PttMethod

func (*PttKeyRequest) ProtoMessage

func (*PttKeyRequest) ProtoMessage()

func (*PttKeyRequest) ProtoReflect

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

func (*PttKeyRequest) Reset

func (x *PttKeyRequest) Reset()

func (*PttKeyRequest) String

func (x *PttKeyRequest) String() string

type PttMethod

type PttMethod int32
const (
	PttMethod_PTT_METHOD_UNKNOWN      PttMethod = 0
	PttMethod_PTT_METHOD_CP2102N_RTS  PttMethod = 1
	PttMethod_PTT_METHOD_CM108_HID    PttMethod = 2
	PttMethod_PTT_METHOD_AIOC_CDC_DTR PttMethod = 3
	PttMethod_PTT_METHOD_VOX          PttMethod = 4
)

func (PttMethod) Descriptor

func (PttMethod) Descriptor() protoreflect.EnumDescriptor

func (PttMethod) Enum

func (x PttMethod) Enum() *PttMethod

func (PttMethod) EnumDescriptor deprecated

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

Deprecated: Use PttMethod.Descriptor instead.

func (PttMethod) Number

func (x PttMethod) Number() protoreflect.EnumNumber

func (PttMethod) String

func (x PttMethod) String() string

func (PttMethod) Type

type PttUnkeyRequest

type PttUnkeyRequest struct {
	Method   PttMethod `protobuf:"varint,1,opt,name=method,proto3,enum=graywolf.platform.PttMethod" json:"method,omitempty"`
	HandleId string    `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*PttUnkeyRequest) Descriptor deprecated

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

Deprecated: Use PttUnkeyRequest.ProtoReflect.Descriptor instead.

func (*PttUnkeyRequest) GetHandleId

func (x *PttUnkeyRequest) GetHandleId() string

func (*PttUnkeyRequest) GetMethod

func (x *PttUnkeyRequest) GetMethod() PttMethod

func (*PttUnkeyRequest) ProtoMessage

func (*PttUnkeyRequest) ProtoMessage()

func (*PttUnkeyRequest) ProtoReflect

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

func (*PttUnkeyRequest) Reset

func (x *PttUnkeyRequest) Reset()

func (*PttUnkeyRequest) String

func (x *PttUnkeyRequest) String() string

type UsbAttach

type UsbAttach struct {
	Device *UsbDevice `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbAttach) Descriptor deprecated

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

Deprecated: Use UsbAttach.ProtoReflect.Descriptor instead.

func (*UsbAttach) GetDevice

func (x *UsbAttach) GetDevice() *UsbDevice

func (*UsbAttach) ProtoMessage

func (*UsbAttach) ProtoMessage()

func (*UsbAttach) ProtoReflect

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

func (*UsbAttach) Reset

func (x *UsbAttach) Reset()

func (*UsbAttach) String

func (x *UsbAttach) String() string

type UsbClass

type UsbClass int32
const (
	UsbClass_USB_CLASS_UNKNOWN UsbClass = 0
	UsbClass_USB_CLASS_AUDIO   UsbClass = 1
	UsbClass_USB_CLASS_HID     UsbClass = 2
	UsbClass_USB_CLASS_CDC_ACM UsbClass = 3
	UsbClass_USB_CLASS_VENDOR  UsbClass = 4
)

func (UsbClass) Descriptor

func (UsbClass) Descriptor() protoreflect.EnumDescriptor

func (UsbClass) Enum

func (x UsbClass) Enum() *UsbClass

func (UsbClass) EnumDescriptor deprecated

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

Deprecated: Use UsbClass.Descriptor instead.

func (UsbClass) Number

func (x UsbClass) Number() protoreflect.EnumNumber

func (UsbClass) String

func (x UsbClass) String() string

func (UsbClass) Type

type UsbDetach

type UsbDetach struct {
	Vid        uint32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid        uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	DevicePath string `protobuf:"bytes,3,opt,name=device_path,json=devicePath,proto3" json:"device_path,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbDetach) Descriptor deprecated

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

Deprecated: Use UsbDetach.ProtoReflect.Descriptor instead.

func (*UsbDetach) GetDevicePath

func (x *UsbDetach) GetDevicePath() string

func (*UsbDetach) GetPid

func (x *UsbDetach) GetPid() uint32

func (*UsbDetach) GetVid

func (x *UsbDetach) GetVid() uint32

func (*UsbDetach) ProtoMessage

func (*UsbDetach) ProtoMessage()

func (*UsbDetach) ProtoReflect

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

func (*UsbDetach) Reset

func (x *UsbDetach) Reset()

func (*UsbDetach) String

func (x *UsbDetach) String() string

type UsbDevice

type UsbDevice struct {
	Vid          uint32     `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid          uint32     `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	Product      string     `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"`
	Manufacturer string     `protobuf:"bytes,4,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	Serial       string     `protobuf:"bytes,5,opt,name=serial,proto3" json:"serial,omitempty"`
	Classes      []UsbClass `protobuf:"varint,6,rep,packed,name=classes,proto3,enum=graywolf.platform.UsbClass" json:"classes,omitempty"`
	DevicePath   string     `protobuf:"bytes,7,opt,name=device_path,json=devicePath,proto3" json:"device_path,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbDevice) Descriptor deprecated

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

Deprecated: Use UsbDevice.ProtoReflect.Descriptor instead.

func (*UsbDevice) GetClasses

func (x *UsbDevice) GetClasses() []UsbClass

func (*UsbDevice) GetDevicePath

func (x *UsbDevice) GetDevicePath() string

func (*UsbDevice) GetManufacturer

func (x *UsbDevice) GetManufacturer() string

func (*UsbDevice) GetPid

func (x *UsbDevice) GetPid() uint32

func (*UsbDevice) GetProduct

func (x *UsbDevice) GetProduct() string

func (*UsbDevice) GetSerial

func (x *UsbDevice) GetSerial() string

func (*UsbDevice) GetVid

func (x *UsbDevice) GetVid() uint32

func (*UsbDevice) ProtoMessage

func (*UsbDevice) ProtoMessage()

func (*UsbDevice) ProtoReflect

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

func (*UsbDevice) Reset

func (x *UsbDevice) Reset()

func (*UsbDevice) String

func (x *UsbDevice) String() string

type UsbDeviceListRequest

type UsbDeviceListRequest struct {
	ClassFilter UsbClass `` // UNKNOWN = no filter
	/* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UsbDeviceListRequest) Descriptor deprecated

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

Deprecated: Use UsbDeviceListRequest.ProtoReflect.Descriptor instead.

func (*UsbDeviceListRequest) GetClassFilter

func (x *UsbDeviceListRequest) GetClassFilter() UsbClass

func (*UsbDeviceListRequest) ProtoMessage

func (*UsbDeviceListRequest) ProtoMessage()

func (*UsbDeviceListRequest) ProtoReflect

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

func (*UsbDeviceListRequest) Reset

func (x *UsbDeviceListRequest) Reset()

func (*UsbDeviceListRequest) String

func (x *UsbDeviceListRequest) String() string

type UsbDeviceListResponse

type UsbDeviceListResponse struct {
	Devices []*UsbDevice `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbDeviceListResponse) Descriptor deprecated

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

Deprecated: Use UsbDeviceListResponse.ProtoReflect.Descriptor instead.

func (*UsbDeviceListResponse) GetDevices

func (x *UsbDeviceListResponse) GetDevices() []*UsbDevice

func (*UsbDeviceListResponse) ProtoMessage

func (*UsbDeviceListResponse) ProtoMessage()

func (*UsbDeviceListResponse) ProtoReflect

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

func (*UsbDeviceListResponse) Reset

func (x *UsbDeviceListResponse) Reset()

func (*UsbDeviceListResponse) String

func (x *UsbDeviceListResponse) String() string

type UsbSelectRequest

type UsbSelectRequest struct {
	Vid uint32 `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbSelectRequest) Descriptor deprecated

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

Deprecated: Use UsbSelectRequest.ProtoReflect.Descriptor instead.

func (*UsbSelectRequest) GetPid

func (x *UsbSelectRequest) GetPid() uint32

func (*UsbSelectRequest) GetVid

func (x *UsbSelectRequest) GetVid() uint32

func (*UsbSelectRequest) ProtoMessage

func (*UsbSelectRequest) ProtoMessage()

func (*UsbSelectRequest) ProtoReflect

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

func (*UsbSelectRequest) Reset

func (x *UsbSelectRequest) Reset()

func (*UsbSelectRequest) String

func (x *UsbSelectRequest) String() string

type UsbSelectResponse

type UsbSelectResponse struct {
	Granted      bool   `protobuf:"varint,1,opt,name=granted,proto3" json:"granted,omitempty"`
	HandleId     string `protobuf:"bytes,2,opt,name=handle_id,json=handleId,proto3" json:"handle_id,omitempty"` // opaque token used in subsequent PTT requests
	ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*UsbSelectResponse) Descriptor deprecated

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

Deprecated: Use UsbSelectResponse.ProtoReflect.Descriptor instead.

func (*UsbSelectResponse) GetErrorMessage

func (x *UsbSelectResponse) GetErrorMessage() string

func (*UsbSelectResponse) GetGranted

func (x *UsbSelectResponse) GetGranted() bool

func (*UsbSelectResponse) GetHandleId

func (x *UsbSelectResponse) GetHandleId() string

func (*UsbSelectResponse) ProtoMessage

func (*UsbSelectResponse) ProtoMessage()

func (*UsbSelectResponse) ProtoReflect

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

func (*UsbSelectResponse) Reset

func (x *UsbSelectResponse) Reset()

func (*UsbSelectResponse) String

func (x *UsbSelectResponse) String() string

Jump to

Keyboard shortcuts

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