Hardware Libraries  20.1
Stratix 10 SoC Hardware Manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
alt_timers.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "hwlib.h"

Go to the source code of this file.

Detailed Description

Altera - Module Description

Typedefs

typedef enum ALT_GPT_TIMER_e ALT_GPT_TIMER_t
 
typedef enum ALT_GPT_RESTART_MODE_e ALT_GPT_RESTART_MODE_t
 

Enumerations

enum  ALT_GPT_TIMER_e {
  ALT_GPT_CPU_ES1_NSECURE_TMR, ALT_GPT_CPU_ES1_SECURE_TMR, ALT_GPT_CPU_EL2_NSECURE_TMR, ALT_GPT_CPU_VIRTUAL_TMR,
  ALT_GPT_OSC1_TMR0, ALT_GPT_OSC1_TMR1, ALT_GPT_SP_TMR0, ALT_GPT_SP_TMR1
}
 
enum  ALT_GPT_RESTART_MODE_e { ALT_GPT_RESTART_MODE_ONESHOT, ALT_GPT_RESTART_MODE_PERIODIC }
 

Functions

ALT_STATUS_CODE alt_gpt_all_tmr_uninit (void)
 
ALT_STATUS_CODE alt_gpt_all_tmr_init (void)
 
ALT_STATUS_CODE alt_gpt_tmr_stop (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_tmr_start (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_tmr_is_running (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_tmr_reset (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_counter_set (ALT_GPT_TIMER_t tmr_id, uint32_t val)
 
uint64_t alt_gpt_counter_get (ALT_GPT_TIMER_t tmr_id)
 
uint32_t alt_gpt_reset_value_get (ALT_GPT_TIMER_t tmr_id)
 
uint32_t alt_gpt_maxcounter_get (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_prescaler_set (ALT_GPT_TIMER_t tmr_id, uint32_t val)
 
uint32_t alt_gpt_prescaler_get (ALT_GPT_TIMER_t tmr_id)
 
uint32_t alt_gpt_freq_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_time_get (ALT_GPT_TIMER_t tmr_id)
 
uint32_t alt_gpt_delay_ns (ALT_GPT_TIMER_t tmr_id, uint32_t start_counter, uint32_t nanoseconds)
 
uint64_t alt_gpt_time_millisecs_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_time_microsecs_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_curtime_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_curtime_millisecs_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_curtime_microsecs_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_curtime_nanosecs_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_maxtime_get (ALT_GPT_TIMER_t tmr_id)
 
uint64_t alt_gpt_maxtime_millisecs_get (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_int_disable (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_int_enable (ALT_GPT_TIMER_t tmr_id)
 
bool alt_gpt_int_is_enabled (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_int_clear_pending (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_int_is_pending (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_int_if_pending_clear (ALT_GPT_TIMER_t tmr_id)
 
ALT_STATUS_CODE alt_gpt_mode_set (ALT_GPT_TIMER_t tmr_id, ALT_GPT_RESTART_MODE_t mode)
 
int32_t alt_gpt_mode_get (ALT_GPT_TIMER_t tmr_id)