Trait PwmPeripheral

Source
pub unsafe trait PwmPeripheral: Deref<Target = RegisterBlock> {
    // Required methods
    fn enable();
    fn block() -> *const RegisterBlock;
    fn output_signal<const OP: u8, const IS_A: bool>() -> OutputSignal;
}
Expand description

A MCPWM peripheral

Required Methods§

Source

fn enable()

Enable peripheral

Source

fn block() -> *const RegisterBlock

Get a pointer to the peripheral RegisterBlock

Source

fn output_signal<const OP: u8, const IS_A: bool>() -> OutputSignal

Get operator GPIO mux output signal

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§