Struct canadensis_data_types::reg::udral::service::battery::parameters_0_3::Parameters
source · [−]pub struct Parameters {Show 17 fields
pub unique_id: u64,
pub mass: Scalar,
pub design_capacity: Scalar,
pub design_cell_voltage_min_max: [Scalar; 2],
pub discharge_current: Scalar,
pub discharge_current_burst: Scalar,
pub charge_current: Scalar,
pub charge_current_fast: Scalar,
pub charge_termination_threshold: Scalar,
pub charge_voltage: Scalar,
pub cycle_count: u16,
pub series_cell_count: u8,
pub state_of_health_pct: u8,
pub technology: Technology,
pub nominal_voltage: Scalar,
pub unix_manufacture_time: u64,
pub name: Vec<u8, 64>,
}
Expand description
reg.udral.service.battery.Parameters.0.3
Size ranges from 64 to 128 bytes
Fields
unique_id: u64
truncated uint64
Always aligned Size 64 bits
mass: Scalar
uavcan.si.unit.mass.Scalar.1.0
Always aligned Size 32 bits
design_capacity: Scalar
uavcan.si.unit.electric_charge.Scalar.1.0
Always aligned Size 32 bits
design_cell_voltage_min_max: [Scalar; 2]
uavcan.si.unit.voltage.Scalar.1.0[2]
Always aligned Size 64 bits
discharge_current: Scalar
uavcan.si.unit.electric_current.Scalar.1.0
Always aligned Size 32 bits
discharge_current_burst: Scalar
uavcan.si.unit.electric_current.Scalar.1.0
Always aligned Size 32 bits
charge_current: Scalar
uavcan.si.unit.electric_current.Scalar.1.0
Always aligned Size 32 bits
charge_current_fast: Scalar
uavcan.si.unit.electric_current.Scalar.1.0
Always aligned Size 32 bits
charge_termination_threshold: Scalar
uavcan.si.unit.electric_current.Scalar.1.0
Always aligned Size 32 bits
charge_voltage: Scalar
uavcan.si.unit.voltage.Scalar.1.0
Always aligned Size 32 bits
cycle_count: u16
saturated uint16
Always aligned Size 16 bits
series_cell_count: u8
saturated uint8
Always aligned Size 8 bits
state_of_health_pct: u8
saturated uint7
Always aligned Size 7 bits
technology: Technology
reg.udral.service.battery.Technology.0.1
Always aligned Size 8 bits
nominal_voltage: Scalar
uavcan.si.unit.voltage.Scalar.1.0
Always aligned Size 32 bits
unix_manufacture_time: u64
truncated uint40
Always aligned Size 40 bits
name: Vec<u8, 64>
saturated uint8[<=64]
Always aligned Size ranges from 0 to 512 bits
Trait Implementations
sourceimpl DataType for Parameters
impl DataType for Parameters
sourceconst EXTENT_BYTES: Option<u32>
const EXTENT_BYTES: Option<u32>
The sealed or delimited property of this type
sourceimpl Deserialize for Parameters
impl Deserialize for Parameters
sourcefn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError> where
Self: Sized,
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError> where
Self: Sized,
Deserializes a value and returns it
sourcefn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Self where
Self: AsBytes + FromBytes,
fn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Self where
Self: AsBytes + FromBytes,
Deserializes a value from a slice of bytes and returns it Read more
sourcefn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>
A convenience function that creates a cursor around the provided bytes and calls
deserialize
Read more
sourceimpl Serialize for Parameters
impl Serialize for Parameters
impl Message for Parameters
Auto Trait Implementations
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more