52 #include "mxc_device.h" 53 #include "mxc_errors.h" 54 #include "mxc_assert.h" int MXC_PT_SqrWaveConfig(unsigned channel, uint32_t freq)
Configures the pulse train in the square wave mode.
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...
mxc_clk_scale_t
Definition: pt.h:85
void MXC_PT_EnableInt(uint32_t pts)
Enable interrupts for the pulse trains selected.
uint32_t bps
Definition: pt.h:76
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_Start(unsigned pts)
Starts the pulse trains specified.
unsigned channel
Definition: pt.h:75
void MXC_PT_ClearFlags(uint32_t flags)
Clears the pulse train's interrupt flag.
uint16_t loopDelay
Definition: pt.h:80
void MXC_PT_SetPattern(unsigned pts, uint32_t pattern)
Sets the pattern of the pulse train.
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_Stop(unsigned pts)
Stops pulse trains.
uint16_t loop
Definition: pt.h:79
int MXC_PT_Config(mxc_pt_cfg_t *cfg)
Configures the pulse train in the specified mode.
uint32_t MXC_PT_GetFlags(void)
Gets the pulse trains's interrupt flags.
void MXC_PT_DisableInt(uint32_t pts)
Disable interrupts for the pulse trains selected.
uint8_t ptLength
Definition: pt.h:78
void MXC_PT_Shutdown(uint32_t pts)
Shutdown the pulse train channel/channels.
void MXC_PT_DisableRestart(unsigned channel, uint8_t restartIndex)
Disable the restart for the specified pulse train.
uint32_t pattern
Definition: pt.h:77
uint32_t MXC_PT_IsActive(uint32_t pts)
Determines if the pulse trains selected are running.