-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
152 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
syntax = "proto3"; | ||
|
||
// This file is the root of the entire package heirarchy. | ||
package orb; | ||
|
||
import "main.proto"; | ||
import "sec.proto"; | ||
import "common.proto"; | ||
|
||
// Any change in version number should be made only if: | ||
// - at least one new field is mandatory for the message to be correctly | ||
// interpreted | ||
// - at least one field has been "renumbered" | ||
// - at least one field type has changed | ||
// Do not change version otherwise. | ||
// ⚠️ Version 0 considered as not stable | ||
|
||
// | ||
enum Version { | ||
VERSION_0 = 0; | ||
} | ||
|
||
message McuMessage | ||
{ | ||
Version version = 1; | ||
oneof message | ||
{ | ||
main.JetsonToMcu j_message = 2; | ||
main.McuToJetson m_message = 3; | ||
sec.JetsonToSec jetson_to_sec_message = 4; | ||
sec.SecToJetson sec_to_jetson_message = 5; | ||
} | ||
} | ||
|
3 changes: 2 additions & 1 deletion
3
...private_stub/mcu_messaging_sec_priv.proto → messages/private_stub/sec_priv.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
syntax = "proto3"; | ||
|
||
package orb.sec; | ||
|
||
import "common.proto"; | ||
import "sec_priv.proto"; | ||
|
||
enum Version { | ||
VERSION_0 = 0; | ||
} | ||
|
||
message JetsonToSec | ||
{ | ||
uint32 ack_number = 1; // monotonically incrementing number. We will | ||
// acknowledge all messages | ||
oneof payload | ||
{ | ||
orb.RebootWithDelay reboot = 3; | ||
orb.FirmwareUpdateData dfu_block = 4; | ||
orb.Heartbeat heartbeat = 5; | ||
SERequest se_request = 6; | ||
orb.FirmwareImageCheck fw_image_check = 20; | ||
orb.FirmwareActivateSecondary fw_image_secondary_activate = 21; | ||
orb.ValueGet value_get = 22; | ||
orb.FirmwareConfirmPrimary fw_image_primary_confirm = 23; | ||
orb.SyncDiagData sync_diag_data = 24; | ||
orb.DiagTest diag_test = 25; | ||
} | ||
} | ||
|
||
message SecToJetson | ||
{ | ||
reserved 6; // used in previous versions | ||
|
||
oneof payload | ||
{ | ||
orb.Ack ack = 1; | ||
orb.Versions versions = 2; | ||
orb.Log log = 3; | ||
sec.private.SEResponse se_response = 4; | ||
sec.private.Tamper tampered = 5; | ||
orb.BatteryStatus battery_status = 7; | ||
orb.FatalError fatal_error = 8; | ||
sec.private.TamperRaw tamper_raw = 9; | ||
sec.private.TamperStates tamper_states = 10; | ||
orb.Temperature temperature = 11; | ||
orb.MemfaultEvent memfault_event = 12; | ||
orb.HardwareDiagnostic hardware_diag = 13; | ||
} | ||
} | ||
|
||
message SERequest | ||
{ | ||
enum RequestType { | ||
READ_WRITE = 0; | ||
CLEAR_READ_BUFFER = 1; | ||
POWER_OFF = 2; | ||
}; | ||
uint32 id = 1; | ||
bytes data = 2; | ||
uint32 rx_length = 3; | ||
RequestType request_type = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|
Oops, something went wrong.