MSP430 DriverLib for MSP430FR2xx_4xx Devices  2.10.00.09
 All Data Structures Functions Variables Modules Pages
Timer_A_outputPWMParam Struct Reference

Used in the Timer_A_outputPWM() function as the param parameter. More...

#include <timer_a.h>

Data Fields

uint16_t clockSource
 
uint16_t clockSourceDivider
 
uint16_t timerPeriod
 Selects the desired timer period.
 
uint16_t compareRegister
 
uint16_t compareOutputMode
 
uint16_t dutyCycle
 Specifies the dutycycle for the generated waveform.
 

Detailed Description

Used in the Timer_A_outputPWM() function as the param parameter.

Field Documentation

uint16_t Timer_A_outputPWMParam::clockSource

Selects Clock source.
Valid values are:

  • TIMER_A_CLOCKSOURCE_EXTERNAL_TXCLK [Default]
  • TIMER_A_CLOCKSOURCE_ACLK
  • TIMER_A_CLOCKSOURCE_SMCLK
  • TIMER_A_CLOCKSOURCE_INVERTED_EXTERNAL_TXCLK

Referenced by Timer_A_outputPWM().

uint16_t Timer_A_outputPWMParam::clockSourceDivider

Is the desired divider for the clock source
Valid values are:

  • TIMER_A_CLOCKSOURCE_DIVIDER_1 [Default]
  • TIMER_A_CLOCKSOURCE_DIVIDER_2
  • TIMER_A_CLOCKSOURCE_DIVIDER_3
  • TIMER_A_CLOCKSOURCE_DIVIDER_4
  • TIMER_A_CLOCKSOURCE_DIVIDER_5
  • TIMER_A_CLOCKSOURCE_DIVIDER_6
  • TIMER_A_CLOCKSOURCE_DIVIDER_7
  • TIMER_A_CLOCKSOURCE_DIVIDER_8
  • TIMER_A_CLOCKSOURCE_DIVIDER_10
  • TIMER_A_CLOCKSOURCE_DIVIDER_12
  • TIMER_A_CLOCKSOURCE_DIVIDER_14
  • TIMER_A_CLOCKSOURCE_DIVIDER_16
  • TIMER_A_CLOCKSOURCE_DIVIDER_20
  • TIMER_A_CLOCKSOURCE_DIVIDER_24
  • TIMER_A_CLOCKSOURCE_DIVIDER_28
  • TIMER_A_CLOCKSOURCE_DIVIDER_32
  • TIMER_A_CLOCKSOURCE_DIVIDER_40
  • TIMER_A_CLOCKSOURCE_DIVIDER_48
  • TIMER_A_CLOCKSOURCE_DIVIDER_56
  • TIMER_A_CLOCKSOURCE_DIVIDER_64

Referenced by Timer_A_outputPWM().

uint16_t Timer_A_outputPWMParam::compareOutputMode

Specifies the output mode.
Valid values are:

  • TIMER_A_OUTPUTMODE_OUTBITVALUE [Default]
  • TIMER_A_OUTPUTMODE_SET
  • TIMER_A_OUTPUTMODE_TOGGLE_RESET
  • TIMER_A_OUTPUTMODE_SET_RESET
  • TIMER_A_OUTPUTMODE_TOGGLE
  • TIMER_A_OUTPUTMODE_RESET
  • TIMER_A_OUTPUTMODE_TOGGLE_SET
  • TIMER_A_OUTPUTMODE_RESET_SET

Referenced by Timer_A_outputPWM().

uint16_t Timer_A_outputPWMParam::compareRegister

Selects the compare register being used. Refer to datasheet to ensure the device has the capture compare register being used.
Valid values are:

  • TIMER_A_CAPTURECOMPARE_REGISTER_0
  • TIMER_A_CAPTURECOMPARE_REGISTER_1
  • TIMER_A_CAPTURECOMPARE_REGISTER_2

Referenced by Timer_A_outputPWM().


The documentation for this struct was generated from the following file:

Copyright 2015, Texas Instruments Incorporated