![]() |
![]() |
|
MSPM0C1105_C1106 Driver Library
2.05.01.00
|
|
Data Structures | |
| struct | DL_TimerA_backupConfig |
| Configuration structure to backup Timer A peripheral state before entering STOP or STANDBY mode. Used by DL_TimerA_saveConfiguration and DL_TimerA_restoreConfiguration. More... | |
Typedefs | |
| typedef DL_Timer_PWMConfig | DL_TimerA_PWMConfig |
| Redirects to common DL_Timer_PWMConfig. | |
| typedef DL_Timer_ClockConfig | DL_TimerA_ClockConfig |
| Redirects to common DL_Timer_ClockConfig. | |
| typedef DL_Timer_TimerConfig | DL_TimerA_TimerConfig |
| Redirects to common DL_Timer_TimerConfig. | |
| typedef DL_Timer_CaptureConfig | DL_TimerA_CaptureConfig |
| Redirects to common DL_Timer_CaptureConfig. | |
| typedef DL_Timer_CaptureTriggerConfig | DL_TimerA_CaptureTriggerConfig |
| Redirects to common DL_Timer_CaptureTriggerConfig. | |
| typedef DL_Timer_CaptureCombinedConfig | DL_TimerA_CaptureCombinedConfig |
| Redirects to common DL_Timer_CaptureCombinedConfig. | |
| typedef DL_Timer_CompareConfig | DL_TimerA_CompareConfig |
| Redirects to common DL_Timer_CompareConfig. | |
| typedef DL_Timer_CompareTriggerConfig | DL_TimerA_CompareTriggerConfig |
| Redirects to common DL_Timer_CompareTriggerConfig. | |
Functions | |
| bool | DL_TimerA_saveConfiguration (const GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr) |
| Saves TimerA configuration before entering STOP or STANDBY mode. Timer must be in IDLE state before calling this API. Timer can be put IDLE state by calling DL_TimerA_stopCounter. More... | |
| bool | DL_TimerA_restoreConfiguration (GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr, bool restoreCounter) |
| Restore TimerA configuration after leaving a STOP or STANDBY mode. More... | |
The TimerA Driver Library allows you to configure the Advanced Timer (TIMA) module in output compare, input capture, PWM output, one-shot and periodic modes. For detailed TIMA features please refer to the Device Technical Reference Manual (TRM).
| bool DL_TimerA_saveConfiguration | ( | const GPTIMER_Regs * | gptimer, |
| DL_TimerA_backupConfig * | ptr | ||
| ) |
Saves TimerA configuration before entering STOP or STANDBY mode. Timer must be in IDLE state before calling this API. Timer can be put IDLE state by calling DL_TimerA_stopCounter.
| [in] | gptimer | Pointer to the register overlay for the peripheral |
| [in] | ptr | Configuration backup setup structure. See DL_TimerA_backupConfig. |
| FALSE | if a configuration already exists in ptr (will not be overwritten). TRUE if a configuration was successfully saved |
| bool DL_TimerA_restoreConfiguration | ( | GPTIMER_Regs * | gptimer, |
| DL_TimerA_backupConfig * | ptr, | ||
| bool | restoreCounter | ||
| ) |
Restore TimerA configuration after leaving a STOP or STANDBY mode.
| [in] | gptimer | Pointer to the register overlay for the peripheral |
| [in] | ptr | Configuration backup setup structure. See DL_TimerA_backupConfig. |
| [in] | restoreCounter | If true timer counter value is also restored (e.g. resume counts of edge counts). If false timer counter is not restored. |
| FALSE | if a configuration does not exist in ptr (will not be loaded). TRUE if a configuration successfully loaded |