MODIFICATION HISTORY:
Ver Who Date Changes ----- ------ -------- ------------------------------------------------- 1.00a drg/jz 01/21/10 First release
#include "xttcps.h"
Functions | |
int | XTtcPs_CfgInitialize (XTtcPs *InstancePtr, XTtcPs_Config *ConfigPtr, u32 EffectiveAddr) |
void | XTtcPs_SetMatchValue (XTtcPs *InstancePtr, u8 MatchIndex, u16 Value) |
u16 | XTtcPs_GetMatchValue (XTtcPs *InstancePtr, u8 MatchIndex) |
void | XTtcPs_SetPrescaler (XTtcPs *InstancePtr, u8 PrescalerValue) |
u8 | XTtcPs_GetPrescaler (XTtcPs *InstancePtr) |
void | XTtcPs_CalcIntervalFromFreq (XTtcPs *InstancePtr, u32 Freq, u16 *Interval, u8 *Prescaler) |
|
This function calculates the interval value as well as the prescaler value for a given frequency.
|
|
Initializes a specific XTtcPs instance such that the driver is ready to use. This function initializes a single timer counter in the triple timer counter function block. The state of the device after initialization is:
|
|
This function is used to get the value of the match registers. There are three match registers.
|
|
This function gets the input clock prescaler
|
|
This function is used to set the match registers. There are three match registers. The match 0 register is special. If the waveform output mode is enabled, the waveform will change polarity when the count matches the value in the match 0 register. The polarity of the waveform output can also be set using the XTtcPs_SetOptions() function.
|
|
This function sets the prescaler enable bit and if needed sets the prescaler bits in the control register.
|