Struct multiwii_serial_protocol::structs::MspAnalog [] [src]

pub struct MspAnalog {
    pub battery_voltage: u8,
    pub mah_drawn: u16,
    pub rssi: u16,
    pub amperage: i16,
}

Fields

Current in 0.01A steps, range is -320A to 320A

Methods

impl MspAnalog
[src]

[src]

Display formatter for console applications

Trait Implementations

impl PackedStruct<[u8; 7]> for MspAnalog
[src]

Structure that can be packed an unpacked into 7 bytes.

Bit, MSB0NameType
0:7battery_voltageu8
8:23mah_drawnu16
24:39rssiu16
40:55amperagei16

[src]

Packs the structure into a byte array.

[src]

Unpacks the structure from a byte array.

impl PackedStructInfo for MspAnalog
[src]

[src]

Number of bits that this structure occupies when being packed.

impl PackedStructSlice for MspAnalog
[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 MspAnalog
[src]

[src]

[src]

impl Display for MspAnalog
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MspAnalog
[src]

[src]

Formats the value using the given formatter.

impl Copy for MspAnalog
[src]

impl Clone for MspAnalog
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more