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
Name | Description |
---|---|
PTG_Initialize | Initializes PTG module |
PTG_Deinitialize | Deinitializes the PTG peripheral of the device |
PTG_Enable | Enables the PTG peripheral of the device |
PTG_Disable | Disables the PTG peripheral of the device |
PTG_StepSequenceStart | Starts the step sequence of the PTG peripheral of the device |
PTG_StepSequenceStop | Stops the step sequence of the PTG peripheral of the device |
PTG_SoftwareTriggerSet | Activates the software trigger of the PTG peripheral of the device |
PTG_SoftwareTriggerClear | Clears the software trigger of the PTG peripheral of the device |
PTG_WatchdogTimeoutStatusGet | Indicates the status of the watchdog timeout status of the PTG Peripheral of the device |
PTG_EventCallbackRegister | Registers a callback function for PTG Peripheral events |
Data types and constants
Name | Type | Description |
---|---|---|
PTG_EVENTS | Enum | Defines the PTG events that are available |
PTG_EVENTS_CALLBACK | Typedef | Defines the function pointer data type and function signature for the QEI peripheral callback function |
PTG_EVENTS_CALLBACK_OBJECT | Struct | Defines the data type for PTG peripheral callback object |
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.