| CMSIS-Core (Cortex-A) CMSIS-Core support for Cortex-A processor-based devices |

Loading...
Searching...
No Matches
Data Structures | Macros | Functions
Private Timer Functions
Core Peripherals

Private Timer Functions controls private timer registers present on Cortex-A5 and A9 class devices.
References: Cortex-A5 MPCore Technical Reference Manual, Cortex-A9 MPCore Technical Reference Manual. More...

## Data Structures
struct | Timer_Type
| Structure type to access the Private Timer. More...

## Macros
#define | PTIM ((Timer_Type *) TIMER_BASE )
| Timer register struct.

## Functions
__STATIC_INLINE void | PTIM_SetLoadValue (uint32_t value)
| Set the load value to timers LOAD register.
__STATIC_INLINE uint32_t | PTIM_GetLoadValue (void)
| Get the load value from timers LOAD register.
__STATIC_INLINE uint32_t | PTIM_GetCurrentValue (void)
| Get current counter value from timers COUNTER register.
__STATIC_INLINE void | PTIM_SetControl (uint32_t value)
| Configure the timer using its CONTROL register.
__STATIC_INLINE uint32_t | PTIM_GetControl (void)
__STATIC_INLINE void | PTIM_ClearEventFlag (void)

## Description

Private Timer Functions controls private timer registers present on Cortex-A5 and A9 class devices.
References: Cortex-A5 MPCore Technical Reference Manual, Cortex-A9 MPCore Technical Reference Manual.

## Macro Definition Documentation

## ◆ PTIM

#define PTIM ((Timer_Type *) TIMER_BASE )

Timer register struct.

## Function Documentation

## ◆ PTIM_ClearEventFlag()

__STATIC_INLINE void PTIM_ClearEventFlag | ( | void |  | ) |

ref Timer_Type::CONTROL Clears the event flag in timers ISR register.

## ◆ PTIM_GetControl()

__STATIC_INLINE uint32_t PTIM_GetControl | ( | void |  | ) |

ref Timer_Type::CONTROL Get the current timer configuration from its CONTROL register.

Returns
  Timer_Type::CONTROL

## ◆ PTIM_GetCurrentValue()

__STATIC_INLINE uint32_t PTIM_GetCurrentValue | ( | void |  | ) |

Get current counter value from timers COUNTER register.

Returns
  Timer_Type::COUNTER

## ◆ PTIM_GetLoadValue()

__STATIC_INLINE uint32_t PTIM_GetLoadValue | ( | void |  | ) |

Get the load value from timers LOAD register.

Returns
  Timer_Type::LOAD

## ◆ PTIM_SetControl()

__STATIC_INLINE void PTIM_SetControl | ( | uint32_t | value | ) |

Configure the timer using its CONTROL register.

Parameters

  [in] | value | The new configuration value to be set.

## ◆ PTIM_SetLoadValue()

__STATIC_INLINE void PTIM_SetLoadValue | ( | uint32_t | value | ) |

Set the load value to timers LOAD register.

Parameters

  [in] | value | The load value to be set.