TIM_Private_Functions
[TIM]
Functions | |
uint32_t | TIM_GetPClock (uint32_t timernum) |
Get peripheral clock of each timer controller. | |
uint32_t | TIM_ConverUSecToVal (uint32_t timernum, uint32_t usec) |
Convert a time to a timer count value. | |
uint32_t | TIM_ConverPtrToTimeNum (LPC_TIM_TypeDef *TIMx) |
Convert a timer register pointer to a timer number. |
Function Documentation
uint32_t TIM_ConverPtrToTimeNum | ( | LPC_TIM_TypeDef * | TIMx | ) |
Convert a timer register pointer to a timer number.
- Parameters:
-
[in] TIMx Pointer to a timer register set
- Returns:
- The timer number (0 to 3) or -1 if register pointer is bad
Definition at line 106 of file lpc17xx_timer.c.
uint32_t TIM_ConverUSecToVal | ( | uint32_t | timernum, | |
uint32_t | usec | |||
) |
Convert a time to a timer count value.
- Parameters:
-
[in] timernum Timer number [in] usec Time in microseconds
- Returns:
- The number of required clock ticks to give the time delay
Definition at line 89 of file lpc17xx_timer.c.
uint32_t TIM_GetPClock | ( | uint32_t | timernum | ) |
Get peripheral clock of each timer controller.
- Parameters:
-
[in] timernum Timer number
- Returns:
- Peripheral clock of timer
Definition at line 58 of file lpc17xx_timer.c.
Generated on Mon Feb 8 10:01:49 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9