TI-RTOS Drivers  tidrivers_cc13xx_cc26xx_2_20_00_08
Data Fields
PWMTimerCC26XX_HwAttrs Struct Reference

PWMTimer26XX Hardware attributes. More...

#include <PWMTimerCC26XX.h>

Data Fields

PIN_Id pwmPin
 
uint8_t gpTimerUnit
 

Detailed Description

PWMTimer26XX Hardware attributes.

These fields are used by the driver to set up underlying PIN and GPTimer driver statically. A sample structure is shown below:

// PWM configuration, one per PWM output
PWMTimerCC26XX_HwAttrs pwmtimerCC26xxHWAttrs[CC2650_PWMCOUNT] = {
{ .pwmPin = Board_PWMPIN0, .gpTimerUnit = CC2650_GPTIMER0A } ,
{ .pwmPin = Board_PWMPIN1, .gpTimerUnit = CC2650_GPTIMER0B } ,
{ .pwmPin = Board_PWMPIN2, .gpTimerUnit = CC2650_GPTIMER1A } ,
{ .pwmPin = Board_PWMPIN3, .gpTimerUnit = CC2650_GPTIMER1B } ,
{ .pwmPin = Board_PWMPIN4, .gpTimerUnit = CC2650_GPTIMER2A } ,
{ .pwmPin = Board_PWMPIN5, .gpTimerUnit = CC2650_GPTIMER2B } ,
{ .pwmPin = Board_PWMPIN6, .gpTimerUnit = CC2650_GPTIMER3A } ,
{ .pwmPin = Board_PWMPIN7, .gpTimerUnit = CC2650_GPTIMER3B } ,
};

Field Documentation

PIN_Id PWMTimerCC26XX_HwAttrs::pwmPin

PIN to output PWM signal on

uint8_t PWMTimerCC26XX_HwAttrs::gpTimerUnit

GPTimer unit index (0A, 0B, 1A..)


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