platformproto

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 21, 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 (
	SerialKind_name = map[int32]string{
		0: "SERIAL_KIND_UNSPECIFIED",
		1: "SERIAL_KIND_BLUETOOTH",
	}
	SerialKind_value = map[string]int32{
		"SERIAL_KIND_UNSPECIFIED": 0,
		"SERIAL_KIND_BLUETOOTH":   1,
	}
)

Enum value maps for SerialKind.

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 BondedBtDevicesRequest added in v0.13.6

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

func (*BondedBtDevicesRequest) Descriptor deprecated added in v0.13.6

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

Deprecated: Use BondedBtDevicesRequest.ProtoReflect.Descriptor instead.

func (*BondedBtDevicesRequest) ProtoMessage added in v0.13.6

func (*BondedBtDevicesRequest) ProtoMessage()

func (*BondedBtDevicesRequest) ProtoReflect added in v0.13.6

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

func (*BondedBtDevicesRequest) Reset added in v0.13.6

func (x *BondedBtDevicesRequest) Reset()

func (*BondedBtDevicesRequest) String added in v0.13.6

func (x *BondedBtDevicesRequest) String() string

type BondedBtDevicesResponse added in v0.13.6

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

func (*BondedBtDevicesResponse) Descriptor deprecated added in v0.13.6

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

Deprecated: Use BondedBtDevicesResponse.ProtoReflect.Descriptor instead.

func (*BondedBtDevicesResponse) GetDevices added in v0.13.6

func (*BondedBtDevicesResponse) ProtoMessage added in v0.13.6

func (*BondedBtDevicesResponse) ProtoMessage()

func (*BondedBtDevicesResponse) ProtoReflect added in v0.13.6

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

func (*BondedBtDevicesResponse) Reset added in v0.13.6

func (x *BondedBtDevicesResponse) Reset()

func (*BondedBtDevicesResponse) String added in v0.13.6

func (x *BondedBtDevicesResponse) String() string

type BondedBtDevicesResponse_Device added in v0.13.6

type BondedBtDevicesResponse_Device struct {
	Mac  string `protobuf:"bytes,1,opt,name=mac,proto3" json:"mac,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*BondedBtDevicesResponse_Device) Descriptor deprecated added in v0.13.6

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

Deprecated: Use BondedBtDevicesResponse_Device.ProtoReflect.Descriptor instead.

func (*BondedBtDevicesResponse_Device) GetMac added in v0.13.6

func (*BondedBtDevicesResponse_Device) GetName added in v0.13.6

func (*BondedBtDevicesResponse_Device) ProtoMessage added in v0.13.6

func (*BondedBtDevicesResponse_Device) ProtoMessage()

func (*BondedBtDevicesResponse_Device) ProtoReflect added in v0.13.6

func (*BondedBtDevicesResponse_Device) Reset added in v0.13.6

func (x *BondedBtDevicesResponse_Device) Reset()

func (*BondedBtDevicesResponse_Device) String added in v0.13.6

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 GnssStatusUpdate added in v0.13.6

type GnssStatusUpdate struct {
	SatsInView uint32     `protobuf:"varint,1,opt,name=sats_in_view,json=satsInView,proto3" json:"sats_in_view,omitempty"`
	SatsUsed   uint32     `protobuf:"varint,2,opt,name=sats_used,json=satsUsed,proto3" json:"sats_used,omitempty"`
	Sats       []*SatInfo `protobuf:"bytes,3,rep,name=sats,proto3" json:"sats,omitempty"`
	// contains filtered or unexported fields
}

func (*GnssStatusUpdate) Descriptor deprecated added in v0.13.6

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

Deprecated: Use GnssStatusUpdate.ProtoReflect.Descriptor instead.

func (*GnssStatusUpdate) GetSats added in v0.13.6

func (x *GnssStatusUpdate) GetSats() []*SatInfo

func (*GnssStatusUpdate) GetSatsInView added in v0.13.6

func (x *GnssStatusUpdate) GetSatsInView() uint32

func (*GnssStatusUpdate) GetSatsUsed added in v0.13.6

func (x *GnssStatusUpdate) GetSatsUsed() uint32

func (*GnssStatusUpdate) ProtoMessage added in v0.13.6

func (*GnssStatusUpdate) ProtoMessage()

func (*GnssStatusUpdate) ProtoReflect added in v0.13.6

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

func (*GnssStatusUpdate) Reset added in v0.13.6

func (x *GnssStatusUpdate) Reset()

func (*GnssStatusUpdate) String added in v0.13.6

func (x *GnssStatusUpdate) String() string

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"`
	// Horizontal accuracy radius in meters (Android Location.getAccuracy()).
	// 0 means "unknown / not provided" — desktop NMEA path leaves this 0.
	// (JSON consumers reading /api/gps/state must treat 0 as "unset", not
	// "perfect"; Android Location.accuracy never returns 0 in practice.)
	// Old clients ignore the field; old servers send 0. Schema version stays 1.
	AccuracyM float64 `protobuf:"fixed64,10,opt,name=accuracy_m,json=accuracyM,proto3" json:"accuracy_m,omitempty"`
	// Presence bits. Android Location exposes hasAltitude()/hasSpeed()/
	// hasBearing(); without these companion bools, the receiver cannot
	// distinguish a legitimate zero (stationary station, due-north course,
	// sea-level altitude) from "field absent". Default false on old senders.
	HasAlt    bool `protobuf:"varint,11,opt,name=has_alt,json=hasAlt,proto3" json:"has_alt,omitempty"`
	HasSpeed  bool `protobuf:"varint,12,opt,name=has_speed,json=hasSpeed,proto3" json:"has_speed,omitempty"`
	HasCourse bool `protobuf:"varint,13,opt,name=has_course,json=hasCourse,proto3" json:"has_course,omitempty"`
	// contains filtered or unexported fields
}

