Skip to content

Struct daisy::PWMHandle::Channel::Config

ClassList > daisy > PWMHandle > Channel > Config

Configuration struct for an individual channel. More...

  • #include <pwm.h>

Public Types

Type Name
enum Polarity
Output polarity.

Public Attributes

Type Name
Pin pin
Pin to use for this channel. Ensure that this is the proper pin for the timer and channel. Use PORTX (default) to select the channel's default pin.
Polarity polarity

Public Functions

Type Name
Config ()
Config (Pin pin_, Polarity polarity_=Polarity::HIGH)

Detailed Description

Note:

These settings are used during initialization and changing them afterwards may not have the desired effect.

Public Types Documentation

enum Polarity

Output polarity.

enum daisy::PWMHandle::Channel::Config::Polarity {
    HIGH = 0,
    LOW
};


Public Attributes Documentation

variable pin

Pin to use for this channel. Ensure that this is the proper pin for the timer and channel. Use PORTX (default) to select the channel's default pin.

Pin daisy::PWMHandle::Channel::Config::pin;


variable polarity

Polarity daisy::PWMHandle::Channel::Config::polarity;

Public Functions Documentation

function Config [½]

inline daisy::PWMHandle::Channel::Config::Config () 

function Config [2/2]

inline daisy::PWMHandle::Channel::Config::Config (
    Pin pin_,
    Polarity polarity_=Polarity::HIGH
) 


The documentation for this class was generated from the following file external-docs/libDaisy/src/per/pwm.h