#[repr(C)]pub struct InfraredRawSignal {
pub timings_size: usize,
pub timings: *mut u32,
pub frequency: u32,
pub duty_cycle: f32,
}Expand description
Raw signal type definition.
Measurement units used:
- time: microseconds (uS)
- frequency: Hertz (Hz)
- duty_cycle: no units, fraction between 0 and 1.
Fields§
§timings_size: usize< Number of elements in the timings array.
timings: *mut u32< Pointer to an array of timings describing the signal.
frequency: u32< Carrier frequency of the signal.
duty_cycle: f32< Duty cycle of the signal.
Trait Implementations§
Source§impl Clone for InfraredRawSignal
impl Clone for InfraredRawSignal
Source§fn clone(&self) -> InfraredRawSignal
fn clone(&self) -> InfraredRawSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InfraredRawSignal
Auto Trait Implementations§
impl !Send for InfraredRawSignal
impl !Sync for InfraredRawSignal
impl Freeze for InfraredRawSignal
impl RefUnwindSafe for InfraredRawSignal
impl Unpin for InfraredRawSignal
impl UnsafeUnpin for InfraredRawSignal
impl UnwindSafe for InfraredRawSignal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more