Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields
qm_pwm_config_t Struct Reference
PWM / Timer

QM PWM / Timer configuration type. More...

`#include <qm_pwm.h>`

## Data Fields
uint32_t | lo_count
| Number of cycles the PWM output is driven low. More...
uint32_t | hi_count
| Number of cycles the PWM output is driven high. More...
bool | mask_interrupt
| Mask interrupt. More...
qm_pwm_mode_t | mode
| Pwm mode. More...
void(* | callback )(void *data, uint32_t int_status)
| User callback. More...
void * | callback_data
| Callback user data. More...

## Detailed Description

QM PWM / Timer configuration type.

Definition at line 33 of file qm_pwm.h.

## Field Documentation

void(* qm_pwm_config_t::callback)(void *data, uint32_t int_status)

User callback.

Parameters

  [in] | data | The callback user data.
  [in] | int_status | The timer status.

Definition at line 53 of file qm_pwm.h.

Referenced by qm_pwm_set_config().

void* qm_pwm_config_t::callback_data

Callback user data.

Definition at line 54 of file qm_pwm.h.

Referenced by qm_pwm_set_config().

uint32_t qm_pwm_config_t::hi_count

Number of cycles the PWM output is driven high.

Not applicable in timer mode. Must be > 0.

Definition at line 43 of file qm_pwm.h.

Referenced by qm_pwm_set_config().

uint32_t qm_pwm_config_t::lo_count

Number of cycles the PWM output is driven low.

In timer mode, this is the timer load count. Must be > 0.

Definition at line 38 of file qm_pwm.h.

Referenced by qm_pwm_set_config().

bool qm_pwm_config_t::mask_interrupt

Mask interrupt.

Definition at line 44 of file qm_pwm.h.

Referenced by qm_pwm_set_config().

qm_pwm_mode_t qm_pwm_config_t::mode

Pwm mode.

Definition at line 45 of file qm_pwm.h.

Referenced by qm_pwm_set_config().