# pm_pll_opt_t Struct Reference

`#include <pm_at32ap7000.h>`

## Detailed Description

Pll settings. The new frequency will be set according to the following formula: pll = osc * mul / div.

Definition at line 169 of file pm_at32ap7000.h.

## Data Fields
unsigned char | count
| The number of cycles after pll lock before status register is updated.
unsigned char | div
| Divider.
unsigned char | mul
| Multiplier.
unsigned char | options
| Extended pll options. Consult the part specific datasheet for settings.
unsigned char | osc_id
| The oscillator id number to use as a reference.
unsigned char | pll_id
| The pll id number.
Bool | wait_for_lock
| Set to true to wait actively for pll lock.

## Field Documentation

unsigned char pm_pll_opt_t::count

The number of cycles after pll lock before status register is updated.

Definition at line 179 of file pm_at32ap7000.h.

Referenced by pm_start_pll().

unsigned char pm_pll_opt_t::div

Divider.

Definition at line 177 of file pm_at32ap7000.h.

Referenced by pm_start_pll().

unsigned char pm_pll_opt_t::mul

Multiplier.

Definition at line 175 of file pm_at32ap7000.h.

Referenced by pm_start_pll().

unsigned char pm_pll_opt_t::options

Extended pll options. Consult the part specific datasheet for settings.

Definition at line 181 of file pm_at32ap7000.h.

unsigned char pm_pll_opt_t::osc_id

The oscillator id number to use as a reference.

Definition at line 173 of file pm_at32ap7000.h.

Referenced by pm_start_pll().

unsigned char pm_pll_opt_t::pll_id

The pll id number.

Definition at line 171 of file pm_at32ap7000.h.

Referenced by pm_start_pll().

Bool pm_pll_opt_t::wait_for_lock

Set to true to wait actively for pll lock.

Definition at line 183 of file pm_at32ap7000.h.

Referenced by pm_start_pll().