pub trait PwmPeripheral: Sealed {
// Required methods
fn block() -> *const RegisterBlock;
fn output_signal<const OP: u8, const IS_A: bool>() -> OutputSignal;
fn peripheral() -> Peripheral;
}Expand description
A MCPWM peripheral.
Required Methods§
Sourcefn block() -> *const RegisterBlock
fn block() -> *const RegisterBlock
Returns a pointer to the peripheral RegisterBlock.
Sourcefn output_signal<const OP: u8, const IS_A: bool>() -> OutputSignal
fn output_signal<const OP: u8, const IS_A: bool>() -> OutputSignal
Returns the operator GPIO mux output signal.
Sourcefn peripheral() -> Peripheral
fn peripheral() -> Peripheral
Peripheral
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§
impl PwmPeripheral for MCPWM0<'_>
Available on crate feature
unstable only.impl PwmPeripheral for MCPWM1<'_>
Available on crate feature
unstable only.