Struct Config
pub struct Config {
pub input_pin: PinName,
pub input_pull_selection: PullSelection,
pub output_pin: PinName,
pub output_edge: Edge,
}Expand description
Configuration for the LPM kernel module.
Fields§
§input_pin: PinNameThe pin to use as the wake-up interrupt source.
Corresponds to the wakeup_in parameter.
input_pull_selection: PullSelection§output_pin: PinNameThe pin to turn off when the system goes to sleep.
Corresponds to the wakeup_out parameter.
Note that the kernel module only modifies the pin’s state when the system goes to sleep.
output_edge: EdgeThe output pin’s edge level.
Corresponds to the wakeup_out_edge parameter.
If set to Edge::Rising, the output pin will be set to high when the
system goes to sleep.
Implementations§
§impl Config
impl Config
pub(crate) fn module_params(&self) -> String
pub(crate) fn module_params(&self) -> String
Returns the parameter string for the kernel module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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