Functions | |
void | Timer_D_startCounter (uint16_t baseAddress, uint16_t timerMode) |
Starts Timer_D counter. More... | |
void | Timer_D_initContinuousMode (uint16_t baseAddress, Timer_D_initContinuousModeParam *param) |
Configures timer in continuous mode. More... | |
void | Timer_D_initUpMode (uint16_t baseAddress, Timer_D_initUpModeParam *param) |
Configures timer in up mode. More... | |
void | Timer_D_initUpDownMode (uint16_t baseAddress, Timer_D_initUpDownModeParam *param) |
Configures timer in up down mode. More... | |
void | Timer_D_initCaptureMode (uint16_t baseAddress, Timer_D_initCaptureModeParam *param) |
Initializes Capture Mode. More... | |
void | Timer_D_initCompareMode (uint16_t baseAddress, Timer_D_initCompareModeParam *param) |
Initializes Compare Mode. More... | |
void | Timer_D_enableTimerInterrupt (uint16_t baseAddress) |
Enable timer interrupt. More... | |
void | Timer_D_enableHighResInterrupt (uint16_t baseAddress, uint16_t mask) |
Enable High Resolution interrupt. More... | |
void | Timer_D_disableTimerInterrupt (uint16_t baseAddress) |
Disable timer interrupt. More... | |
void | Timer_D_disableHighResInterrupt (uint16_t baseAddress, uint16_t mask) |
Disable High Resolution interrupt. More... | |
uint32_t | Timer_D_getTimerInterruptStatus (uint16_t baseAddress) |
Get timer interrupt status. More... | |
void | Timer_D_enableCaptureCompareInterrupt (uint16_t baseAddress, uint16_t captureCompareRegister) |
Enable capture compare interrupt. More... | |
void | Timer_D_disableCaptureCompareInterrupt (uint16_t baseAddress, uint16_t captureCompareRegister) |
Disable capture compare interrupt. More... | |
uint32_t | Timer_D_getCaptureCompareInterruptStatus (uint16_t baseAddress, uint16_t captureCompareRegister, uint16_t mask) |
Return capture compare interrupt status. More... | |
uint16_t | Timer_D_getHighResInterruptStatus (uint16_t baseAddress, uint16_t mask) |
Returns High Resolution interrupt status. More... | |
void | Timer_D_clear (uint16_t baseAddress) |
Reset/Clear the timer clock divider, count direction, count. More... | |
void | Timer_D_clearHighResInterrupt (uint16_t baseAddress, uint16_t mask) |
Clears High Resolution interrupt status. More... | |
uint8_t | Timer_D_getSynchronizedCaptureCompareInput (uint16_t baseAddress, uint16_t captureCompareRegister, uint16_t synchronized) |
Get synchronized capturecompare input. More... | |
uint8_t | Timer_D_getOutputForOutputModeOutBitValue (uint16_t baseAddress, uint16_t captureCompareRegister) |
Get output bit for output mode. More... | |
uint16_t | Timer_D_getCaptureCompareCount (uint16_t baseAddress, uint16_t captureCompareRegister) |
Get current capturecompare count. More... | |
uint16_t | Timer_D_getCaptureCompareLatchCount (uint16_t baseAddress, uint16_t captureCompareRegister) |
Get current capture compare latch register count. More... | |
uint8_t | Timer_D_getCaptureCompareInputSignal (uint16_t baseAddress, uint16_t captureCompareRegister) |
Get current capturecompare input signal. More... | |
void | Timer_D_setOutputForOutputModeOutBitValue (uint16_t baseAddress, uint16_t captureCompareRegister, uint8_t outputModeOutBitValue) |
Set output bit for output mode. More... | |
void | Timer_D_outputPWM (uint16_t baseAddress, Timer_D_outputPWMParam *param) |
Generate a PWM with timer running in up mode. More... | |
void | Timer_D_stop (uint16_t baseAddress) |
Stops the timer. More... | |
void | Timer_D_setCompareValue (uint16_t baseAddress, uint16_t compareRegister, uint16_t compareValue) |
Sets the value of the capture-compare register. More... | |
void | Timer_D_clearTimerInterrupt (uint16_t baseAddress) |
Clears the Timer TDIFG interrupt flag. More... | |
void | Timer_D_clearCaptureCompareInterrupt (uint16_t baseAddress, uint16_t captureCompareRegister) |
Clears the capture-compare interrupt flag. More... | |
uint8_t | Timer_D_initHighResGeneratorInFreeRunningMode (uint16_t baseAddress, uint8_t desiredHighResFrequency) |
Configures Timer_D in free running mode. More... | |
void | Timer_D_initHighResGeneratorInRegulatedMode (uint16_t baseAddress, Timer_D_initHighResGeneratorInRegulatedModeParam *param) |
Configures Timer_D in Regulated mode. More... | |
void | Timer_D_combineTDCCRToOutputPWM (uint16_t baseAddress, Timer_D_combineTDCCRToOutputPWMParam *param) |
Combine TDCCR to get PWM. More... | |
void | Timer_D_selectLatchingGroup (uint16_t baseAddress, uint16_t groupLatch) |
Selects Timer_D Latching Group. More... | |
void | Timer_D_selectCounterLength (uint16_t baseAddress, uint16_t counterLength) |
Selects Timer_D counter length. More... | |
void | Timer_D_initCompareLatchLoadEvent (uint16_t baseAddress, uint16_t compareRegister, uint16_t compareLatchLoadEvent) |
Selects Compare Latch Load Event. More... | |
void | Timer_D_disableHighResFastWakeup (uint16_t baseAddress) |
Disable High Resolution fast wakeup. More... | |
void | Timer_D_enableHighResFastWakeup (uint16_t baseAddress) |
Enable High Resolution fast wakeup. More... | |
void | Timer_D_disableHighResClockEnhancedAccuracy (uint16_t baseAddress) |
Disable High Resolution Clock Enhanced Accuracy. More... | |
void | Timer_D_enableHighResClockEnhancedAccuracy (uint16_t baseAddress) |
Enable High Resolution Clock Enhanced Accuracy. More... | |
void | Timer_D_disableHighResGeneratorForceON (uint16_t baseAddress) |
Disable High Resolution Clock Enhanced Accuracy. More... | |
void | Timer_D_enableHighResGeneratorForceON (uint16_t baseAddress) |
Enable High Resolution Clock Enhanced Accuracy. More... | |
void | Timer_D_selectHighResCoarseClockRange (uint16_t baseAddress, uint16_t highResCoarseClockRange) |
Select High Resolution Coarse Clock Range. More... | |
void | Timer_D_selectHighResClockRange (uint16_t baseAddress, uint16_t highResClockRange) |
Select High Resolution Clock Range Selection. More... | |
uint16_t | Timer_D_getCounterValue (uint16_t baseAddress) |
Reads the current timer count value. More... | |
void | Timer_D_setOutputMode (uint16_t baseAddress, uint16_t compareRegister, uint16_t compareOutputMode) |
Sets the output mode. More... | |
void Timer_D_clear | ( | uint16_t | baseAddress | ) |
Reset/Clear the timer clock divider, count direction, count.
baseAddress | is the base address of the TIMER_D module. |
Modified bits of TDxCTL0 register.
void Timer_D_clearCaptureCompareInterrupt | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Clears the capture-compare interrupt flag.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture-compare register being used. Valid values are:
|
Modified bits are CCIFG of TDxCCTLn register.
References Timer_D_initHighResGeneratorInFreeRunningMode().
void Timer_D_clearHighResInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Clears High Resolution interrupt status.
baseAddress | is the base address of the TIMER_D module. |
mask | is the mask for the interrupts to clear Mask value is the logical OR of any of the following:
|
Modified bits of TDxHINT register.
References Timer_D_getSynchronizedCaptureCompareInput().
void Timer_D_clearTimerInterrupt | ( | uint16_t | baseAddress | ) |
Clears the Timer TDIFG interrupt flag.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDIFG of TDxCTL0 register.
void Timer_D_combineTDCCRToOutputPWM | ( | uint16_t | baseAddress, |
Timer_D_combineTDCCRToOutputPWMParam * | param | ||
) |
Combine TDCCR to get PWM.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for PWM generation using two CCRs. |
Modified bits of TDxCCTLn register, bits of TDxCCR0 register, bits of TDxCCTL0 register, bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_combineTDCCRToOutputPWMParam::clockingMode, Timer_D_combineTDCCRToOutputPWMParam::clockSource, Timer_D_combineTDCCRToOutputPWMParam::clockSourceDivider, Timer_D_combineTDCCRToOutputPWMParam::combineCCRRegistersCombination, Timer_D_combineTDCCRToOutputPWMParam::compareOutputMode, Timer_D_combineTDCCRToOutputPWMParam::dutyCycle1, Timer_D_combineTDCCRToOutputPWMParam::dutyCycle2, and Timer_D_combineTDCCRToOutputPWMParam::timerPeriod.
void Timer_D_disableCaptureCompareInterrupt | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Disable capture compare interrupt.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | is the selected capture compare register Valid values are:
|
Modified bits of TDxCCTLn register.
void Timer_D_disableHighResClockEnhancedAccuracy | ( | uint16_t | baseAddress | ) |
Disable High Resolution Clock Enhanced Accuracy.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHEAEN of TDxHCTL0 register.
void Timer_D_disableHighResFastWakeup | ( | uint16_t | baseAddress | ) |
Disable High Resolution fast wakeup.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHFW of TDxHCTL0 register.
void Timer_D_disableHighResGeneratorForceON | ( | uint16_t | baseAddress | ) |
Disable High Resolution Clock Enhanced Accuracy.
High-resolution generator is on if the Timer_D counter
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHRON of TDxHCTL0 register.
void Timer_D_disableHighResInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Disable High Resolution interrupt.
baseAddress | is the base address of the TIMER_D module. |
mask | is the mask of interrupts to disable Mask value is the logical OR of any of the following:
|
Modified bits of TDxHINT register.
void Timer_D_disableTimerInterrupt | ( | uint16_t | baseAddress | ) |
Disable timer interrupt.
baseAddress | is the base address of the TIMER_D module. |
Modified bits of TDxCTL0 register.
void Timer_D_enableCaptureCompareInterrupt | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Enable capture compare interrupt.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | is the selected capture compare register Valid values are:
|
Modified bits of TDxCCTLn register.
void Timer_D_enableHighResClockEnhancedAccuracy | ( | uint16_t | baseAddress | ) |
Enable High Resolution Clock Enhanced Accuracy.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHEAEN of TDxHCTL0 register.
void Timer_D_enableHighResFastWakeup | ( | uint16_t | baseAddress | ) |
Enable High Resolution fast wakeup.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHFW of TDxHCTL0 register.
void Timer_D_enableHighResGeneratorForceON | ( | uint16_t | baseAddress | ) |
Enable High Resolution Clock Enhanced Accuracy.
High-resolution generator is on in all Timer_D MCx modes. The PMM remains in high-current mode.
baseAddress | is the base address of the TIMER_D module. |
Modified bits are TDHRON of TDxHCTL0 register.
void Timer_D_enableHighResInterrupt | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Enable High Resolution interrupt.
baseAddress | is the base address of the TIMER_D module. |
mask | is the mask of interrupts to enable Mask value is the logical OR of any of the following:
|
Modified bits of TDxHINT register.
void Timer_D_enableTimerInterrupt | ( | uint16_t | baseAddress | ) |
Enable timer interrupt.
baseAddress | is the base address of the TIMER_D module. |
Modified bits of TDxCTL0 register.
uint16_t Timer_D_getCaptureCompareCount | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Get current capturecompare count.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
References Timer_D_getCaptureCompareLatchCount().
Referenced by Timer_D_getOutputForOutputModeOutBitValue().
uint8_t Timer_D_getCaptureCompareInputSignal | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Get current capturecompare input signal.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
References Timer_D_setOutputForOutputModeOutBitValue().
Referenced by Timer_D_getCaptureCompareLatchCount().
uint32_t Timer_D_getCaptureCompareInterruptStatus | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister, | ||
uint16_t | mask | ||
) |
Return capture compare interrupt status.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | is the selected capture compare register Valid values are:
|
mask | is the mask for the interrupt status Mask value is the logical OR of any of the following:
|
uint16_t Timer_D_getCaptureCompareLatchCount | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Get current capture compare latch register count.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
References Timer_D_getCaptureCompareInputSignal().
Referenced by Timer_D_getCaptureCompareCount().
uint16_t Timer_D_getCounterValue | ( | uint16_t | baseAddress | ) |
Reads the current timer count value.
Reads the current count value of the timer. There is a majority vote system in place to confirm an accurate value is returned. The Timer_D_THRESHOLD #define in the corresponding header file can be modified so that the votes must be closer together for a consensus to occur.
baseAddress | is the base address of the TIMER_D module. |
uint16_t Timer_D_getHighResInterruptStatus | ( | uint16_t | baseAddress, |
uint16_t | mask | ||
) |
Returns High Resolution interrupt status.
baseAddress | is the base address of the TIMER_D module. |
mask | is the mask for the interrupt status Mask value is the logical OR of any of the following:
|
Modified bits of TDxHINT register.
uint8_t Timer_D_getOutputForOutputModeOutBitValue | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister | ||
) |
Get output bit for output mode.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
References Timer_D_getCaptureCompareCount().
Referenced by Timer_D_getSynchronizedCaptureCompareInput().
uint8_t Timer_D_getSynchronizedCaptureCompareInput | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister, | ||
uint16_t | synchronized | ||
) |
Get synchronized capturecompare input.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
synchronized | is to select type of capture compare input. Valid values are:
|
References Timer_D_getOutputForOutputModeOutBitValue().
Referenced by Timer_D_clearHighResInterrupt().
uint32_t Timer_D_getTimerInterruptStatus | ( | uint16_t | baseAddress | ) |
Get timer interrupt status.
baseAddress | is the base address of the TIMER_D module. |
void Timer_D_initCaptureMode | ( | uint16_t | baseAddress, |
Timer_D_initCaptureModeParam * | param | ||
) |
Initializes Capture Mode.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for capture mode initialization. |
Modified bits of TDxCCTLn register and bits of TDxCTL2 register.
References Timer_D_initCaptureModeParam::captureInputSelect, Timer_D_initCaptureModeParam::captureInterruptEnable, Timer_D_initCaptureModeParam::captureMode, Timer_D_initCaptureModeParam::captureOutputMode, Timer_D_initCaptureModeParam::captureRegister, Timer_D_initCaptureModeParam::channelCaptureMode, and Timer_D_initCaptureModeParam::synchronizeCaptureSource.
void Timer_D_initCompareLatchLoadEvent | ( | uint16_t | baseAddress, |
uint16_t | compareRegister, | ||
uint16_t | compareLatchLoadEvent | ||
) |
Selects Compare Latch Load Event.
baseAddress | is the base address of the TIMER_D module. |
compareRegister | selects the compare register being used. Valid values are:
|
compareLatchLoadEvent | selects the latch load event Valid values are:
|
Modified bits are CLLD of TDxCCTLn register.
void Timer_D_initCompareMode | ( | uint16_t | baseAddress, |
Timer_D_initCompareModeParam * | param | ||
) |
Initializes Compare Mode.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for compare mode initialization. |
Modified bits of TDxCCTLn register and bits of TDxCCRn register.
References Timer_D_initCompareModeParam::compareInterruptEnable, Timer_D_initCompareModeParam::compareOutputMode, Timer_D_initCompareModeParam::compareRegister, and Timer_D_initCompareModeParam::compareValue.
void Timer_D_initContinuousMode | ( | uint16_t | baseAddress, |
Timer_D_initContinuousModeParam * | param | ||
) |
Configures timer in continuous mode.
This API does not start the timer. Timer needs to be started when required using the Timer_D_start API.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for continuous mode initialization. |
Modified bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_initContinuousModeParam::clockingMode, Timer_D_initContinuousModeParam::clockSource, Timer_D_initContinuousModeParam::clockSourceDivider, Timer_D_initContinuousModeParam::timerClear, and Timer_D_initContinuousModeParam::timerInterruptEnable_TDIE.
uint8_t Timer_D_initHighResGeneratorInFreeRunningMode | ( | uint16_t | baseAddress, |
uint8_t | desiredHighResFrequency | ||
) |
Configures Timer_D in free running mode.
baseAddress | is the base address of the TIMER_D module. |
desiredHighResFrequency | selects the desired High Resolution frequency used. Valid values are:
|
Modified bits of TDxHCTL1 register, bits of TDxHCTL0 register and bits of TDxCTL1 register.
References TLV_getInfo().
Referenced by Timer_D_clearCaptureCompareInterrupt().
void Timer_D_initHighResGeneratorInRegulatedMode | ( | uint16_t | baseAddress, |
Timer_D_initHighResGeneratorInRegulatedModeParam * | param | ||
) |
Configures Timer_D in Regulated mode.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for high resolution generator in regulated mode. |
Modified bits of TDxHCTL0 register, bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_initHighResGeneratorInRegulatedModeParam::clockingMode, Timer_D_initHighResGeneratorInRegulatedModeParam::clockSource, Timer_D_initHighResGeneratorInRegulatedModeParam::clockSourceDivider, Timer_D_initHighResGeneratorInRegulatedModeParam::highResClockDivider, and Timer_D_initHighResGeneratorInRegulatedModeParam::highResClockMultiplyFactor.
void Timer_D_initUpDownMode | ( | uint16_t | baseAddress, |
Timer_D_initUpDownModeParam * | param | ||
) |
Configures timer in up down mode.
This API does not start the timer. Timer needs to be started when required using the Timer_D_start API.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for up-down mode initialization. |
Modified bits of TDxCCR0 register, bits of TDxCCTL0 register, bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_initUpDownModeParam::captureCompareInterruptEnable_CCR0_CCIE, Timer_D_initUpDownModeParam::clockingMode, Timer_D_initUpDownModeParam::clockSource, Timer_D_initUpDownModeParam::clockSourceDivider, Timer_D_initUpDownModeParam::timerClear, Timer_D_initUpDownModeParam::timerInterruptEnable_TDIE, and Timer_D_initUpDownModeParam::timerPeriod.
void Timer_D_initUpMode | ( | uint16_t | baseAddress, |
Timer_D_initUpModeParam * | param | ||
) |
Configures timer in up mode.
This API does not start the timer. Timer needs to be started when required using the Timer_D_start API.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for up mode initialization. |
Modified bits of TDxCCR0 register, bits of TDxCCTL0 register, bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_initUpModeParam::captureCompareInterruptEnable_CCR0_CCIE, Timer_D_initUpModeParam::clockingMode, Timer_D_initUpModeParam::clockSource, Timer_D_initUpModeParam::clockSourceDivider, Timer_D_initUpModeParam::timerClear, Timer_D_initUpModeParam::timerInterruptEnable_TDIE, and Timer_D_initUpModeParam::timerPeriod.
void Timer_D_outputPWM | ( | uint16_t | baseAddress, |
Timer_D_outputPWMParam * | param | ||
) |
Generate a PWM with timer running in up mode.
baseAddress | is the base address of the TIMER_D module. |
param | is the pointer to struct for PWM configuration. |
Modified bits of TDxCCTLn register, bits of TDxCCR0 register, bits of TDxCCTL0 register, bits of TDxCTL0 register and bits of TDxCTL1 register.
References Timer_D_outputPWMParam::clockingMode, Timer_D_outputPWMParam::clockSource, Timer_D_outputPWMParam::clockSourceDivider, Timer_D_outputPWMParam::compareOutputMode, Timer_D_outputPWMParam::compareRegister, Timer_D_outputPWMParam::dutyCycle, and Timer_D_outputPWMParam::timerPeriod.
void Timer_D_selectCounterLength | ( | uint16_t | baseAddress, |
uint16_t | counterLength | ||
) |
Selects Timer_D counter length.
baseAddress | is the base address of the TIMER_D module. |
counterLength | selects the value of counter length. Valid values are:
|
Modified bits are CNTL of TDxCTL0 register.
void Timer_D_selectHighResClockRange | ( | uint16_t | baseAddress, |
uint16_t | highResClockRange | ||
) |
Select High Resolution Clock Range Selection.
baseAddress | is the base address of the TIMER_D module. |
highResClockRange | selects the High Resolution Clock Range. Refer to datasheet for frequency details Valid values are:
|
void Timer_D_selectHighResCoarseClockRange | ( | uint16_t | baseAddress, |
uint16_t | highResCoarseClockRange | ||
) |
Select High Resolution Coarse Clock Range.
baseAddress | is the base address of the TIMER_D module. |
highResCoarseClockRange | selects the High Resolution Coarse Clock Range Valid values are:
|
Modified bits are TDHCLKCR of TDxHCTL1 register.
void Timer_D_selectLatchingGroup | ( | uint16_t | baseAddress, |
uint16_t | groupLatch | ||
) |
Selects Timer_D Latching Group.
baseAddress | is the base address of the TIMER_D module. |
groupLatch | selects the group latch Valid values are:
|
Modified bits are TDCLGRP of TDxCTL0 register.
void Timer_D_setCompareValue | ( | uint16_t | baseAddress, |
uint16_t | compareRegister, | ||
uint16_t | compareValue | ||
) |
Sets the value of the capture-compare register.
baseAddress | is the base address of the TIMER_D module. |
compareRegister | selects the Capture register being used. Valid values are:
|
compareValue | is the count to be compared with in compare mode |
Modified bits of TDxCCRn register.
void Timer_D_setOutputForOutputModeOutBitValue | ( | uint16_t | baseAddress, |
uint16_t | captureCompareRegister, | ||
uint8_t | outputModeOutBitValue | ||
) |
Set output bit for output mode.
baseAddress | is the base address of the TIMER_D module. |
captureCompareRegister | selects the Capture register being used. Valid values are:
|
outputModeOutBitValue | the value to be set for out bit Valid values are:
|
Modified bits of TDxCCTLn register.
Referenced by Timer_D_getCaptureCompareInputSignal().
void Timer_D_setOutputMode | ( | uint16_t | baseAddress, |
uint16_t | compareRegister, | ||
uint16_t | compareOutputMode | ||
) |
Sets the output mode.
Sets the output mode for the timer even the timer is already running.
baseAddress | is the base address of the TIMER_D module. |
compareRegister | selects the compare register being used. Valid values are:
|
compareOutputMode | specifies the output mode. Valid values are:
|
Modified bits are OUTMOD of TDxCCTLn register.
void Timer_D_startCounter | ( | uint16_t | baseAddress, |
uint16_t | timerMode | ||
) |
Starts Timer_D counter.
NOTE: This function assumes that the timer has been previously configured using Timer_D_initContinuousMode, Timer_D_initUpMode or Timer_D_initUpDownMode.
baseAddress | is the base address of the TIMER_DA module. |
timerMode | selects the mode of the timer Valid values are:
|
Modified bits of TDxCTL0 register.
void Timer_D_stop | ( | uint16_t | baseAddress | ) |
Stops the timer.
baseAddress | is the base address of the TIMER_D module. |
Modified bits of TDxCTL0 register.