-
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
14 changed files
with
569 additions
and
139 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
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
Submodule Embedded-Base
updated
16 files
+5 −0 | cangen/CANField.py | |
+17 −2 | cangen/CANMsg.py | |
+9 −3 | cangen/Result.py | |
+210 −36 | cangen/RustSynth.py | |
+2 −1 | cangen/YAMLParser.py | |
+69 −0 | cangen/can-messages/calypso_cmd.yaml | |
+384 −0 | cangen/can-messages/msb.yaml | |
+741 −9 | clang-format | |
+1,019 −0 | general/include/vl6180x_api.h | |
+119 −0 | general/include/vl6180x_cfg.h | |
+773 −0 | general/include/vl6180x_def.h | |
+166 −0 | general/include/vl6180x_i2c.h | |
+312 −0 | general/include/vl6180x_platform.h | |
+104 −0 | general/include/vl6180x_types.h | |
+2,769 −0 | general/src/vl6180x_api.c | |
+261 −0 | general/src/vl6180x_i2c.c |
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 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 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,183 @@ | ||
// This file is generated by rust-protobuf 3.3.0. Do not edit | ||
// .proto file is parsed by pure | ||
// @generated | ||
|
||
// https://github.com/rust-lang/rust-clippy/issues/702 | ||
#![allow(unknown_lints)] | ||
#![allow(clippy::all)] | ||
|
||
#![allow(unused_attributes)] | ||
#![cfg_attr(rustfmt, rustfmt::skip)] | ||
|
||
#![allow(box_pointers)] | ||
#![allow(dead_code)] | ||
#![allow(missing_docs)] | ||
#![allow(non_camel_case_types)] | ||
#![allow(non_snake_case)] | ||
#![allow(non_upper_case_globals)] | ||
#![allow(trivial_casts)] | ||
#![allow(unused_results)] | ||
#![allow(unused_mut)] | ||
|
||
//! Generated file from `command_data.proto` | ||
/// Generated files are compatible only with the same version | ||
/// of protobuf runtime. | ||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; | ||
|
||
// @@protoc_insertion_point(message:command_data.v1.CommandData) | ||
#[derive(PartialEq,Clone,Default,Debug)] | ||
pub struct CommandData { | ||
// message fields | ||
// @@protoc_insertion_point(field:command_data.v1.CommandData.data) | ||
pub data: ::std::vec::Vec<f32>, | ||
// special fields | ||
// @@protoc_insertion_point(special_field:command_data.v1.CommandData.special_fields) | ||
pub special_fields: ::protobuf::SpecialFields, | ||
} | ||
|
||
impl<'a> ::std::default::Default for &'a CommandData { | ||
fn default() -> &'a CommandData { | ||
<CommandData as ::protobuf::Message>::default_instance() | ||
} | ||
} | ||
|
||
impl CommandData { | ||
pub fn new() -> CommandData { | ||
::std::default::Default::default() | ||
} | ||
|
||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { | ||
let mut fields = ::std::vec::Vec::with_capacity(1); | ||
let mut oneofs = ::std::vec::Vec::with_capacity(0); | ||
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( | ||
"data", | ||
|m: &CommandData| { &m.data }, | ||
|m: &mut CommandData| { &mut m.data }, | ||
)); | ||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CommandData>( | ||
"CommandData", | ||
fields, | ||
oneofs, | ||
) | ||
} | ||
} | ||
|
||
impl ::protobuf::Message for CommandData { | ||
const NAME: &'static str = "CommandData"; | ||
|
||
fn is_initialized(&self) -> bool { | ||
true | ||
} | ||
|
||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { | ||
while let Some(tag) = is.read_raw_tag_or_eof()? { | ||
match tag { | ||
10 => { | ||
is.read_repeated_packed_float_into(&mut self.data)?; | ||
}, | ||
13 => { | ||
self.data.push(is.read_float()?); | ||
}, | ||
tag => { | ||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; | ||
}, | ||
}; | ||
} | ||
::std::result::Result::Ok(()) | ||
} | ||
|
||
// Compute sizes of nested messages | ||
#[allow(unused_variables)] | ||
fn compute_size(&self) -> u64 { | ||
let mut my_size = 0; | ||
my_size += 5 * self.data.len() as u64; | ||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); | ||
self.special_fields.cached_size().set(my_size as u32); | ||
my_size | ||
} | ||
|
||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { | ||
for v in &self.data { | ||
os.write_float(1, *v)?; | ||
}; | ||
os.write_unknown_fields(self.special_fields.unknown_fields())?; | ||
::std::result::Result::Ok(()) | ||
} | ||
|
||
fn special_fields(&self) -> &::protobuf::SpecialFields { | ||
&self.special_fields | ||
} | ||
|
||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { | ||
&mut self.special_fields | ||
} | ||
|
||
fn new() -> CommandData { | ||
CommandData::new() | ||
} | ||
|
||
fn clear(&mut self) { | ||
self.data.clear(); | ||
self.special_fields.clear(); | ||
} | ||
|
||
fn default_instance() -> &'static CommandData { | ||
static instance: CommandData = CommandData { | ||
data: ::std::vec::Vec::new(), | ||
special_fields: ::protobuf::SpecialFields::new(), | ||
}; | ||
&instance | ||
} | ||
} | ||
|
||
impl ::protobuf::MessageFull for CommandData { | ||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor { | ||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); | ||
descriptor.get(|| file_descriptor().message_by_package_relative_name("CommandData").unwrap()).clone() | ||
} | ||
} | ||
|
||
impl ::std::fmt::Display for CommandData { | ||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { | ||
::protobuf::text_format::fmt(self, f) | ||
} | ||
} | ||
|
||
impl ::protobuf::reflect::ProtobufValue for CommandData { | ||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>; | ||
} | ||
|
||
static file_descriptor_proto_data: &'static [u8] = b"\ | ||
\n\x12command_data.proto\x12\x0fcommand_data.v1\"!\n\x0bCommandData\x12\ | ||
\x12\n\x04data\x18\x01\x20\x03(\x02R\x04datab\x06proto3\ | ||
"; | ||
|
||
/// `FileDescriptorProto` object which was a source for this generated file | ||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { | ||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); | ||
file_descriptor_proto_lazy.get(|| { | ||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() | ||
}) | ||
} | ||
|
||
/// `FileDescriptor` object which allows dynamic access to files | ||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { | ||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); | ||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); | ||
file_descriptor.get(|| { | ||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { | ||
let mut deps = ::std::vec::Vec::with_capacity(0); | ||
let mut messages = ::std::vec::Vec::with_capacity(1); | ||
messages.push(CommandData::generated_message_descriptor_data()); | ||
let mut enums = ::std::vec::Vec::with_capacity(0); | ||
::protobuf::reflect::GeneratedFileDescriptor::new_generated( | ||
file_descriptor_proto(), | ||
deps, | ||
messages, | ||
enums, | ||
) | ||
}); | ||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) | ||
}) | ||
} |
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 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
Oops, something went wrong.