![]() |
![]() |
|
MSPM0G1X0X_G3X0X Driver Library
1.10.01.05
|
|
Data Structures | |
| struct | DL_TimerA_PWMConfig |
| Configuration struct for DL_TimerA_initPWMMode. More... | |
| struct | DL_TimerA_backupConfig |
| Configuration structure to backup Timer A peripheral state before entering STOP or STANDBY mode. Not required after PG 1.0 silicon. Used by DL_TimerA_saveConfiguration and DL_TimerA_restoreConfiguration. More... | |
Typedefs | |
| 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 | |
| void | DL_TimerA_initPWMMode (GPTIMER_Regs *gptimer, DL_TimerA_PWMConfig *config) |
| Configure timer in Pulse Width Modulation (PWM) Mode Initializes all the common configurable options for the TIMA peripheral when used in PWM mode. Any other custom configuration can be done after calling this API. More... | |
| bool | DL_TimerA_saveConfiguration (GPTIMER_Regs *gptimer, DL_TimerA_backupConfig *ptr) |
| Saves TimerA configuration before entering STOP or STANDBY mode. Only necessary for PG 1.0 silicon. 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. Only necessary for PG 1.0 silicon. 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).
| void DL_TimerA_initPWMMode | ( | GPTIMER_Regs * | gptimer, |
| DL_TimerA_PWMConfig * | config | ||
| ) |
Configure timer in Pulse Width Modulation (PWM) Mode Initializes all the common configurable options for the TIMA peripheral when used in PWM mode. Any other custom configuration can be done after calling this API.
| gptimer | Pointer to the register overlay for the peripheral |
| config | Pointer to the mode configuration struct DL_TimerA_PWMConfig. |
| bool DL_TimerA_saveConfiguration | ( | GPTIMER_Regs * | gptimer, |
| DL_TimerA_backupConfig * | ptr | ||
| ) |
Saves TimerA configuration before entering STOP or STANDBY mode. Only necessary for PG 1.0 silicon. 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. Only necessary for PG 1.0 silicon.
| [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 |