Firmware buffers 200-byte chunks into 4 KiB blocks for esp_ota_write; goTool uploads with per-block ACK flow control and larger UART buffers to avoid stalls. Co-authored-by: Cursor <cursoragent@cursor.com>
1399 lines
41 KiB
Go
1399 lines
41 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: uart_messages.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type MessageType int32
|
|
|
|
const (
|
|
MessageType_UNKNOWN MessageType = 0
|
|
MessageType_ACK MessageType = 1
|
|
MessageType_ECHO MessageType = 2
|
|
MessageType_VERSION MessageType = 3
|
|
MessageType_CLIENT_INFO MessageType = 4
|
|
MessageType_CLIENT_INPUT MessageType = 5
|
|
MessageType_ACCEL_DEADZONE MessageType = 6
|
|
MessageType_ESPNOW_UNICAST_TEST MessageType = 7
|
|
MessageType_OTA_START MessageType = 16
|
|
MessageType_OTA_PAYLOAD MessageType = 17
|
|
MessageType_OTA_END MessageType = 18
|
|
MessageType_OTA_STATUS MessageType = 19
|
|
MessageType_OTA_START_ESPNOW MessageType = 20
|
|
)
|
|
|
|
// Enum value maps for MessageType.
|
|
var (
|
|
MessageType_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "ACK",
|
|
2: "ECHO",
|
|
3: "VERSION",
|
|
4: "CLIENT_INFO",
|
|
5: "CLIENT_INPUT",
|
|
6: "ACCEL_DEADZONE",
|
|
7: "ESPNOW_UNICAST_TEST",
|
|
16: "OTA_START",
|
|
17: "OTA_PAYLOAD",
|
|
18: "OTA_END",
|
|
19: "OTA_STATUS",
|
|
20: "OTA_START_ESPNOW",
|
|
}
|
|
MessageType_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"ACK": 1,
|
|
"ECHO": 2,
|
|
"VERSION": 3,
|
|
"CLIENT_INFO": 4,
|
|
"CLIENT_INPUT": 5,
|
|
"ACCEL_DEADZONE": 6,
|
|
"ESPNOW_UNICAST_TEST": 7,
|
|
"OTA_START": 16,
|
|
"OTA_PAYLOAD": 17,
|
|
"OTA_END": 18,
|
|
"OTA_STATUS": 19,
|
|
"OTA_START_ESPNOW": 20,
|
|
}
|
|
)
|
|
|
|
func (x MessageType) Enum() *MessageType {
|
|
p := new(MessageType)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x MessageType) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (MessageType) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_uart_messages_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (MessageType) Type() protoreflect.EnumType {
|
|
return &file_uart_messages_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x MessageType) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use MessageType.Descriptor instead.
|
|
func (MessageType) EnumDescriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type UartMessage struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=alox.MessageType" json:"type,omitempty"`
|
|
// Types that are valid to be assigned to Payload:
|
|
//
|
|
// *UartMessage_AckPayload
|
|
// *UartMessage_EchoPayload
|
|
// *UartMessage_VersionResponse
|
|
// *UartMessage_ClientInfoResponse
|
|
// *UartMessage_ClientInputResponse
|
|
// *UartMessage_OtaStart
|
|
// *UartMessage_OtaPayload
|
|
// *UartMessage_OtaEnd
|
|
// *UartMessage_OtaStatus
|
|
// *UartMessage_AccelDeadzoneRequest
|
|
// *UartMessage_AccelDeadzoneResponse
|
|
// *UartMessage_EspnowUnicastTestRequest
|
|
// *UartMessage_EspnowUnicastTestResponse
|
|
Payload isUartMessage_Payload `protobuf_oneof:"payload"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UartMessage) Reset() {
|
|
*x = UartMessage{}
|
|
mi := &file_uart_messages_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UartMessage) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UartMessage) ProtoMessage() {}
|
|
|
|
func (x *UartMessage) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UartMessage.ProtoReflect.Descriptor instead.
|
|
func (*UartMessage) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UartMessage) GetType() MessageType {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return MessageType_UNKNOWN
|
|
}
|
|
|
|
func (x *UartMessage) GetPayload() isUartMessage_Payload {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetAckPayload() *Ack {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_AckPayload); ok {
|
|
return x.AckPayload
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetEchoPayload() *EchoPayload {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_EchoPayload); ok {
|
|
return x.EchoPayload
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetVersionResponse() *VersionResponse {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_VersionResponse); ok {
|
|
return x.VersionResponse
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetClientInfoResponse() *ClientInfoResponse {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_ClientInfoResponse); ok {
|
|
return x.ClientInfoResponse
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetClientInputResponse() *ClientInputResponse {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_ClientInputResponse); ok {
|
|
return x.ClientInputResponse
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetOtaStart() *OtaStartPayload {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_OtaStart); ok {
|
|
return x.OtaStart
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetOtaPayload() *OtaPayload {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_OtaPayload); ok {
|
|
return x.OtaPayload
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetOtaEnd() *OtaEndPayload {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_OtaEnd); ok {
|
|
return x.OtaEnd
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetOtaStatus() *OtaStatusPayload {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_OtaStatus); ok {
|
|
return x.OtaStatus
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetAccelDeadzoneRequest() *AccelDeadzoneRequest {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_AccelDeadzoneRequest); ok {
|
|
return x.AccelDeadzoneRequest
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetAccelDeadzoneResponse() *AccelDeadzoneResponse {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_AccelDeadzoneResponse); ok {
|
|
return x.AccelDeadzoneResponse
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetEspnowUnicastTestRequest() *EspNowUnicastTestRequest {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_EspnowUnicastTestRequest); ok {
|
|
return x.EspnowUnicastTestRequest
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UartMessage) GetEspnowUnicastTestResponse() *EspNowUnicastTestResponse {
|
|
if x != nil {
|
|
if x, ok := x.Payload.(*UartMessage_EspnowUnicastTestResponse); ok {
|
|
return x.EspnowUnicastTestResponse
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isUartMessage_Payload interface {
|
|
isUartMessage_Payload()
|
|
}
|
|
|
|
type UartMessage_AckPayload struct {
|
|
AckPayload *Ack `protobuf:"bytes,2,opt,name=ack_payload,json=ackPayload,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_EchoPayload struct {
|
|
EchoPayload *EchoPayload `protobuf:"bytes,3,opt,name=echo_payload,json=echoPayload,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_VersionResponse struct {
|
|
VersionResponse *VersionResponse `protobuf:"bytes,4,opt,name=version_response,json=versionResponse,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_ClientInfoResponse struct {
|
|
ClientInfoResponse *ClientInfoResponse `protobuf:"bytes,5,opt,name=client_info_response,json=clientInfoResponse,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_ClientInputResponse struct {
|
|
ClientInputResponse *ClientInputResponse `protobuf:"bytes,6,opt,name=client_input_response,json=clientInputResponse,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_OtaStart struct {
|
|
OtaStart *OtaStartPayload `protobuf:"bytes,7,opt,name=ota_start,json=otaStart,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_OtaPayload struct {
|
|
OtaPayload *OtaPayload `protobuf:"bytes,8,opt,name=ota_payload,json=otaPayload,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_OtaEnd struct {
|
|
OtaEnd *OtaEndPayload `protobuf:"bytes,9,opt,name=ota_end,json=otaEnd,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_OtaStatus struct {
|
|
OtaStatus *OtaStatusPayload `protobuf:"bytes,10,opt,name=ota_status,json=otaStatus,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_AccelDeadzoneRequest struct {
|
|
AccelDeadzoneRequest *AccelDeadzoneRequest `protobuf:"bytes,11,opt,name=accel_deadzone_request,json=accelDeadzoneRequest,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_AccelDeadzoneResponse struct {
|
|
AccelDeadzoneResponse *AccelDeadzoneResponse `protobuf:"bytes,12,opt,name=accel_deadzone_response,json=accelDeadzoneResponse,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_EspnowUnicastTestRequest struct {
|
|
EspnowUnicastTestRequest *EspNowUnicastTestRequest `protobuf:"bytes,13,opt,name=espnow_unicast_test_request,json=espnowUnicastTestRequest,proto3,oneof"`
|
|
}
|
|
|
|
type UartMessage_EspnowUnicastTestResponse struct {
|
|
EspnowUnicastTestResponse *EspNowUnicastTestResponse `protobuf:"bytes,14,opt,name=espnow_unicast_test_response,json=espnowUnicastTestResponse,proto3,oneof"`
|
|
}
|
|
|
|
func (*UartMessage_AckPayload) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_EchoPayload) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_VersionResponse) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_ClientInfoResponse) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_ClientInputResponse) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_OtaStart) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_OtaPayload) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_OtaEnd) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_OtaStatus) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_AccelDeadzoneRequest) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_AccelDeadzoneResponse) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_EspnowUnicastTestRequest) isUartMessage_Payload() {}
|
|
|
|
func (*UartMessage_EspnowUnicastTestResponse) isUartMessage_Payload() {}
|
|
|
|
type Ack struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Ack) Reset() {
|
|
*x = Ack{}
|
|
mi := &file_uart_messages_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Ack) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Ack) ProtoMessage() {}
|
|
|
|
func (x *Ack) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Ack.ProtoReflect.Descriptor instead.
|
|
func (*Ack) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type EchoPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EchoPayload) Reset() {
|
|
*x = EchoPayload{}
|
|
mi := &file_uart_messages_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EchoPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EchoPayload) ProtoMessage() {}
|
|
|
|
func (x *EchoPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EchoPayload.ProtoReflect.Descriptor instead.
|
|
func (*EchoPayload) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *EchoPayload) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VersionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
GitHash string `protobuf:"bytes,2,opt,name=git_hash,json=gitHash,proto3" json:"git_hash,omitempty"`
|
|
// * Active OTA app partition label, e.g. "ota_0" or "ota_1".
|
|
RunningPartition string `protobuf:"bytes,3,opt,name=running_partition,json=runningPartition,proto3" json:"running_partition,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VersionResponse) Reset() {
|
|
*x = VersionResponse{}
|
|
mi := &file_uart_messages_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VersionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VersionResponse) ProtoMessage() {}
|
|
|
|
func (x *VersionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
|
|
func (*VersionResponse) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *VersionResponse) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VersionResponse) GetGitHash() string {
|
|
if x != nil {
|
|
return x.GitHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VersionResponse) GetRunningPartition() string {
|
|
if x != nil {
|
|
return x.RunningPartition
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ClientInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Available bool `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"`
|
|
Used bool `protobuf:"varint,3,opt,name=used,proto3" json:"used,omitempty"`
|
|
Mac []byte `protobuf:"bytes,4,opt,name=mac,proto3" json:"mac,omitempty"`
|
|
LastPing uint32 `protobuf:"varint,5,opt,name=last_ping,json=lastPing,proto3" json:"last_ping,omitempty"`
|
|
LastSuccessPing uint32 `protobuf:"varint,6,opt,name=last_success_ping,json=lastSuccessPing,proto3" json:"last_success_ping,omitempty"`
|
|
Version uint32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClientInfo) Reset() {
|
|
*x = ClientInfo{}
|
|
mi := &file_uart_messages_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClientInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClientInfo) ProtoMessage() {}
|
|
|
|
func (x *ClientInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.
|
|
func (*ClientInfo) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ClientInfo) GetId() uint32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInfo) GetAvailable() bool {
|
|
if x != nil {
|
|
return x.Available
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ClientInfo) GetUsed() bool {
|
|
if x != nil {
|
|
return x.Used
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ClientInfo) GetMac() []byte {
|
|
if x != nil {
|
|
return x.Mac
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ClientInfo) GetLastPing() uint32 {
|
|
if x != nil {
|
|
return x.LastPing
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInfo) GetLastSuccessPing() uint32 {
|
|
if x != nil {
|
|
return x.LastSuccessPing
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInfo) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ClientInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Clients []*ClientInfo `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClientInfoResponse) Reset() {
|
|
*x = ClientInfoResponse{}
|
|
mi := &file_uart_messages_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClientInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClientInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *ClientInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClientInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClientInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ClientInfoResponse) GetClients() []*ClientInfo {
|
|
if x != nil {
|
|
return x.Clients
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ClientInput struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
LageX float32 `protobuf:"fixed32,2,opt,name=lage_x,json=lageX,proto3" json:"lage_x,omitempty"`
|
|
LageY float32 `protobuf:"fixed32,3,opt,name=lage_y,json=lageY,proto3" json:"lage_y,omitempty"`
|
|
Bitmask uint32 `protobuf:"varint,4,opt,name=bitmask,proto3" json:"bitmask,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClientInput) Reset() {
|
|
*x = ClientInput{}
|
|
mi := &file_uart_messages_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClientInput) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClientInput) ProtoMessage() {}
|
|
|
|
func (x *ClientInput) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClientInput.ProtoReflect.Descriptor instead.
|
|
func (*ClientInput) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ClientInput) GetId() uint32 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInput) GetLageX() float32 {
|
|
if x != nil {
|
|
return x.LageX
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInput) GetLageY() float32 {
|
|
if x != nil {
|
|
return x.LageY
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ClientInput) GetBitmask() uint32 {
|
|
if x != nil {
|
|
return x.Bitmask
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ClientInputResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Clients []*ClientInput `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClientInputResponse) Reset() {
|
|
*x = ClientInputResponse{}
|
|
mi := &file_uart_messages_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClientInputResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClientInputResponse) ProtoMessage() {}
|
|
|
|
func (x *ClientInputResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClientInputResponse.ProtoReflect.Descriptor instead.
|
|
func (*ClientInputResponse) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ClientInputResponse) GetClients() []*ClientInput {
|
|
if x != nil {
|
|
return x.Clients
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// write=false: read deadzone; write=true: apply deadzone (LSB per axis, raw accel units).
|
|
// client_id 0 = local BMA456 on this node; >0 = slave id on master; ignored on slave.
|
|
// all_clients = true (master only): push deadzone to every registered slave via ESP-NOW.
|
|
type AccelDeadzoneRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Write bool `protobuf:"varint,1,opt,name=write,proto3" json:"write,omitempty"`
|
|
Deadzone uint32 `protobuf:"varint,2,opt,name=deadzone,proto3" json:"deadzone,omitempty"`
|
|
ClientId uint32 `protobuf:"varint,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
AllClients bool `protobuf:"varint,4,opt,name=all_clients,json=allClients,proto3" json:"all_clients,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) Reset() {
|
|
*x = AccelDeadzoneRequest{}
|
|
mi := &file_uart_messages_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccelDeadzoneRequest) ProtoMessage() {}
|
|
|
|
func (x *AccelDeadzoneRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AccelDeadzoneRequest.ProtoReflect.Descriptor instead.
|
|
func (*AccelDeadzoneRequest) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) GetWrite() bool {
|
|
if x != nil {
|
|
return x.Write
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) GetDeadzone() uint32 {
|
|
if x != nil {
|
|
return x.Deadzone
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) GetClientId() uint32 {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccelDeadzoneRequest) GetAllClients() bool {
|
|
if x != nil {
|
|
return x.AllClients
|
|
}
|
|
return false
|
|
}
|
|
|
|
type AccelDeadzoneResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Deadzone uint32 `protobuf:"varint,1,opt,name=deadzone,proto3" json:"deadzone,omitempty"`
|
|
ClientId uint32 `protobuf:"varint,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
|
|
SlavesUpdated uint32 `protobuf:"varint,4,opt,name=slaves_updated,json=slavesUpdated,proto3" json:"slaves_updated,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) Reset() {
|
|
*x = AccelDeadzoneResponse{}
|
|
mi := &file_uart_messages_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AccelDeadzoneResponse) ProtoMessage() {}
|
|
|
|
func (x *AccelDeadzoneResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AccelDeadzoneResponse.ProtoReflect.Descriptor instead.
|
|
func (*AccelDeadzoneResponse) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) GetDeadzone() uint32 {
|
|
if x != nil {
|
|
return x.Deadzone
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) GetClientId() uint32 {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AccelDeadzoneResponse) GetSlavesUpdated() uint32 {
|
|
if x != nil {
|
|
return x.SlavesUpdated
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EspNowUnicastTestRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId uint32 `protobuf:"varint,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
Seq uint32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EspNowUnicastTestRequest) Reset() {
|
|
*x = EspNowUnicastTestRequest{}
|
|
mi := &file_uart_messages_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EspNowUnicastTestRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EspNowUnicastTestRequest) ProtoMessage() {}
|
|
|
|
func (x *EspNowUnicastTestRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EspNowUnicastTestRequest.ProtoReflect.Descriptor instead.
|
|
func (*EspNowUnicastTestRequest) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *EspNowUnicastTestRequest) GetClientId() uint32 {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EspNowUnicastTestRequest) GetSeq() uint32 {
|
|
if x != nil {
|
|
return x.Seq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EspNowUnicastTestResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
Seq uint32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EspNowUnicastTestResponse) Reset() {
|
|
*x = EspNowUnicastTestResponse{}
|
|
mi := &file_uart_messages_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EspNowUnicastTestResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EspNowUnicastTestResponse) ProtoMessage() {}
|
|
|
|
func (x *EspNowUnicastTestResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EspNowUnicastTestResponse.ProtoReflect.Descriptor instead.
|
|
func (*EspNowUnicastTestResponse) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *EspNowUnicastTestResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *EspNowUnicastTestResponse) GetSeq() uint32 {
|
|
if x != nil {
|
|
return x.Seq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Host → device: begin UART OTA (erase inactive OTA slot; device replies OTA_STATUS).
|
|
type OtaStartPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotalSize uint32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OtaStartPayload) Reset() {
|
|
*x = OtaStartPayload{}
|
|
mi := &file_uart_messages_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OtaStartPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OtaStartPayload) ProtoMessage() {}
|
|
|
|
func (x *OtaStartPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OtaStartPayload.ProtoReflect.Descriptor instead.
|
|
func (*OtaStartPayload) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *OtaStartPayload) GetTotalSize() uint32 {
|
|
if x != nil {
|
|
return x.TotalSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Host → device: firmware chunk (up to 200 bytes); device buffers 4 KiB before flash write.
|
|
type OtaPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OtaPayload) Reset() {
|
|
*x = OtaPayload{}
|
|
mi := &file_uart_messages_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OtaPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OtaPayload) ProtoMessage() {}
|
|
|
|
func (x *OtaPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OtaPayload.ProtoReflect.Descriptor instead.
|
|
func (*OtaPayload) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *OtaPayload) GetSeq() uint32 {
|
|
if x != nil {
|
|
return x.Seq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OtaPayload) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Host → device: no more payload; device flushes buffer and finalizes OTA.
|
|
type OtaEndPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OtaEndPayload) Reset() {
|
|
*x = OtaEndPayload{}
|
|
mi := &file_uart_messages_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OtaEndPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OtaEndPayload) ProtoMessage() {}
|
|
|
|
func (x *OtaEndPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OtaEndPayload.ProtoReflect.Descriptor instead.
|
|
func (*OtaEndPayload) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
// Device → host status (also used as ACK after each 4 KiB written).
|
|
// status: 1=preparing, 2=ready, 3=block_ack, 4=success, 5=failed
|
|
type OtaStatusPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
BytesWritten uint32 `protobuf:"varint,2,opt,name=bytes_written,json=bytesWritten,proto3" json:"bytes_written,omitempty"`
|
|
TargetSlot uint32 `protobuf:"varint,3,opt,name=target_slot,json=targetSlot,proto3" json:"target_slot,omitempty"`
|
|
Error uint32 `protobuf:"varint,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OtaStatusPayload) Reset() {
|
|
*x = OtaStatusPayload{}
|
|
mi := &file_uart_messages_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OtaStatusPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OtaStatusPayload) ProtoMessage() {}
|
|
|
|
func (x *OtaStatusPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_uart_messages_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OtaStatusPayload.ProtoReflect.Descriptor instead.
|
|
func (*OtaStatusPayload) Descriptor() ([]byte, []int) {
|
|
return file_uart_messages_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *OtaStatusPayload) GetStatus() uint32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OtaStatusPayload) GetBytesWritten() uint32 {
|
|
if x != nil {
|
|
return x.BytesWritten
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OtaStatusPayload) GetTargetSlot() uint32 {
|
|
if x != nil {
|
|
return x.TargetSlot
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OtaStatusPayload) GetError() uint32 {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_uart_messages_proto protoreflect.FileDescriptor
|
|
|
|
const file_uart_messages_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13uart_messages.proto\x12\x04alox\"\xcc\a\n" +
|
|
"\vUartMessage\x12%\n" +
|
|
"\x04type\x18\x01 \x01(\x0e2\x11.alox.MessageTypeR\x04type\x12,\n" +
|
|
"\vack_payload\x18\x02 \x01(\v2\t.alox.AckH\x00R\n" +
|
|
"ackPayload\x126\n" +
|
|
"\fecho_payload\x18\x03 \x01(\v2\x11.alox.EchoPayloadH\x00R\vechoPayload\x12B\n" +
|
|
"\x10version_response\x18\x04 \x01(\v2\x15.alox.VersionResponseH\x00R\x0fversionResponse\x12L\n" +
|
|
"\x14client_info_response\x18\x05 \x01(\v2\x18.alox.ClientInfoResponseH\x00R\x12clientInfoResponse\x12O\n" +
|
|
"\x15client_input_response\x18\x06 \x01(\v2\x19.alox.ClientInputResponseH\x00R\x13clientInputResponse\x124\n" +
|
|
"\tota_start\x18\a \x01(\v2\x15.alox.OtaStartPayloadH\x00R\botaStart\x123\n" +
|
|
"\vota_payload\x18\b \x01(\v2\x10.alox.OtaPayloadH\x00R\n" +
|
|
"otaPayload\x12.\n" +
|
|
"\aota_end\x18\t \x01(\v2\x13.alox.OtaEndPayloadH\x00R\x06otaEnd\x127\n" +
|
|
"\n" +
|
|
"ota_status\x18\n" +
|
|
" \x01(\v2\x16.alox.OtaStatusPayloadH\x00R\totaStatus\x12R\n" +
|
|
"\x16accel_deadzone_request\x18\v \x01(\v2\x1a.alox.AccelDeadzoneRequestH\x00R\x14accelDeadzoneRequest\x12U\n" +
|
|
"\x17accel_deadzone_response\x18\f \x01(\v2\x1b.alox.AccelDeadzoneResponseH\x00R\x15accelDeadzoneResponse\x12_\n" +
|
|
"\x1bespnow_unicast_test_request\x18\r \x01(\v2\x1e.alox.EspNowUnicastTestRequestH\x00R\x18espnowUnicastTestRequest\x12b\n" +
|
|
"\x1cespnow_unicast_test_response\x18\x0e \x01(\v2\x1f.alox.EspNowUnicastTestResponseH\x00R\x19espnowUnicastTestResponseB\t\n" +
|
|
"\apayload\"\x05\n" +
|
|
"\x03Ack\"!\n" +
|
|
"\vEchoPayload\x12\x12\n" +
|
|
"\x04data\x18\x01 \x01(\fR\x04data\"s\n" +
|
|
"\x0fVersionResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\rR\aversion\x12\x19\n" +
|
|
"\bgit_hash\x18\x02 \x01(\tR\agitHash\x12+\n" +
|
|
"\x11running_partition\x18\x03 \x01(\tR\x10runningPartition\"\xc3\x01\n" +
|
|
"\n" +
|
|
"ClientInfo\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\rR\x02id\x12\x1c\n" +
|
|
"\tavailable\x18\x02 \x01(\bR\tavailable\x12\x12\n" +
|
|
"\x04used\x18\x03 \x01(\bR\x04used\x12\x10\n" +
|
|
"\x03mac\x18\x04 \x01(\fR\x03mac\x12\x1b\n" +
|
|
"\tlast_ping\x18\x05 \x01(\rR\blastPing\x12*\n" +
|
|
"\x11last_success_ping\x18\x06 \x01(\rR\x0flastSuccessPing\x12\x18\n" +
|
|
"\aversion\x18\a \x01(\rR\aversion\"@\n" +
|
|
"\x12ClientInfoResponse\x12*\n" +
|
|
"\aclients\x18\x01 \x03(\v2\x10.alox.ClientInfoR\aclients\"e\n" +
|
|
"\vClientInput\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\rR\x02id\x12\x15\n" +
|
|
"\x06lage_x\x18\x02 \x01(\x02R\x05lageX\x12\x15\n" +
|
|
"\x06lage_y\x18\x03 \x01(\x02R\x05lageY\x12\x18\n" +
|
|
"\abitmask\x18\x04 \x01(\rR\abitmask\"B\n" +
|
|
"\x13ClientInputResponse\x12+\n" +
|
|
"\aclients\x18\x01 \x03(\v2\x11.alox.ClientInputR\aclients\"\x86\x01\n" +
|
|
"\x14AccelDeadzoneRequest\x12\x14\n" +
|
|
"\x05write\x18\x01 \x01(\bR\x05write\x12\x1a\n" +
|
|
"\bdeadzone\x18\x02 \x01(\rR\bdeadzone\x12\x1b\n" +
|
|
"\tclient_id\x18\x03 \x01(\rR\bclientId\x12\x1f\n" +
|
|
"\vall_clients\x18\x04 \x01(\bR\n" +
|
|
"allClients\"\x91\x01\n" +
|
|
"\x15AccelDeadzoneResponse\x12\x1a\n" +
|
|
"\bdeadzone\x18\x01 \x01(\rR\bdeadzone\x12\x1b\n" +
|
|
"\tclient_id\x18\x02 \x01(\rR\bclientId\x12\x18\n" +
|
|
"\asuccess\x18\x03 \x01(\bR\asuccess\x12%\n" +
|
|
"\x0eslaves_updated\x18\x04 \x01(\rR\rslavesUpdated\"I\n" +
|
|
"\x18EspNowUnicastTestRequest\x12\x1b\n" +
|
|
"\tclient_id\x18\x01 \x01(\rR\bclientId\x12\x10\n" +
|
|
"\x03seq\x18\x02 \x01(\rR\x03seq\"G\n" +
|
|
"\x19EspNowUnicastTestResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x10\n" +
|
|
"\x03seq\x18\x02 \x01(\rR\x03seq\"0\n" +
|
|
"\x0fOtaStartPayload\x12\x1d\n" +
|
|
"\n" +
|
|
"total_size\x18\x01 \x01(\rR\ttotalSize\"2\n" +
|
|
"\n" +
|
|
"OtaPayload\x12\x10\n" +
|
|
"\x03seq\x18\x01 \x01(\rR\x03seq\x12\x12\n" +
|
|
"\x04data\x18\x02 \x01(\fR\x04data\"\x0f\n" +
|
|
"\rOtaEndPayload\"\x86\x01\n" +
|
|
"\x10OtaStatusPayload\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\rR\x06status\x12#\n" +
|
|
"\rbytes_written\x18\x02 \x01(\rR\fbytesWritten\x12\x1f\n" +
|
|
"\vtarget_slot\x18\x03 \x01(\rR\n" +
|
|
"targetSlot\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\rR\x05error*\xdd\x01\n" +
|
|
"\vMessageType\x12\v\n" +
|
|
"\aUNKNOWN\x10\x00\x12\a\n" +
|
|
"\x03ACK\x10\x01\x12\b\n" +
|
|
"\x04ECHO\x10\x02\x12\v\n" +
|
|
"\aVERSION\x10\x03\x12\x0f\n" +
|
|
"\vCLIENT_INFO\x10\x04\x12\x10\n" +
|
|
"\fCLIENT_INPUT\x10\x05\x12\x12\n" +
|
|
"\x0eACCEL_DEADZONE\x10\x06\x12\x17\n" +
|
|
"\x13ESPNOW_UNICAST_TEST\x10\a\x12\r\n" +
|
|
"\tOTA_START\x10\x10\x12\x0f\n" +
|
|
"\vOTA_PAYLOAD\x10\x11\x12\v\n" +
|
|
"\aOTA_END\x10\x12\x12\x0e\n" +
|
|
"\n" +
|
|
"OTA_STATUS\x10\x13\x12\x14\n" +
|
|
"\x10OTA_START_ESPNOW\x10\x14b\x06proto3"
|
|
|
|
var (
|
|
file_uart_messages_proto_rawDescOnce sync.Once
|
|
file_uart_messages_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_uart_messages_proto_rawDescGZIP() []byte {
|
|
file_uart_messages_proto_rawDescOnce.Do(func() {
|
|
file_uart_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_uart_messages_proto_rawDesc), len(file_uart_messages_proto_rawDesc)))
|
|
})
|
|
return file_uart_messages_proto_rawDescData
|
|
}
|
|
|
|
var file_uart_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_uart_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_uart_messages_proto_goTypes = []any{
|
|
(MessageType)(0), // 0: alox.MessageType
|
|
(*UartMessage)(nil), // 1: alox.UartMessage
|
|
(*Ack)(nil), // 2: alox.Ack
|
|
(*EchoPayload)(nil), // 3: alox.EchoPayload
|
|
(*VersionResponse)(nil), // 4: alox.VersionResponse
|
|
(*ClientInfo)(nil), // 5: alox.ClientInfo
|
|
(*ClientInfoResponse)(nil), // 6: alox.ClientInfoResponse
|
|
(*ClientInput)(nil), // 7: alox.ClientInput
|
|
(*ClientInputResponse)(nil), // 8: alox.ClientInputResponse
|
|
(*AccelDeadzoneRequest)(nil), // 9: alox.AccelDeadzoneRequest
|
|
(*AccelDeadzoneResponse)(nil), // 10: alox.AccelDeadzoneResponse
|
|
(*EspNowUnicastTestRequest)(nil), // 11: alox.EspNowUnicastTestRequest
|
|
(*EspNowUnicastTestResponse)(nil), // 12: alox.EspNowUnicastTestResponse
|
|
(*OtaStartPayload)(nil), // 13: alox.OtaStartPayload
|
|
(*OtaPayload)(nil), // 14: alox.OtaPayload
|
|
(*OtaEndPayload)(nil), // 15: alox.OtaEndPayload
|
|
(*OtaStatusPayload)(nil), // 16: alox.OtaStatusPayload
|
|
}
|
|
var file_uart_messages_proto_depIdxs = []int32{
|
|
0, // 0: alox.UartMessage.type:type_name -> alox.MessageType
|
|
2, // 1: alox.UartMessage.ack_payload:type_name -> alox.Ack
|
|
3, // 2: alox.UartMessage.echo_payload:type_name -> alox.EchoPayload
|
|
4, // 3: alox.UartMessage.version_response:type_name -> alox.VersionResponse
|
|
6, // 4: alox.UartMessage.client_info_response:type_name -> alox.ClientInfoResponse
|
|
8, // 5: alox.UartMessage.client_input_response:type_name -> alox.ClientInputResponse
|
|
13, // 6: alox.UartMessage.ota_start:type_name -> alox.OtaStartPayload
|
|
14, // 7: alox.UartMessage.ota_payload:type_name -> alox.OtaPayload
|
|
15, // 8: alox.UartMessage.ota_end:type_name -> alox.OtaEndPayload
|
|
16, // 9: alox.UartMessage.ota_status:type_name -> alox.OtaStatusPayload
|
|
9, // 10: alox.UartMessage.accel_deadzone_request:type_name -> alox.AccelDeadzoneRequest
|
|
10, // 11: alox.UartMessage.accel_deadzone_response:type_name -> alox.AccelDeadzoneResponse
|
|
11, // 12: alox.UartMessage.espnow_unicast_test_request:type_name -> alox.EspNowUnicastTestRequest
|
|
12, // 13: alox.UartMessage.espnow_unicast_test_response:type_name -> alox.EspNowUnicastTestResponse
|
|
5, // 14: alox.ClientInfoResponse.clients:type_name -> alox.ClientInfo
|
|
7, // 15: alox.ClientInputResponse.clients:type_name -> alox.ClientInput
|
|
16, // [16:16] is the sub-list for method output_type
|
|
16, // [16:16] is the sub-list for method input_type
|
|
16, // [16:16] is the sub-list for extension type_name
|
|
16, // [16:16] is the sub-list for extension extendee
|
|
0, // [0:16] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_uart_messages_proto_init() }
|
|
func file_uart_messages_proto_init() {
|
|
if File_uart_messages_proto != nil {
|
|
return
|
|
}
|
|
file_uart_messages_proto_msgTypes[0].OneofWrappers = []any{
|
|
(*UartMessage_AckPayload)(nil),
|
|
(*UartMessage_EchoPayload)(nil),
|
|
(*UartMessage_VersionResponse)(nil),
|
|
(*UartMessage_ClientInfoResponse)(nil),
|
|
(*UartMessage_ClientInputResponse)(nil),
|
|
(*UartMessage_OtaStart)(nil),
|
|
(*UartMessage_OtaPayload)(nil),
|
|
(*UartMessage_OtaEnd)(nil),
|
|
(*UartMessage_OtaStatus)(nil),
|
|
(*UartMessage_AccelDeadzoneRequest)(nil),
|
|
(*UartMessage_AccelDeadzoneResponse)(nil),
|
|
(*UartMessage_EspnowUnicastTestRequest)(nil),
|
|
(*UartMessage_EspnowUnicastTestResponse)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_uart_messages_proto_rawDesc), len(file_uart_messages_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_uart_messages_proto_goTypes,
|
|
DependencyIndexes: file_uart_messages_proto_depIdxs,
|
|
EnumInfos: file_uart_messages_proto_enumTypes,
|
|
MessageInfos: file_uart_messages_proto_msgTypes,
|
|
}.Build()
|
|
File_uart_messages_proto = out.File
|
|
file_uart_messages_proto_goTypes = nil
|
|
file_uart_messages_proto_depIdxs = nil
|
|
}
|