TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Fields
PWMTimerTiva_HWAttrsV1 Struct Reference

PWMTimerTiva Hardware attributes. More...

#include <PWMTimerTiva.h>

Data Fields

uint32_t timerBaseAddr
 
uint16_t halfTimer
 
uint32_t pinTimerPwmMode
 
uint32_t gpioBaseAddr
 
uint8_t gpioPinIndex
 

Detailed Description

PWMTimerTiva 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 PWMTimerTiva_HWAttrsV1 pwmTivaHWAttrs[] = {
{
.timerBaseAddr = TIMER2_BASE,
.halfTimer = TIMER_A,
.pinTimerPwmMode = GPIO_PA4_T2CCP0,
.gpioBaseAddr = GPIO_PORTA_BASE,
.gpioPinIndex = GPIO_PIN_4
}
};

Field Documentation

uint32_t PWMTimerTiva_HWAttrsV1::timerBaseAddr

< Timer peripheral base address Half-timer to generate outputs (ex.: TIMER_A or TIMER_B)

uint16_t PWMTimerTiva_HWAttrsV1::halfTimer

Timer output pin mode (ex.: GPIO_PA0_T0CCP0, GPIO_PA1_T0CCP1, etc.)

uint32_t PWMTimerTiva_HWAttrsV1::pinTimerPwmMode

GPIO port base address for the device pin.

uint32_t PWMTimerTiva_HWAttrsV1::gpioBaseAddr

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

uint8_t PWMTimerTiva_HWAttrsV1::gpioPinIndex

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