func (*GpsFix) Descriptor deprecated

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

Deprecated: Use GpsFix.ProtoReflect.Descriptor instead.

func (*GpsFix) GetAccuracyM added in v0.13.6

func (x *GpsFix) GetAccuracyM() float64

func (*GpsFix) GetAltM

func (x *GpsFix) GetAltM() float64

func (*GpsFix) GetCourseDeg

func (x *GpsFix) GetCourseDeg() float64

func (*GpsFix) GetHasAlt added in v0.13.6

func (x *GpsFix) GetHasAlt() bool

func (*GpsFix) GetHasCourse added in v0.13.6

func (x *GpsFix) GetHasCourse() bool

func (*GpsFix) GetHasSpeed added in v0.13.6

func (x *GpsFix) GetHasSpeed() bool

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
	//	*PlatformMessage_GnssStatus
	//	*PlatformMessage_SerialOpen
	//	*PlatformMessage_SerialOpenAck
	//	*PlatformMessage_SerialData
	//	*PlatformMessage_SerialClose
	//	*PlatformMessage_SerialError
	//	*PlatformMessage_BondedBtDevicesRequest
	//	*PlatformMessage_BondedBtDevicesResponse
	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) GetBondedBtDevicesRequest added in v0.13.6

func (x *PlatformMessage) GetBondedBtDevicesRequest() *BondedBtDevicesRequest

func (*PlatformMessage) GetBondedBtDevicesResponse added in v0.13.6

func (x *PlatformMessage) GetBondedBtDevicesResponse() *BondedBtDevicesResponse

func (*PlatformMessage) GetError

func (x *PlatformMessage) GetError() *Error

func (*PlatformMessage) GetGnssStatus added in v0.13.6

func (x *PlatformMessage) GetGnssStatus() *GnssStatusUpdate

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) GetSerialClose added in v0.13.6

func (x *PlatformMessage) GetSerialClose() *SerialClose

func (*PlatformMessage) GetSerialData added in v0.13.6

func (x *PlatformMessage) GetSerialData() *SerialData

func (*PlatformMessage) GetSerialError added in v0.13.6

func (x *PlatformMessage) GetSerialError() *SerialError

func (*PlatformMessage) GetSerialOpen added in v0.13.6

func (x *PlatformMessage) GetSerialOpen() *SerialOpen

func (*PlatformMessage) GetSerialOpenAck added in v0.13.6

func (x *PlatformMessage) GetSerialOpenAck() *SerialOpenAck

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_BondedBtDevicesRequest added in v0.13.6

type PlatformMessage_BondedBtDevicesRequest struct {
	BondedBtDevicesRequest *BondedBtDevicesRequest `protobuf:"bytes,23,opt,name=bonded_bt_devices_request,json=bondedBtDevicesRequest,proto3,oneof"`
}

type PlatformMessage_BondedBtDevicesResponse added in v0.13.6

type PlatformMessage_BondedBtDevicesResponse struct {
	BondedBtDevicesResponse *BondedBtDevicesResponse `protobuf:"bytes,24,opt,name=bonded_bt_devices_response,json=bondedBtDevicesResponse,proto3,oneof"`
}

type PlatformMessage_Error

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

type PlatformMessage_GnssStatus added in v0.13.6

type PlatformMessage_GnssStatus struct {
	GnssStatus *GnssStatusUpdate `protobuf:"bytes,17,opt,name=gnss_status,json=gnssStatus,proto3,oneof"` // server → client; pushed alongside GpsFix
}

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_SerialClose added in v0.13.6

