This file provides interface to Timing for XRAN.
More...
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
Go to the source code of this file.
This file provides interface to Timing for XRAN.
- Author
- Intel Corporation
Definition in file xran_timer.h.
◆ MSEC_PER_SEC
#define MSEC_PER_SEC 1000L |
◆ XranDecrementSymIdx
#define XranDecrementSymIdx |
( |
|
sym_idx, |
|
|
|
numSymPerMs |
|
) |
| (((uint32_t)sym_idx == 0) ? (((uint32_t)numSymPerMs * MSEC_PER_SEC)) - 1) : (uint32_t)sym_idx-1) |
◆ XranIncrementSymIdx
#define XranIncrementSymIdx |
( |
|
sym_idx, |
|
|
|
numSymPerMs |
|
) |
| (((uint32_t)sym_idx >= (((uint32_t)numSymPerMs * MSEC_PER_SEC) - 1)) ? 0 : (uint32_t)sym_idx+1) |
◆ get_ticks_diff()
unsigned long get_ticks_diff |
( |
unsigned long |
curr_tick, |
|
|
unsigned long |
last_tick |
|
) |
| |
◆ poll_next_tick()
long poll_next_tick |
( |
long |
interval_ns, |
|
|
unsigned long * |
used_tick |
|
) |
| |
◆ sleep_next_tick()
long sleep_next_tick |
( |
long |
interval | ) |
|
◆ timing_get_current_second()
uint64_t timing_get_current_second |
( |
void |
| ) |
|
|
inline |
◆ timing_get_debug_stop()
int timing_get_debug_stop |
( |
void |
| ) |
|
◆ timing_set_debug_stop()
int timing_set_debug_stop |
( |
int |
value, |
|
|
int |
count |
|
) |
| |
◆ timing_set_numerology()
int timing_set_numerology |
( |
uint8_t |
value | ) |
|
◆ xran_tick()
uint64_t xran_tick |
( |
void |
| ) |
|