# pwm_opt_t Struct Reference

`#include <pwm.h>`

## Detailed Description

Input parameters when initializing a PWM channel.

Definition at line 85 of file pwm.h.

## Data Fields
unsigned int | diva
| CLKA divide factor.
unsigned int | divb
| CLKB divide factor.
unsigned int | prea
| Divider input clock A.
unsigned int | preb
| Divider input clock B.

## Field Documentation

unsigned int pwm_opt_t::diva

CLKA divide factor.

Definition at line 91 of file pwm.h.

Referenced by main(), and pwm_init().

unsigned int pwm_opt_t::divb

CLKB divide factor.

Definition at line 88 of file pwm.h.

Referenced by main(), and pwm_init().

unsigned int pwm_opt_t::prea

Divider input clock A.

Definition at line 97 of file pwm.h.

Referenced by main(), and pwm_init().

unsigned int pwm_opt_t::preb

Divider input clock B.

Definition at line 94 of file pwm.h.

Referenced by main(), and pwm_init().