2.88 Peripheral Trigger Generator (PTG)

This Plib implements software abstraction for PTG Peripheral.

Library Interface

Peripheral Trigger Generator peripheral library provides the following interfaces:

Functions

NameDescription
PTG_InitializeInitializes PTG module
PTG_DeinitializeDeinitializes the PTG peripheral of the device
PTG_EnableEnables the PTG peripheral of the device
PTG_DisableDisables the PTG peripheral of the device
PTG_StepSequenceStartStarts the step sequence of the PTG peripheral of the device
PTG_StepSequenceStopStops the step sequence of the PTG peripheral of the device
PTG_SoftwareTriggerSetActivates the software trigger of the PTG peripheral of the device
PTG_SoftwareTriggerClearClears the software trigger of the PTG peripheral of the device
PTG_WatchdogTimeoutStatusGetIndicates the status of the watchdog timeout status of the PTG Peripheral of the device
PTG_EventCallbackRegisterRegisters a callback function for PTG Peripheral events

Data types and constants

NameTypeDescription
PTG_EVENTSEnumDefines the PTG events that are available
PTG_EVENTS_CALLBACKTypedefDefines the function pointer data type and function signature for the QEI peripheral callback function
PTG_EVENTS_CALLBACK_OBJECTStructDefines the data type for PTG peripheral callback object
Note: Not all APIs maybe implemented. See the specific device family section for available APIs.