class::hal::PwmAttributes

class hal::PwmAttributes
  : public hal::PinAssignmentPeriphAttributes< pwm_attr_t, pwm_pin_assignment_t >

This class is for containing PWM attributes.

Summary

[PwmAttributes](#classhal_1_1_pwm_attributes_1a89106f445021c30c2ee885e7b56e9480)()

mcu_channel_t channel() const

u32 period() const

void set_channel(

u32 loc,
u32 value
)

void set_channel(

const mcu_channel_t & channel
)

PwmAttributes & set_flags(

u32 value
)

PwmAttributes & set_frequency(

u32 value
)

PwmAttributes & set_period(

u32 period
)

Members

PwmAttributes()

Constructs an object with detault values.

Parameters

  • o_flags Flags to apply

  • frequency Frequency of timer

  • period Period of PWM timer


mcu_channel_t channel() const

details Access the current channel that the attributes refers to.


u32 period() const

Accesses the PWM period.


void set_channel(

u32 loc,
u32 value
)

Sets the PWM channel associated with the attributes.


void set_channel(

const mcu_channel_t & channel
)

Sets the PWM attributes channel.


PwmAttributes & set_flags(

u32 value
)


PwmAttributes & set_frequency(

u32 value
)


PwmAttributes & set_period(

u32 period
)

Sets the PWM period.


X

Thanks for Coming!

Subscribe to news and updates