type PlatformMessage_SerialClose struct {
	SerialClose *SerialClose `protobuf:"bytes,21,opt,name=serial_close,json=serialClose,proto3,oneof"`
}

type PlatformMessage_SerialData added in v0.13.6

type PlatformMessage_SerialData struct {
	SerialData *SerialData `protobuf:"bytes,20,opt,name=serial_data,json=serialData,proto3,oneof"`
}

type PlatformMessage_SerialError added in v0.13.6

type PlatformMessage_SerialError struct {
	SerialError *SerialError `protobuf:"bytes,22,opt,name=serial_error,json=serialError,proto3,oneof"`
}

type PlatformMessage_SerialOpen added in v0.13.6

type PlatformMessage_SerialOpen struct {
	SerialOpen *SerialOpen `protobuf:"bytes,18,opt,name=serial_open,json=serialOpen,proto3,oneof"`
}

type PlatformMessage_SerialOpenAck added in v0.13.6

type PlatformMessage_SerialOpenAck struct {
	SerialOpenAck *SerialOpenAck `protobuf:"bytes,19,opt,name=serial_open_ack,json=serialOpenAck,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 SatInfo added in v0.13.6

type SatInfo struct {
	Svid          uint32  `protobuf:"varint,1,opt,name=svid,proto3" json:"svid,omitempty"`                       // satellite vehicle id
	Constellation string  `protobuf:"bytes,2,opt,name=constellation,proto3" json:"constellation,omitempty"`      // "GPS" / "GLONASS" / "BEIDOU" / "GALILEO" / "QZSS" / "SBAS"
	Cn0Dbhz       float64 `protobuf:"fixed64,3,opt,name=cn0_dbhz,json=cn0Dbhz,proto3" json:"cn0_dbhz,omitempty"` // signal strength
	UsedInFix     bool    `protobuf:"varint,4,opt,name=used_in_fix,json=usedInFix,proto3" json:"used_in_fix,omitempty"`
	ElevationDeg  float64 `protobuf:"fixed64,5,opt,name=elevation_deg,json=elevationDeg,proto3" json:"elevation_deg,omitempty"`
	AzimuthDeg    float64 `protobuf:"fixed64,6,opt,name=azimuth_deg,json=azimuthDeg,proto3" json:"azimuth_deg,omitempty"`
	// contains filtered or unexported fields
}

func (*SatInfo) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SatInfo.ProtoReflect.Descriptor instead.

func (*SatInfo) GetAzimuthDeg added in v0.13.6

func (x *SatInfo) GetAzimuthDeg() float64

func (*SatInfo) GetCn0Dbhz added in v0.13.6

func (x *SatInfo) GetCn0Dbhz() float64

func (*SatInfo) GetConstellation added in v0.13.6

func (x *SatInfo) GetConstellation() string

func (*SatInfo) GetElevationDeg added in v0.13.6

func (x *SatInfo) GetElevationDeg() float64

func (*SatInfo) GetSvid added in v0.13.6

func (x *SatInfo) GetSvid() uint32

func (*SatInfo) GetUsedInFix added in v0.13.6

func (x *SatInfo) GetUsedInFix() bool

func (*SatInfo) ProtoMessage added in v0.13.6

func (*SatInfo) ProtoMessage()

func (*SatInfo) ProtoReflect added in v0.13.6

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

func (*SatInfo) Reset added in v0.13.6

func (x *SatInfo) Reset()

func (*SatInfo) String added in v0.13.6

func (x *SatInfo) String() string

type SerialClose added in v0.13.6

type SerialClose struct {
	Handle uint32 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialClose) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SerialClose.ProtoReflect.Descriptor instead.

func (*SerialClose) GetHandle added in v0.13.6

func (x *SerialClose) GetHandle() uint32

func (*SerialClose) GetReason added in v0.13.6

func (x *SerialClose) GetReason() string

func (*SerialClose) ProtoMessage added in v0.13.6

func (*SerialClose) ProtoMessage()

func (*SerialClose) ProtoReflect added in v0.13.6

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

func (*SerialClose) Reset added in v0.13.6

func (x *SerialClose) Reset()

func (*SerialClose) String added in v0.13.6

func (x *SerialClose) String() string

type SerialData added in v0.13.6

type SerialData struct {
	Handle uint32 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Data   []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialData) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SerialData.ProtoReflect.Descriptor instead.

func (*SerialData) GetData added in v0.13.6

func (x *SerialData) GetData() []byte

func (*SerialData) GetHandle added in v0.13.6

func (x *SerialData) GetHandle() uint32

func (*SerialData) ProtoMessage added in v0.13.6

func (*SerialData) ProtoMessage()

func (*SerialData) ProtoReflect added in v0.13.6

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

func (*SerialData) Reset added in v0.13.6

func (x *SerialData) Reset()

func (*SerialData) String added in v0.13.6

func (x *SerialData) String() string

type SerialError added in v0.13.6

type SerialError struct {
	Handle uint32 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Code   string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // bond_lost | permission_denied | rfcomm_closed | io_error | not_bonded
	Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialError) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SerialError.ProtoReflect.Descriptor instead.

func (*SerialError) GetCode added in v0.13.6

func (x *SerialError) GetCode() string

func (*SerialError) GetDetail added in v0.13.6

func (x *SerialError) GetDetail() string

func (*SerialError) GetHandle added in v0.13.6

func (x *SerialError) GetHandle() uint32

func (*SerialError) ProtoMessage added in v0.13.6

func (*SerialError) ProtoMessage()

func (*SerialError) ProtoReflect added in v0.13.6

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

func (*SerialError) Reset added in v0.13.6

func (x *SerialError) Reset()

func (*SerialError) String added in v0.13.6

func (x *SerialError) String() string

type SerialKind added in v0.13.6

type SerialKind int32

SerialKind classifies a transport-agnostic byte stream the platform service is asked to open. Open-ended so a future USB-serial KISS path can reuse the same SerialOpen/Data/Close family.

const (
	SerialKind_SERIAL_KIND_UNSPECIFIED SerialKind = 0
	SerialKind_SERIAL_KIND_BLUETOOTH   SerialKind = 1 // SERIAL_KIND_USB reserved for future use.
)

func (SerialKind) Descriptor added in v0.13.6

func (SerialKind) Descriptor() protoreflect.EnumDescriptor

func (SerialKind) Enum added in v0.13.6

func (x SerialKind) Enum() *SerialKind

func (SerialKind) EnumDescriptor deprecated added in v0.13.6

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

Deprecated: Use SerialKind.Descriptor instead.

func (SerialKind) Number added in v0.13.6

func (x SerialKind) Number() protoreflect.EnumNumber

func (SerialKind) String added in v0.13.6

func (x SerialKind) String() string

func (SerialKind) Type added in v0.13.6

type SerialOpen added in v0.13.6

type SerialOpen struct {
	Handle  uint32     `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Kind    SerialKind `protobuf:"varint,2,opt,name=kind,proto3,enum=graywolf.platform.SerialKind" json:"kind,omitempty"`
	Address string     `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // bluetooth: MAC ("AA:BB:CC:DD:EE:FF")
	// contains filtered or unexported fields
}

func (*SerialOpen) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SerialOpen.ProtoReflect.Descriptor instead.

func (*SerialOpen) GetAddress added in v0.13.6

func (x *SerialOpen) GetAddress() string

func (*SerialOpen) GetHandle added in v0.13.6

func (x *SerialOpen) GetHandle() uint32

func (*SerialOpen) GetKind added in v0.13.6

func (x *SerialOpen) GetKind() SerialKind

func (*SerialOpen) ProtoMessage added in v0.13.6

func (*SerialOpen) ProtoMessage()

func (*SerialOpen) ProtoReflect added in v0.13.6

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

func (*SerialOpen) Reset added in v0.13.6

func (x *SerialOpen) Reset()

func (*SerialOpen) String added in v0.13.6

func (x *SerialOpen) String() string

type SerialOpenAck added in v0.13.6

type SerialOpenAck struct {
	Handle uint32 `protobuf:"varint,1,opt,name=handle,proto3" json:"handle,omitempty"`
	Ok     bool   `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	Error  string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*SerialOpenAck) Descriptor deprecated added in v0.13.6

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

Deprecated: Use SerialOpenAck.ProtoReflect.Descriptor instead.

func (*SerialOpenAck) GetError added in v0.13.6

func (x *SerialOpenAck) GetError() string

func (*SerialOpenAck) GetHandle added in v0.13.6

func (x *SerialOpenAck) GetHandle() uint32

func (*SerialOpenAck) GetOk added in v0.13.6

func (x *SerialOpenAck) GetOk() bool

func (*SerialOpenAck) ProtoMessage added in v0.13.6

func (*SerialOpenAck) ProtoMessage()

func (*SerialOpenAck) ProtoReflect added in v0.13.6

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

func (*SerialOpenAck) Reset added in v0.13.6

func (x *SerialOpenAck) Reset()

func (*SerialOpenAck) String added in v0.13.6

func (x *SerialOpenAck) 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