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 = CC2650_LAUNCHXL_PWMPIN0, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER0A } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN1, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER0B } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN2, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER1A } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN3, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER1B } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN4, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER2A } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN5, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER2B } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN6, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER3A } ,
{ .pwmPin = CC2650_LAUNCHXL_PWMPIN7, .gpTimerUnit = CC2650_LAUNCHXL_GPTIMER3B } ,
};

Field Documentation

§ pwmPin

PIN_Id PWMTimerCC26XX_HwAttrs::pwmPin

PIN to output PWM signal on

§ gpTimerUnit

uint8_t PWMTimerCC26XX_HwAttrs::gpTimerUnit

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


The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale