Struct multiwii_serial_protocol::structs::MspBuildInfo
[−]
[src]
pub struct MspBuildInfo { pub date_str: [u8; 11], pub time_str: [u8; 8], pub git_str: [u8; 7], }
Fields
date_str: [u8; 11]
time_str: [u8; 8]
git_str: [u8; 7]
Methods
impl MspBuildInfo
[src]
fn packed_struct_display_formatter<'a>(
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 26]>
[src]
&'a self
) -> PackedStructDisplay<'a, Self, [u8; 26]>
Display formatter for console applications
Trait Implementations
impl PackedStruct<[u8; 26]> for MspBuildInfo
[src]
Structure that can be packed an unpacked into 26 bytes.
Bit, MSB0 | Name | Type |
0:7 | date_str[0] | u8 |
8:15 | date_str[1] | u8 |
16:23 | date_str[2] | u8 |
24:31 | date_str[3] | u8 |
32:39 | date_str[4] | u8 |
40:47 | date_str[5] | u8 |
48:55 | date_str[6] | u8 |
56:63 | date_str[7] | u8 |
64:71 | date_str[8] | u8 |
72:79 | date_str[9] | u8 |
80:87 | date_str[10] | u8 |
88:95 | time_str[0] | u8 |
96:103 | time_str[1] | u8 |
104:111 | time_str[2] | u8 |
112:119 | time_str[3] | u8 |
120:127 | time_str[4] | u8 |
128:135 | time_str[5] | u8 |
136:143 | time_str[6] | u8 |
144:151 | time_str[7] | u8 |
152:159 | git_str[0] | u8 |
160:167 | git_str[1] | u8 |
168:175 | git_str[2] | u8 |
176:183 | git_str[3] | u8 |
184:191 | git_str[4] | u8 |
192:199 | git_str[5] | u8 |
200:207 | git_str[6] | u8 |
fn pack(&self) -> [u8; 26]
[src]
Packs the structure into a byte array.
fn unpack(src: &[u8; 26]) -> Result<MspBuildInfo, PackingError>
[src]
Unpacks the structure from a byte array.
impl PackedStructInfo for MspBuildInfo
[src]
fn packed_bits() -> usize
[src]
Number of bits that this structure occupies when being packed.
impl PackedStructSlice for MspBuildInfo
[src]
fn pack_to_slice(&self, output: &mut [u8]) -> Result<(), PackingError>
[src]
Pack the structure into an output buffer.
fn unpack_from_slice(src: &[u8]) -> Result<Self, PackingError>
[src]
Unpack the structure from a buffer.
fn packed_bytes() -> usize
[src]
Number of bytes that this structure demands for packing or unpacking.
fn pack_to_vec(&self) -> Result<Vec<u8>, PackingError>
[src]
Pack the structure into a new byte vector.
impl PackedStructDebug for MspBuildInfo
[src]
fn fmt_fields(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn packed_struct_display_header() -> &'static str
[src]
impl Display for MspBuildInfo
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Debug for MspBuildInfo
[src]
impl Copy for MspBuildInfo
[src]
impl Clone for MspBuildInfo
[src]
fn clone(&self) -> MspBuildInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more