Struct multiwii_serial_protocol::structs::MspBatteryConfig [] [src]

pub struct MspBatteryConfig {
    pub vbat_min_cell_voltage: u8,
    pub vbat_max_cell_voltage: u8,
    pub vbat_warning_cell_voltage: u8,
    pub battery_capacity: u16,
    pub voltage_meter_source: u8,
    pub current_meter_source: u8,
}

Fields

Methods

impl MspBatteryConfig
[src]

[src]

Display formatter for console applications

Trait Implementations

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

Structure that can be packed an unpacked into 7 bytes.

Bit, MSB0NameType
0:7vbat_min_cell_voltageu8
8:15vbat_max_cell_voltageu8
16:23vbat_warning_cell_voltageu8
24:39battery_capacityu16
40:47voltage_meter_sourceu8
48:55current_meter_sourceu8

[src]

Packs the structure into a byte array.

[src]

Unpacks the structure from a byte array.

impl PackedStructInfo for MspBatteryConfig
[src]

[src]

Number of bits that this structure occupies when being packed.

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

[src]

[src]

impl Display for MspBatteryConfig
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for MspBatteryConfig
[src]

[src]

Formats the value using the given formatter.

impl Copy for MspBatteryConfig
[src]

impl Clone for MspBatteryConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more