Data Fields
PWMTimerMSP432_HWAttrsV2 Struct Reference

PWMTimerMSP432 Hardware attributes. More...

#include <PWMTimerMSP432.h>

Data Fields

uint16_t clockSource
 
uint32_t pwmPin
 

Detailed Description

PWMTimerMSP432 Hardware attributes.

The 'clockSource' field is used by driverlib APIs and therefore must be populated by driverlib macro definitions. For msp432_driverlib these definitions are found in:

The 'pwmPin' field identifies which physical pin as well as which timer compare register to use for a particular PWM channel. The encoded pin identifier for initializing the 'pwmPin' field must be selected from the PWMTimerMSP432_HWAttrs 'pwmPin' field options macros.

A sample structure is shown below:

const PWMTimerMSP432_HWAttrsV2 PWMTimerMSP432HWAttrs[] = {
{
.clockSource = TIMER_A_CLOCKSOURCE_SMCLK,
},
};

Field Documentation

§ clockSource

uint16_t PWMTimerMSP432_HWAttrsV2::clockSource

TIMER A Clock Source (see timer_a.h for options)

§ pwmPin

uint32_t PWMTimerMSP432_HWAttrsV2::pwmPin

Pin to output PWM signal on (see PWMTimerMSP432_HWAttrs 'pwmPin' field options)


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