Timer Peripheral Library Interface for Harmony v2

Functions

Function NameDescription
PLIB_TMR_AssignmentSelectAssigns the specified timer(s) to the selected modules.
PLIB_TMR_ClockSourceEdgeGetGets the source edge information.
PLIB_TMR_ClockSourceEdgeSelectSelects the input clock source edge.
PLIB_TMR_ClockSourceExternalSyncDisableDisables the clock synchronization of the external input.
PLIB_TMR_ClockSourceExternalSyncEnableEnables the clock synchronization of the external input.
PLIB_TMR_ClockSourceSelectSelects the clock source.
PLIB_TMR_ContiuousCountModeEnableEnables Continuous Count mode.
PLIB_TMR_Counter16BitClearClears the 16-bit timer value.
PLIB_TMR_Counter16BitGetGets the 16-bit timer value.
PLIB_TMR_Counter16BitSetSets the 16-bit timer value.
PLIB_TMR_Counter32BitClearClears the 32-bit timer value.
PLIB_TMR_Counter32BitGetGets the 32-bit timer value.
PLIB_TMR_Counter32BitSetSets the 32-bit timer value.
PLIB_TMR_Counter8BitClearClears the 8-bit timer value.
PLIB_TMR_Counter8BitGetGets the 8-bit timer value.
PLIB_TMR_Counter8BitSetSets the 8-bit timer value.
PLIB_TMR_CounterAsyncWriteDisableDisables the writes to the counter register until the pending write operation completes.
PLIB_TMR_CounterAsyncWriteEnableEnables back-to-back writes with legacy asynchronous timer functionality.
PLIB_TMR_CounterAsyncWriteInProcessReturns the status of the counter write in Asynchronous mode.
PLIB_TMR_ExistsClockSourceIdentifies whether the ClockSource feature exists on the timer module.
PLIB_TMR_ExistsClockSourceEdgeIdentifies whether the ClockSourceEdge feature exists on the timer module.
PLIB_TMR_ExistsClockSourceSyncIdentifies whether the ClockSourceSync feature exists on the timer module.
PLIB_TMR_ExistsCounter16BitIdentifies whether the Counter16Bit feature exists on the timer module.
PLIB_TMR_ExistsCounter32BitIdentifies whether the Counter32Bit feature exists on the timer module.
PLIB_TMR_ExistsCounter8BitIdentifies whether the Counter8Bit feature exists on the timer module.
PLIB_TMR_ExistsCounterAsyncWriteControlIdentifies whether the CounterAsyncWriteControl feature exists on the timer module.
PLIB_TMR_ExistsCounterAsyncWriteInProgressIdentifies whether the CounterAsyncWriteInProgress feature exists on the timer module.
PLIB_TMR_ExistsCountModeIdentifies whether the CountMode feature exists on the timer module.
PLIB_TMR_ExistsEnableControlIdentifies whether the EnableControl feature exists on the timer module.
PLIB_TMR_ExistsGateCurrentStateIdentifies whether the GateCurrentState feature exists on the timer module.
PLIB_TMR_ExistsGatedTimerAccumulationIdentifies whether the GatedTimeAccumulation feature exists on the timer module.
PLIB_TMR_ExistsGatePolarityIdentifies whether the GatePolarity feature exists on the timer module.
PLIB_TMR_ExitsGateSinglePulseAquisitionIdentifies whether the GateSinglePulseAcquisition feature exists on the timer module.
PLIB_TMR_ExistsGateSinglePulseModeIdentifies whether the GateSinglePulseMode feature exists on the timer module.
PLIB_TMR_ExistsGateSourceIdentifies whether the GateSource feature exists on the timer module.
PLIB_TMR_ExistsGateToggleModeIdentifies whether the GateToggleMode feature exists on the timer module.
PLIB_TMR_Exists16BitModeIdentifies whether the Mode16Bit feature exists on the timer module.
PLIB_TMR_Exists32BitModeIdentifies whether the Mode32Bit feature exists on the timer module.
PLIB_TMR_Exists8BitModeIdentifies whether the Mode8Bit feature exists on the timer module.
PLIB_TMR_ExistsOperationInSleepIdentifies whether the OperationInSleep feature exists on the timer module.
PLIB_TMR_ExistsPeriod16BitIdentifies whether the Period16Bit feature exists on the timer module.
PLIB_TMR_ExistsPeriod32BitIdentifies whether the Period32Bit feature exists on the timer module.
PLIB_TMR_ExistsPeriod8BitIdentifies whether the Period8Bit feature exists on the timer module.
PLIB_TMR_ExistsPosscaleIdentifies whether the Postscale feature exists on the timer module.
PLIB_TMR_ExistsPrescaleIdentifies whether the Postscale feature exists on the timer module.
PLIB_TMR_ExistsPrescaledAssignmentIdentifies whether the PrescalerControl feature exists on the timer module.
PLIB_TMR_ExistsStopInIdleControlIdentifies whether the StopInIdle feature exists on the timer module.
PLIB_TMR_ExistsSystemClockStatusIdentifies whether the SystemClockStatus feature exists on the timer module.
PLIB_TMR_ExistsTimerAssignmentIdentifies whether the TimerAssignment feature exists on the timer module.
PLIB_TMR_ExistsTimerOperationModeIdentifies whether the TimerOperationMode feature exists on the timer module.
PLIB_TMR_ExistsTimerOscillatorIdentifies whether the TimerOscillator feature exists on the timer module.
PLIB_TMR_ExistsEventResetIdentifies whether the TriggerEventReset feature exists on the timer module.
PLIB_TMR_GateCurrentStateGetReturns the current level of the timer gate.
PLIB_TMR_GateEnableEnables counting regardless of the corresponding timer gate function.
PLIB_TMR_GateDisableDisables counting regardless of the corresponding timer gate function.
PLIB_TMR_GateSinglePuleAquisitionHasCompletedReturns the gate single pulse acquisition status.
PLIB_TMR_GateSinglePuleAquisitionStartStarts the gate single pulse acquisition.
PLIB_TMR_GateSinglePulseModeDisableDisables Single Pulse mode.
PLIB_TMR_GateSinglePulseModeEnableEnables Single pulse mode and the controlling corresponding timer gate.
PLIB_TMR_GateSourceSelectSelects the timer gate source.
PLIB_TMR_GateToggleModeDisableDisables the Gate Toggle mode.
PLIB_TMR_IsPeriodMatchBasedGets the operating mode state of the timer module based on Period Match or Overflow mode.
PLIB_TMR_Mode16BitEnableEnables the timer module for 16-bit operation and disables all other modes.
PLIB_TMR_Mode32BitEnableEnables the timer module for 32-bit operation and disables all other modes.
PLIB_TMR_Mode8BitEnableEnables the timer module for 8-bit operation and disables all other modes.
PLIB_TMR_OperateInSleepDisableDisables timer module operation when the device is in Sleep mode.
PLIB_TMR_OperateInSleepEnableEnables timer module operation when the device is in Sleep mode.
PLIB_TMR_Period16BitGetGets the 16-bit period value.
PLIB_TMR_Period32BitGetGets the 32-bit period value.
PLIB_TMR_Period8BitGetGets the 8-bit period value.
PLIB_TMR_Period16BitSetSets the 16-bit period value.
PLIB_TMR_Period32BitSetSets the 32-bit period value.
PLIB_TMR_Period8BitSetSets the 8-bit period value.
PLIB_TMR_PostscaleDivisorGetGets the postscaler divisor information.
PLIB_TMR_PostscaleGetGets the postscaler divisor information.
PLIB_TMR_PostscaleSelectSelects the output clock postscaler.
PLIB_TMR_SingleShotModeEnableEnables Single-shot mode.
PLIB_TMR_StartStarts/enables the indexed timer.
PLIB_TMR_StopStops/dsables the indexed timer.
PLIB_TMR_StopInIdleDisableContinue module operation when the device enters Idle mode.
PLIB_TMR_StopInIdleEnableDiscontinues module operation when the device enters Idle mode.
PLIB_TMR_SystemClockFromTimerIsActiveGets the system clock status.
PLIB_TMR_TimerOscillstorDisableDisables the oscillator associated with the timer module.
PLIB_TMR_TimerOscillstorEnableEnables the oscillator associated with the timer module.
PLIB_TMR_TriggerEventResetDisableDisables the special event trigger reset.
PLIB_TMR_TriggerEventResetEnableEnables the special event trigger reset.

Data Type

Data TypesDescription
TMR_MODULE_IDDefines the specific timer being referenced.

Enumerations

NameDescription
TMR_ASSIGNMENTData type defining the timer assignment to modules.
TMR_CLOCK_SOURCEData type defining the different clock sources.
TMR_CLOCK_SOURCE_EDGEData type defining the different source edges.
TMR_GATE_POLARITYData type defining the different gate polarities.
TMR_GATE_SOURCEData type defining the different gate source selections.
TMR_MODULE_IDIdentifies the supported timer modules.
TMR_POSTSCALEDefines the list of possible postscaler values.
TMR_PRESCALEDefines the list of possible prescaler values.