pub struct HallConfig {
pub pull: Pull,
pub filter: FilterValue,
pub prescaler: u8,
pub enable_xor: bool,
pub trigger_source: Ts,
pub reset_on_trigger: bool,
}Expand description
Hall interface configuration.
Fields§
§pull: PullPull configuration for Hall input pins.
filter: FilterValueInput filter applied on capture channel 1.
prescaler: u8Input capture prescaler factor for channel 1 (1,2,4,8).
enable_xor: boolEnable CH1/CH2/CH3 XOR function (TI1S).
trigger_source: TsTrigger source for Hall/reset sequencing.
reset_on_trigger: boolIf set, configure slave reset mode to restart the counter on trigger.
Trait Implementations§
Source§impl Clone for HallConfig
impl Clone for HallConfig
Source§fn clone(&self) -> HallConfig
fn clone(&self) -> HallConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HallConfig
impl Default for HallConfig
Source§impl Format for HallConfig
impl Format for HallConfig
impl Copy for HallConfig
Auto Trait Implementations§
impl Freeze for HallConfig
impl RefUnwindSafe for HallConfig
impl Send for HallConfig
impl Sync for HallConfig
impl Unpin for HallConfig
impl UnwindSafe for HallConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.