Struct lis3dh_async::Duration
source · pub struct Duration(_);
Implementations§
source§impl Duration
impl Duration
sourcepub fn seconds(output_data_rate: DataRate, seconds: f32) -> Self
pub fn seconds(output_data_rate: DataRate, seconds: f32) -> Self
Convert a number of seconds into a duration. Internally a duration is represented
as a multiple of 1 / ODR
where ODR (the output data rate) is of type DataRate
.
sourcepub fn miliseconds(output_data_rate: DataRate, miliseconds: f32) -> Self
pub fn miliseconds(output_data_rate: DataRate, miliseconds: f32) -> Self
Convert a number of miliseconds into a duration. Internally a duration is represented
as a multiple of 1 / ODR
where ODR (the output data rate) is of type DataRate
.