|
GNU Radio's RTP Package
|
#include <pthread.h>#include <stdint.h>#include <limits.h>#include <complex.h>#include <math.h>#include <stdlib.h>#include <stdbool.h>#include <sys/errno.h>#include <assert.h>#include <sys/types.h>#include <malloc.h>Go to the source code of this file.
Classes | |
| struct | xoshiro256ss_state |
Macros | |
| #define | _GNU_SOURCE 1 |
| #define | VERSION() |
| #define | ASSERT_ZEROED(ptr, size) |
| #define | DEGPRA (180./M_PI) |
| #define | RAPDEG (M_PI/180.) |
| #define | TAI_GPS_OFFSET (19) |
| #define | GPS_UTC_OFFSET (18) |
| #define | TAI_UTC_OFFSET (TAI_GPS_OFFSET+GPS_UTC_OFFSET) |
| #define | UNIX_EPOCH ((time_t)315964800) |
| #define | BOLTZMANN (1.380649e-23) |
| #define | FULL_SAMPRATE (48000) |
| #define | pthread_setname(x) |
| #define | min(x, y) |
| #define | max(x, y) |
| #define | cisf(x) |
| #define | cispif(x) |
| #define | cis(x) |
| #define | cispi(x) |
| #define | FREE(p) |
Functions | |
| static void | ASSERT_UNLOCKED (pthread_mutex_t *mutex) |
| int | default_prio (void) |
| void | realtime (int prio) |
| int | norealtime (void) |
| void | stick_core (void) |
| void * | lmalloc (size_t size) |
| static int | init_recursive_mutex (pthread_mutex_t *m) |
| static double | dB2power (double x) |
| static double | power2dB (double x) |
| static double | dB2voltage (double x) |
| static double | voltage2dB (double x) |
| void | sincospi (double x, double *s, double *c) |
| void | sincospif (float x, float *s, float *c) |
| static double | sinc (double x) |
| int | dist_path (char *path, int path_len, const char *fname) |
| char * | format_gpstime (char *result, int len, int64_t t) |
| char * | format_gpstime_iso8601 (char *result, int len, int64_t t) |
| char * | format_utctime (char *result, int len, int64_t t) |
| char * | format_utctime_iso8601 (char *result, int len, int64_t t) |
| char * | ftime (char *result, int size, int64_t t) |
| void | normalize_time (struct timespec *x) |
| uint32_t | nextfastfft (uint32_t n) |
| ssize_t | pipefill (int, void *, size_t) |
| void | chomp (char *) |
| char * | ensure_suffix (char const *str, char const *suffix) |
| uint32_t | ElfHash (uint8_t const *s, size_t length) |
| uint32_t | ElfHashString (char const *s) |
| uint32_t | fnv1hash (const uint8_t *s, size_t length) |
| double | i0 (double const z) |
| double | i1 (double const z) |
| double | xi (double thetasq) |
| double | fm_snr (double r) |
| static int16_t | scaleclip (float const x) |
| static float complex | csincosf (float const x) |
| static float complex | csincospif (float const x) |
| static double complex | csincos (double const x) |
| static double complex | csincospi (double const x) |
| static float | cnrmf (float complex const x) |
| static double | cnrm (double complex const x) |
| static double | approx_magf (double complex x) |
| static void | time_sub (struct timespec *result, struct timespec const *a, struct timespec const *b) |
| static void | time_add (struct timespec *result, struct timespec const *a, struct timespec const *b) |
| static int | time_cmp (struct timespec const *a, struct timespec const *b) |
| static int64_t | ts2ns (struct timespec const *ts) |
| static void | ns2ts (struct timespec *ts, int64_t ns) |
| static time_t | utc_time_sec (void) |
| static time_t | gps_time_sec (void) |
| static int64_t | utc_time_ns (void) |
| int64_t | gps_time_ns (void) |
| void * | mirror_alloc (size_t size) |
| void | mirror_free (void **p, size_t size) |
| static void | mirror_wrap (void const **p, void const *const base, size_t const size) |
| size_t | round_to_page (size_t size) |
| uint32_t | round2 (uint32_t v) |
| void | drop_cache (void *mem, size_t bytes) |
| void | xoshiro256ss_seed (xoshiro256ss_state *st, uint64_t seed) |
| uint64_t | xoshiro256ss_next (xoshiro256ss_state *st) |
| void | xoshiro256ss_jump (xoshiro256ss_state *st) |
| void | rand_init (void) |
| double | real_gauss (void) |
| static double complex | complex_gauss (void) |
Variables | |
| static float const | SCALE16 = 1.f/INT16_MAX |
| static float const | SCALE12 = 1.f/2048. |
| static float const | SCALE8 = 1.f/INT8_MAX |
| const char * | App_path |
| int | Verbose |
| char const * | Months [12] |
| bool | Affinity |
| static int64_t const | BILLION = 1000000000LL |
| static int const | MILLION = 1000000 |
| static int const | THOUSAND = 1000 |
| #define _GNU_SOURCE 1 |
| #define ASSERT_ZEROED | ( | ptr, | |
| size ) |
| #define BOLTZMANN (1.380649e-23) |
| #define cis | ( | x | ) |
| #define cisf | ( | x | ) |
| #define cispi | ( | x | ) |
| #define cispif | ( | x | ) |
| #define DEGPRA (180./M_PI) |
| #define FREE | ( | p | ) |
| #define FULL_SAMPRATE (48000) |
| #define GPS_UTC_OFFSET (18) |
Referenced by gps_time_sec().
| #define max | ( | x, | |
| y ) |
Referenced by approx_magf().
| #define min | ( | x, | |
| y ) |
Referenced by approx_magf().
| #define pthread_setname | ( | x | ) |
| #define RAPDEG (M_PI/180.) |
| #define TAI_GPS_OFFSET (19) |
| #define TAI_UTC_OFFSET (TAI_GPS_OFFSET+GPS_UTC_OFFSET) |
| #define UNIX_EPOCH ((time_t)315964800) |
Referenced by gps_time_sec().
| #define VERSION | ( | ) |
|
inlinestatic |
| void chomp | ( | char * | ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References real_gauss().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References sincospi().
|
inlinestatic |
References sincospif().
|
inlinestatic |
|
inlinestatic |
| int default_prio | ( | void | ) |
| int dist_path | ( | char * | path, |
| int | path_len, | ||
| const char * | fname ) |
| void drop_cache | ( | void * | mem, |
| size_t | bytes ) |
| uint32_t ElfHash | ( | uint8_t const * | s, |
| size_t | length ) |
| uint32_t ElfHashString | ( | char const * | s | ) |
| char * ensure_suffix | ( | char const * | str, |
| char const * | suffix ) |
| double fm_snr | ( | double | r | ) |
| uint32_t fnv1hash | ( | const uint8_t * | s, |
| size_t | length ) |
| char * format_gpstime | ( | char * | result, |
| int | len, | ||
| int64_t | t ) |
| char * format_gpstime_iso8601 | ( | char * | result, |
| int | len, | ||
| int64_t | t ) |
| char * format_utctime | ( | char * | result, |
| int | len, | ||
| int64_t | t ) |
| char * format_utctime_iso8601 | ( | char * | result, |
| int | len, | ||
| int64_t | t ) |
| char * ftime | ( | char * | result, |
| int | size, | ||
| int64_t | t ) |
| int64_t gps_time_ns | ( | void | ) |
|
inlinestatic |
References GPS_UTC_OFFSET, UNIX_EPOCH, and utc_time_sec().
| double i0 | ( | double const | z | ) |
| double i1 | ( | double const | z | ) |
|
inlinestatic |
| void * lmalloc | ( | size_t | size | ) |
| void * mirror_alloc | ( | size_t | size | ) |
| void mirror_free | ( | void ** | p, |
| size_t | size ) |
|
inlinestatic |
| uint32_t nextfastfft | ( | uint32_t | n | ) |
| int norealtime | ( | void | ) |
| void normalize_time | ( | struct timespec * | x | ) |
Referenced by time_add(), and time_sub().
|
inlinestatic |
References BILLION.
| ssize_t pipefill | ( | int | , |
| void * | , | ||
| size_t | ) |
|
inlinestatic |
| void rand_init | ( | void | ) |
| double real_gauss | ( | void | ) |
Referenced by complex_gauss().
| void realtime | ( | int | prio | ) |
| uint32_t round2 | ( | uint32_t | v | ) |
| size_t round_to_page | ( | size_t | size | ) |
|
inlinestatic |
|
inlinestatic |
| void sincospi | ( | double | x, |
| double * | s, | ||
| double * | c ) |
Referenced by csincospi().
| void sincospif | ( | float | x, |
| float * | s, | ||
| float * | c ) |
Referenced by csincospif().
| void stick_core | ( | void | ) |
|
inlinestatic |
References normalize_time().
|
inlinestatic |
|
inlinestatic |
References normalize_time().
|
inlinestatic |
References BILLION.
Referenced by utc_time_ns().
|
inlinestatic |
References ts2ns().
|
inlinestatic |
Referenced by gps_time_sec().
|
inlinestatic |
| double xi | ( | double | thetasq | ) |
| void xoshiro256ss_jump | ( | xoshiro256ss_state * | st | ) |
| uint64_t xoshiro256ss_next | ( | xoshiro256ss_state * | st | ) |
| void xoshiro256ss_seed | ( | xoshiro256ss_state * | st, |
| uint64_t | seed ) |
|
extern |
|
extern |
|
static |
|
extern |
|
static |
|
static |
|
static |
|
static |
|
extern |