![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
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 |
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:
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 |