Skip to content

Class hal::soft::inert_pwm

ClassList > hal > soft > inert_pwm

Inert implementation of Pulse Width Modulation (PWM) channel hardware.

  • #include <inert_pwm.hpp>

Inherits the following classes: hal::pwm

Public Functions inherited from hal::pwm

See hal::pwm

Type Name
result< duty_cycle_t > duty_cycle (float p_duty_cycle)
Set the pwm waveform duty cycle.
result< frequency_t > frequency (hertz p_frequency)
Set the pwm waveform frequency.
virtual ~pwm () = default

Public Static Functions

Type Name
result< inert_pwm > create ()
Factory function to create inert_pwm object.

Public Static Functions Documentation

function create

Factory function to create inert_pwm object.

static inline result< inert_pwm > hal::soft::inert_pwm::create () 

Returns:

result<inert_pwm> - Constructed inert_pwm object


The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_pwm.hpp