27#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_PT_H_
28#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_PT_H_
37#include "mxc_device.h"
38#include "mxc_errors.h"
39#include "mxc_assert.h"
Registers, Bit Masks and Bit Positions for the GCR Peripheral Module.
uint8_t ptLength
Definition: pt.h:63
uint16_t loopDelay
Definition: pt.h:66
uint32_t bps
Definition: pt.h:60
unsigned channel
Definition: pt.h:59
uint32_t pattern
Definition: pt.h:61
uint16_t loop
Definition: pt.h:64
void MXC_PT_EnableInt(uint32_t pts)
Enable interrupts for the pulse trains selected.
void MXC_PT_DisableRestart(unsigned channel, uint8_t restartIndex)
Disable the restart for the specified pulse train.
void MXC_PT_ClearFlags(uint32_t flags)
Clears the pulse train's interrupt flag.
void MXC_PT_EnableRestart(unsigned start, unsigned stop, uint8_t restartIndex)
Setup and enables a pulse train to restart after another pulse train has exited its loop....
void MXC_PT_Init(mxc_clk_scale_t clk_scale)
This function initializes the pulse trains to a known stopped state and sets the global PT clock scal...
uint32_t MXC_PT_IsActive(uint32_t pts)
Determines if the pulse trains selected are running.
int MXC_PT_SqrWaveConfig(unsigned channel, uint32_t freq)
Configures the pulse train in the square wave mode.
void MXC_PT_Start(unsigned pts)
Starts the pulse trains specified.
int MXC_PT_Config(mxc_pt_cfg_t *cfg)
Configures the pulse train in the specified mode.
mxc_clk_scale_t
Definition: pt.h:71
void MXC_PT_DisableInt(uint32_t pts)
Disable interrupts for the pulse trains selected.
void MXC_PT_Shutdown(uint32_t pts)
Shutdown the pulse train channel/channels.
uint32_t MXC_PT_GetFlags(void)
Gets the pulse trains's interrupt flags.
void MXC_PT_Resync(uint32_t pts)
Resynchronize individual pulse trains together. Resync will stop those resync_pts; others will be sti...
void MXC_PT_SetPattern(unsigned pts, uint32_t pattern)
Sets the pattern of the pulse train.
void MXC_PT_Stop(unsigned pts)
Stops pulse trains.
Registers, Bit Masks and Bit Positions for the MCR Peripheral Module.
Registers, Bit Masks and Bit Positions for the PT Peripheral Module.
Registers, Bit Masks and Bit Positions for the PTG Peripheral Module.