TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Fields
PWMTiva_HWAttrsV1 Struct Reference

PWMTiva Hardware attributes. More...

#include <PWMTiva.h>

Data Fields

uint32_t pwmBaseAddr
 
uint32_t pwmOutput
 
uint32_t pwmGenOpts
 
uint32_t pinPwmMode
 
uint32_t gpioBaseAddr
 
uint8_t gpioPinIndex
 

Detailed Description

PWMTiva Hardware attributes.

These fields are used by driverlib APIs and therefore must be populated by driverlib macro definitions. For TivaWare these definitions are found in:

A sample structure is shown below:

const PWMTiva_HWAttrs PWMTivaHWAttrs[] = {
{
.pwmBaseAddr = PWM0_BASE,
.pwmOutput = PWM_OUT_0,
.pwmGenOpts = PWM_GEN_MODE_DOWN | PWM_GEN_MODE_DBG_RUN,
.pinPwmMode = GPIO_PF0_M0PWM0,
.gpioBaseAddr = GPIO_PORTF_BASE,
.gpioPinIndex = GPIO_PIN_0
}
};

Field Documentation

uint32_t PWMTiva_HWAttrsV1::pwmBaseAddr

< PWM peripheral base address (ex.: PWM0_BASE, PWM1_BASE, etc.). Encoded PWM offset address (ex.: PWM_OUT_0, PWM_OUT_5, etc.).

uint32_t PWMTiva_HWAttrsV1::pwmOutput

Generator options for PWM (ex.: PWM_GEN_MODE_DOWN | PWM_GEN_MODE_DBG_RUN).

uint32_t PWMTiva_HWAttrsV1::pwmGenOpts

PWM output pin mode (ex.: GPIO_PF0_M0PWM0, GPIO_PF2_M0PWM2, etc.).

uint32_t PWMTiva_HWAttrsV1::pinPwmMode

GPIO port base address for the device pin (ex.: GPIO_PORTA_BASE, GPIO_PORTF_BASE, etc).

uint32_t PWMTiva_HWAttrsV1::gpioBaseAddr

GPIO port pin index (ex.: GPIO_PIN_0, GPIO_PIN_4, etc.)

uint8_t PWMTiva_HWAttrsV1::gpioPinIndex

The documentation for this struct was generated from the following file:
Copyright 2016, Texas Instruments Incorporated