Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches
utimer_instance_t Struct Reference

#include <timer.h>

Data Fields

utimer_hwreg_thwreg
 Pointer to Hardware Register Map *‍/.
u32 prescaler_value
 Prescaler value *‍/.
u32 prescaler_enable
 Prescaler enable flag *‍/.
u32 self_restart
 Self restart enable flag *‍/.
u32 timer_limit
 Timer limit value *‍/.

Detailed Description

Timer instance. Holds the software registers and hardware pointer.

Note
This structure holds configuration values to be applied to the hardware.
  • prescaler_value: Clock divider value.
  • prescaler_enable: Prescaler enable flag (1 = enabled, 0 = disabled).
  • self_restart: Self-restart enable flag (1 = enabled, 0 = disabled).
  • timer_limit: Timer limit (reload) value.
  • To apply the changes, please call utimer_applyConfig() after modifying the configuration fields.

Definition at line 104 of file timer.h.

Field Documentation

◆ hwreg

utimer_hwreg_t* utimer_instance_t::hwreg

Pointer to Hardware Register Map *‍/.

Definition at line 106 of file timer.h.

◆ prescaler_enable

u32 utimer_instance_t::prescaler_enable

Prescaler enable flag *‍/.

Definition at line 108 of file timer.h.

◆ prescaler_value

u32 utimer_instance_t::prescaler_value

Prescaler value *‍/.

Definition at line 107 of file timer.h.

◆ self_restart

u32 utimer_instance_t::self_restart

Self restart enable flag *‍/.

Definition at line 109 of file timer.h.

◆ timer_limit

u32 utimer_instance_t::timer_limit

Timer limit value *‍/.

Definition at line 110 of file timer.h.


The documentation for this struct was generated from the following file:
  • C:/Users/JasonLau/Downloads/workspace_local/GitLab/efx_IP/efx_soc_rv64/embedded_sw/software/standalone/driver/timer/timer.h