Struct multiwii_serial_protocol::structs::MspCurrentMeter [] [src]

pub struct MspCurrentMeter {
    pub id: u8,
    pub mah_drawn: u16,
    pub amperage: u16,
}

Fields

In 0.001A steps (mA)

Methods

impl MspCurrentMeter
[src]

[src]

Display formatter for console applications

Trait Implementations

impl PackedStruct<[u8; 5]> for MspCurrentMeter
[src]

Structure that can be packed an unpacked into 5 bytes.

Bit, MSB0NameType
0:7idu8
8:23mah_drawnu16
24:39amperageu16

[src]

Packs the structure into a byte array.

[src]

Unpacks the structure from a byte array.

impl PackedStructInfo for MspCurrentMeter
[src]

[src]

Number of bits that this structure occupies when being packed.

impl PackedStructSlice for MspCurrentMeter
[src]

[src]

Pack the structure into an output buffer.

[src]

Unpack the structure from a buffer.

[src]

Number of bytes that this structure demands for packing or unpacking.

[src]

Pack the structure into a new byte vector.

impl PackedStructDebug for MspCurrentMeter
[src]

[src]

[src]

impl Display for MspCurrentMeter
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MspCurrentMeter
[src]

[src]

Formats the value using the given formatter.

impl Copy for MspCurrentMeter
[src]

impl Clone for MspCurrentMeter
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more