mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 20:50:33 +00:00
Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into next
This commit is contained in:
commit
622786aed1
@ -54,9 +54,10 @@ galileo_pcps_8ms_acquisition_cc::galileo_pcps_8ms_acquisition_cc(
|
||||
unsigned int sampled_ms, unsigned int max_dwells,
|
||||
unsigned int doppler_max, long freq, long fs_in,
|
||||
int samples_per_ms, int samples_per_code,
|
||||
bool dump, std::string dump_filename) : gr::block("galileo_pcps_8ms_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
bool dump,
|
||||
std::string dump_filename) : gr::block("galileo_pcps_8ms_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
{
|
||||
this->message_port_register_out(pmt::mp("events"));
|
||||
d_sample_counter = 0; // SAMPLE COUNTER
|
||||
|
@ -71,9 +71,7 @@ gps_pcps_acquisition_fpga_sc::gps_pcps_acquisition_fpga_sc(
|
||||
int samples_per_code, int vector_length, unsigned int nsamples_total,
|
||||
bool bit_transition_flag, bool use_CFAR_algorithm_flag,
|
||||
unsigned int select_queue_Fpga, std::string device_name, bool dump,
|
||||
std::string dump_filename) :
|
||||
|
||||
gr::block("pcps_acquisition_fpga_sc",
|
||||
std::string dump_filename) : gr::block("pcps_acquisition_fpga_sc",
|
||||
gr::io_signature::make(0, 0, sizeof(lv_16sc_t)),
|
||||
gr::io_signature::make(0, 0, 0))
|
||||
{
|
||||
|
@ -65,9 +65,10 @@ pcps_acquisition::pcps_acquisition(
|
||||
int samples_per_ms, int samples_per_code,
|
||||
bool bit_transition_flag, bool use_CFAR_algorithm_flag,
|
||||
bool dump, bool blocking,
|
||||
std::string dump_filename, size_t it_size) : gr::block("pcps_acquisition",
|
||||
gr::io_signature::make(1, 1, it_size * sampled_ms * samples_per_ms * (bit_transition_flag ? 2 : 1)),
|
||||
gr::io_signature::make(0, 0, it_size * sampled_ms * samples_per_ms * (bit_transition_flag ? 2 : 1)))
|
||||
std::string dump_filename,
|
||||
size_t it_size) : gr::block("pcps_acquisition",
|
||||
gr::io_signature::make(1, 1, it_size * sampled_ms * samples_per_ms * (bit_transition_flag ? 2 : 1)),
|
||||
gr::io_signature::make(0, 0, it_size * sampled_ms * samples_per_ms * (bit_transition_flag ? 2 : 1)))
|
||||
{
|
||||
this->message_port_register_out(pmt::mp("events"));
|
||||
|
||||
|
@ -61,9 +61,10 @@ pcps_cccwsr_acquisition_cc::pcps_cccwsr_acquisition_cc(
|
||||
unsigned int sampled_ms, unsigned int max_dwells,
|
||||
unsigned int doppler_max, long freq, long fs_in,
|
||||
int samples_per_ms, int samples_per_code,
|
||||
bool dump, std::string dump_filename) : gr::block("pcps_cccwsr_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
bool dump,
|
||||
std::string dump_filename) : gr::block("pcps_cccwsr_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
{
|
||||
this->message_port_register_out(pmt::mp("events"));
|
||||
d_sample_counter = 0; // SAMPLE COUNTER
|
||||
|
@ -67,9 +67,10 @@ pcps_quicksync_acquisition_cc::pcps_quicksync_acquisition_cc(
|
||||
unsigned int doppler_max, long freq, long fs_in,
|
||||
int samples_per_ms, int samples_per_code,
|
||||
bool bit_transition_flag,
|
||||
bool dump, std::string dump_filename) : gr::block("pcps_quicksync_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, (sizeof(gr_complex) * sampled_ms * samples_per_ms)),
|
||||
gr::io_signature::make(0, 0, (sizeof(gr_complex) * sampled_ms * samples_per_ms)))
|
||||
bool dump,
|
||||
std::string dump_filename) : gr::block("pcps_quicksync_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, (sizeof(gr_complex) * sampled_ms * samples_per_ms)),
|
||||
gr::io_signature::make(0, 0, (sizeof(gr_complex) * sampled_ms * samples_per_ms)))
|
||||
{
|
||||
this->message_port_register_out(pmt::mp("events"));
|
||||
d_sample_counter = 0; // SAMPLE COUNTER
|
||||
|
@ -76,9 +76,10 @@ pcps_tong_acquisition_cc::pcps_tong_acquisition_cc(
|
||||
long freq, long fs_in, int samples_per_ms,
|
||||
int samples_per_code, unsigned int tong_init_val,
|
||||
unsigned int tong_max_val, unsigned int tong_max_dwells,
|
||||
bool dump, std::string dump_filename) : gr::block("pcps_tong_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
bool dump,
|
||||
std::string dump_filename) : gr::block("pcps_tong_acquisition_cc",
|
||||
gr::io_signature::make(1, 1, sizeof(gr_complex) * sampled_ms * samples_per_ms),
|
||||
gr::io_signature::make(0, 0, sizeof(gr_complex) * sampled_ms * samples_per_ms))
|
||||
{
|
||||
this->message_port_register_out(pmt::mp("events"));
|
||||
d_sample_counter = 0; // SAMPLE COUNTER
|
||||
|
@ -50,85 +50,86 @@
|
||||
#define __CLFFT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/opencl.h>
|
||||
#include <OpenCL/opencl.h>
|
||||
#else
|
||||
#include <CL/cl.h>
|
||||
#include <CL/cl.h>
|
||||
#endif
|
||||
|
||||
// XForm type
|
||||
typedef enum
|
||||
{
|
||||
clFFT_Forward = -1,
|
||||
clFFT_Inverse = 1
|
||||
|
||||
}clFFT_Direction;
|
||||
// XForm type
|
||||
typedef enum
|
||||
{
|
||||
clFFT_Forward = -1,
|
||||
clFFT_Inverse = 1
|
||||
|
||||
// XForm dimension
|
||||
typedef enum
|
||||
{
|
||||
clFFT_1D = 0,
|
||||
clFFT_2D = 1,
|
||||
clFFT_3D = 3
|
||||
|
||||
}clFFT_Dimension;
|
||||
} clFFT_Direction;
|
||||
|
||||
// XForm Data type
|
||||
typedef enum
|
||||
{
|
||||
clFFT_SplitComplexFormat = 0,
|
||||
clFFT_InterleavedComplexFormat = 1
|
||||
}clFFT_DataFormat;
|
||||
// XForm dimension
|
||||
typedef enum
|
||||
{
|
||||
clFFT_1D = 0,
|
||||
clFFT_2D = 1,
|
||||
clFFT_3D = 3
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned int x;
|
||||
unsigned int y;
|
||||
unsigned int z;
|
||||
}clFFT_Dim3;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float *real;
|
||||
float *imag;
|
||||
} clFFT_SplitComplex;
|
||||
} clFFT_Dimension;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float real;
|
||||
float imag;
|
||||
}clFFT_Complex;
|
||||
// XForm Data type
|
||||
typedef enum
|
||||
{
|
||||
clFFT_SplitComplexFormat = 0,
|
||||
clFFT_InterleavedComplexFormat = 1
|
||||
} clFFT_DataFormat;
|
||||
|
||||
typedef void* clFFT_Plan;
|
||||
typedef struct
|
||||
{
|
||||
unsigned int x;
|
||||
unsigned int y;
|
||||
unsigned int z;
|
||||
} clFFT_Dim3;
|
||||
|
||||
clFFT_Plan clFFT_CreatePlan( cl_context context, clFFT_Dim3 n, clFFT_Dimension dim, clFFT_DataFormat dataFormat, cl_int *error_code );
|
||||
typedef struct
|
||||
{
|
||||
float *real;
|
||||
float *imag;
|
||||
} clFFT_SplitComplex;
|
||||
|
||||
void clFFT_DestroyPlan( clFFT_Plan plan );
|
||||
typedef struct
|
||||
{
|
||||
float real;
|
||||
float imag;
|
||||
} clFFT_Complex;
|
||||
|
||||
cl_int clFFT_ExecuteInterleaved( cl_command_queue queue, clFFT_Plan plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in, cl_mem data_out,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event );
|
||||
typedef void *clFFT_Plan;
|
||||
|
||||
cl_int clFFT_ExecutePlannar( cl_command_queue queue, clFFT_Plan plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in_real, cl_mem data_in_imag, cl_mem data_out_real, cl_mem data_out_imag,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event );
|
||||
clFFT_Plan clFFT_CreatePlan(cl_context context, clFFT_Dim3 n, clFFT_Dimension dim, clFFT_DataFormat dataFormat, cl_int *error_code);
|
||||
|
||||
cl_int clFFT_1DTwistInterleaved(clFFT_Plan Plan, cl_command_queue queue, cl_mem array,
|
||||
size_t numRows, size_t numCols, size_t startRow, size_t rowsToProcess, clFFT_Direction dir);
|
||||
|
||||
void clFFT_DestroyPlan(clFFT_Plan plan);
|
||||
|
||||
cl_int clFFT_1DTwistPlannar(clFFT_Plan Plan, cl_command_queue queue, cl_mem array_real, cl_mem array_imag,
|
||||
size_t numRows, size_t numCols, size_t startRow, size_t rowsToProcess, clFFT_Direction dir);
|
||||
|
||||
void clFFT_DumpPlan( clFFT_Plan plan, FILE *file);
|
||||
cl_int clFFT_ExecuteInterleaved(cl_command_queue queue, clFFT_Plan plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in, cl_mem data_out,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event);
|
||||
|
||||
cl_int clFFT_ExecutePlannar(cl_command_queue queue, clFFT_Plan plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in_real, cl_mem data_in_imag, cl_mem data_out_real, cl_mem data_out_imag,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event);
|
||||
|
||||
cl_int clFFT_1DTwistInterleaved(clFFT_Plan Plan, cl_command_queue queue, cl_mem array,
|
||||
size_t numRows, size_t numCols, size_t startRow, size_t rowsToProcess, clFFT_Direction dir);
|
||||
|
||||
|
||||
cl_int clFFT_1DTwistPlannar(clFFT_Plan Plan, cl_command_queue queue, cl_mem array_real, cl_mem array_imag,
|
||||
size_t numRows, size_t numCols, size_t startRow, size_t rowsToProcess, clFFT_Direction dir);
|
||||
|
||||
void clFFT_DumpPlan(clFFT_Plan plan, FILE *file);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -54,224 +54,220 @@
|
||||
using namespace std;
|
||||
|
||||
static string baseKernels = string(
|
||||
"#ifndef M_PI\n"
|
||||
"#define M_PI 0x1.921fb54442d18p+1\n"
|
||||
"#endif\n"
|
||||
"#define complexMul(a,b) ((float2)(mad(-(a).y, (b).y, (a).x * (b).x), mad((a).y, (b).x, (a).x * (b).y)))\n"
|
||||
"#define conj(a) ((float2)((a).x, -(a).y))\n"
|
||||
"#define conjTransp(a) ((float2)(-(a).y, (a).x))\n"
|
||||
"\n"
|
||||
"#define fftKernel2(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c = (a)[0]; \\\n"
|
||||
" (a)[0] = c + (a)[1]; \\\n"
|
||||
" (a)[1] = c - (a)[1]; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel2S(d1,d2,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c = (d1); \\\n"
|
||||
" (d1) = c + (d2); \\\n"
|
||||
" (d2) = c - (d2); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel4(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a)[0], (a)[2], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[1], dir); \\\n"
|
||||
" (a)[3] = (float2)(dir)*(conjTransp((a)[3])); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[3], dir); \\\n"
|
||||
" float2 c = (a)[1]; \\\n"
|
||||
" (a)[1] = (a)[2]; \\\n"
|
||||
" (a)[2] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel4s(a0,a1,a2,a3,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a0), (a2), dir); \\\n"
|
||||
" fftKernel2S((a1), (a3), dir); \\\n"
|
||||
" fftKernel2S((a0), (a1), dir); \\\n"
|
||||
" (a3) = (float2)(dir)*(conjTransp((a3))); \\\n"
|
||||
" fftKernel2S((a2), (a3), dir); \\\n"
|
||||
" float2 c = (a1); \\\n"
|
||||
" (a1) = (a2); \\\n"
|
||||
" (a2) = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse8(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c; \\\n"
|
||||
" c = (a)[1]; \\\n"
|
||||
" (a)[1] = (a)[4]; \\\n"
|
||||
" (a)[4] = c; \\\n"
|
||||
" c = (a)[3]; \\\n"
|
||||
" (a)[3] = (a)[6]; \\\n"
|
||||
" (a)[6] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel8(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" const float2 w1 = (float2)(0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f); \\\n"
|
||||
" const float2 w3 = (float2)(-0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f); \\\n"
|
||||
" float2 c; \\\n"
|
||||
" fftKernel2S((a)[0], (a)[4], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[5], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[6], dir); \\\n"
|
||||
" fftKernel2S((a)[3], (a)[7], dir); \\\n"
|
||||
" (a)[5] = complexMul(w1, (a)[5]); \\\n"
|
||||
" (a)[6] = (float2)(dir)*(conjTransp((a)[6])); \\\n"
|
||||
" (a)[7] = complexMul(w3, (a)[7]); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[2], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[6], dir); \\\n"
|
||||
" fftKernel2S((a)[5], (a)[7], dir); \\\n"
|
||||
" (a)[3] = (float2)(dir)*(conjTransp((a)[3])); \\\n"
|
||||
" (a)[7] = (float2)(dir)*(conjTransp((a)[7])); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[1], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[5], dir); \\\n"
|
||||
" fftKernel2S((a)[6], (a)[7], dir); \\\n"
|
||||
" bitreverse8((a)); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse4x4(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c; \\\n"
|
||||
" c = (a)[1]; (a)[1] = (a)[4]; (a)[4] = c; \\\n"
|
||||
" c = (a)[2]; (a)[2] = (a)[8]; (a)[8] = c; \\\n"
|
||||
" c = (a)[3]; (a)[3] = (a)[12]; (a)[12] = c; \\\n"
|
||||
" c = (a)[6]; (a)[6] = (a)[9]; (a)[9] = c; \\\n"
|
||||
" c = (a)[7]; (a)[7] = (a)[13]; (a)[13] = c; \\\n"
|
||||
" c = (a)[11]; (a)[11] = (a)[14]; (a)[14] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel16(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" const float w0 = 0x1.d906bcp-1f; \\\n"
|
||||
" const float w1 = 0x1.87de2ap-2f; \\\n"
|
||||
" const float w2 = 0x1.6a09e6p-1f; \\\n"
|
||||
" fftKernel4s((a)[0], (a)[4], (a)[8], (a)[12], dir); \\\n"
|
||||
" fftKernel4s((a)[1], (a)[5], (a)[9], (a)[13], dir); \\\n"
|
||||
" fftKernel4s((a)[2], (a)[6], (a)[10], (a)[14], dir); \\\n"
|
||||
" fftKernel4s((a)[3], (a)[7], (a)[11], (a)[15], dir); \\\n"
|
||||
" (a)[5] = complexMul((a)[5], (float2)(w0, dir*w1)); \\\n"
|
||||
" (a)[6] = complexMul((a)[6], (float2)(w2, dir*w2)); \\\n"
|
||||
" (a)[7] = complexMul((a)[7], (float2)(w1, dir*w0)); \\\n"
|
||||
" (a)[9] = complexMul((a)[9], (float2)(w2, dir*w2)); \\\n"
|
||||
" (a)[10] = (float2)(dir)*(conjTransp((a)[10])); \\\n"
|
||||
" (a)[11] = complexMul((a)[11], (float2)(-w2, dir*w2)); \\\n"
|
||||
" (a)[13] = complexMul((a)[13], (float2)(w1, dir*w0)); \\\n"
|
||||
" (a)[14] = complexMul((a)[14], (float2)(-w2, dir*w2)); \\\n"
|
||||
" (a)[15] = complexMul((a)[15], (float2)(-w0, dir*-w1)); \\\n"
|
||||
" fftKernel4((a), dir); \\\n"
|
||||
" fftKernel4((a) + 4, dir); \\\n"
|
||||
" fftKernel4((a) + 8, dir); \\\n"
|
||||
" fftKernel4((a) + 12, dir); \\\n"
|
||||
" bitreverse4x4((a)); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse32(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c1, c2; \\\n"
|
||||
" c1 = (a)[2]; (a)[2] = (a)[1]; c2 = (a)[4]; (a)[4] = c1; c1 = (a)[8]; (a)[8] = c2; c2 = (a)[16]; (a)[16] = c1; (a)[1] = c2; \\\n"
|
||||
" c1 = (a)[6]; (a)[6] = (a)[3]; c2 = (a)[12]; (a)[12] = c1; c1 = (a)[24]; (a)[24] = c2; c2 = (a)[17]; (a)[17] = c1; (a)[3] = c2; \\\n"
|
||||
" c1 = (a)[10]; (a)[10] = (a)[5]; c2 = (a)[20]; (a)[20] = c1; c1 = (a)[9]; (a)[9] = c2; c2 = (a)[18]; (a)[18] = c1; (a)[5] = c2; \\\n"
|
||||
" c1 = (a)[14]; (a)[14] = (a)[7]; c2 = (a)[28]; (a)[28] = c1; c1 = (a)[25]; (a)[25] = c2; c2 = (a)[19]; (a)[19] = c1; (a)[7] = c2; \\\n"
|
||||
" c1 = (a)[22]; (a)[22] = (a)[11]; c2 = (a)[13]; (a)[13] = c1; c1 = (a)[26]; (a)[26] = c2; c2 = (a)[21]; (a)[21] = c1; (a)[11] = c2; \\\n"
|
||||
" c1 = (a)[30]; (a)[30] = (a)[15]; c2 = (a)[29]; (a)[29] = c1; c1 = (a)[27]; (a)[27] = c2; c2 = (a)[23]; (a)[23] = c1; (a)[15] = c2; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel32(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a)[0], (a)[16], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[17], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[18], dir); \\\n"
|
||||
" fftKernel2S((a)[3], (a)[19], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[20], dir); \\\n"
|
||||
" fftKernel2S((a)[5], (a)[21], dir); \\\n"
|
||||
" fftKernel2S((a)[6], (a)[22], dir); \\\n"
|
||||
" fftKernel2S((a)[7], (a)[23], dir); \\\n"
|
||||
" fftKernel2S((a)[8], (a)[24], dir); \\\n"
|
||||
" fftKernel2S((a)[9], (a)[25], dir); \\\n"
|
||||
" fftKernel2S((a)[10], (a)[26], dir); \\\n"
|
||||
" fftKernel2S((a)[11], (a)[27], dir); \\\n"
|
||||
" fftKernel2S((a)[12], (a)[28], dir); \\\n"
|
||||
" fftKernel2S((a)[13], (a)[29], dir); \\\n"
|
||||
" fftKernel2S((a)[14], (a)[30], dir); \\\n"
|
||||
" fftKernel2S((a)[15], (a)[31], dir); \\\n"
|
||||
" (a)[17] = complexMul((a)[17], (float2)(0x1.f6297cp-1f, dir*0x1.8f8b84p-3f)); \\\n"
|
||||
" (a)[18] = complexMul((a)[18], (float2)(0x1.d906bcp-1f, dir*0x1.87de2ap-2f)); \\\n"
|
||||
" (a)[19] = complexMul((a)[19], (float2)(0x1.a9b662p-1f, dir*0x1.1c73b4p-1f)); \\\n"
|
||||
" (a)[20] = complexMul((a)[20], (float2)(0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f)); \\\n"
|
||||
" (a)[21] = complexMul((a)[21], (float2)(0x1.1c73b4p-1f, dir*0x1.a9b662p-1f)); \\\n"
|
||||
" (a)[22] = complexMul((a)[22], (float2)(0x1.87de2ap-2f, dir*0x1.d906bcp-1f)); \\\n"
|
||||
" (a)[23] = complexMul((a)[23], (float2)(0x1.8f8b84p-3f, dir*0x1.f6297cp-1f)); \\\n"
|
||||
" (a)[24] = complexMul((a)[24], (float2)(0x0p+0f, dir*0x1p+0f)); \\\n"
|
||||
" (a)[25] = complexMul((a)[25], (float2)(-0x1.8f8b84p-3f, dir*0x1.f6297cp-1f)); \\\n"
|
||||
" (a)[26] = complexMul((a)[26], (float2)(-0x1.87de2ap-2f, dir*0x1.d906bcp-1f)); \\\n"
|
||||
" (a)[27] = complexMul((a)[27], (float2)(-0x1.1c73b4p-1f, dir*0x1.a9b662p-1f)); \\\n"
|
||||
" (a)[28] = complexMul((a)[28], (float2)(-0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f)); \\\n"
|
||||
" (a)[29] = complexMul((a)[29], (float2)(-0x1.a9b662p-1f, dir*0x1.1c73b4p-1f)); \\\n"
|
||||
" (a)[30] = complexMul((a)[30], (float2)(-0x1.d906bcp-1f, dir*0x1.87de2ap-2f)); \\\n"
|
||||
" (a)[31] = complexMul((a)[31], (float2)(-0x1.f6297cp-1f, dir*0x1.8f8b84p-3f)); \\\n"
|
||||
" fftKernel16((a), dir); \\\n"
|
||||
" fftKernel16((a) + 16, dir); \\\n"
|
||||
" bitreverse32((a)); \\\n"
|
||||
"}\n\n"
|
||||
);
|
||||
"#ifndef M_PI\n"
|
||||
"#define M_PI 0x1.921fb54442d18p+1\n"
|
||||
"#endif\n"
|
||||
"#define complexMul(a,b) ((float2)(mad(-(a).y, (b).y, (a).x * (b).x), mad((a).y, (b).x, (a).x * (b).y)))\n"
|
||||
"#define conj(a) ((float2)((a).x, -(a).y))\n"
|
||||
"#define conjTransp(a) ((float2)(-(a).y, (a).x))\n"
|
||||
"\n"
|
||||
"#define fftKernel2(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c = (a)[0]; \\\n"
|
||||
" (a)[0] = c + (a)[1]; \\\n"
|
||||
" (a)[1] = c - (a)[1]; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel2S(d1,d2,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c = (d1); \\\n"
|
||||
" (d1) = c + (d2); \\\n"
|
||||
" (d2) = c - (d2); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel4(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a)[0], (a)[2], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[1], dir); \\\n"
|
||||
" (a)[3] = (float2)(dir)*(conjTransp((a)[3])); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[3], dir); \\\n"
|
||||
" float2 c = (a)[1]; \\\n"
|
||||
" (a)[1] = (a)[2]; \\\n"
|
||||
" (a)[2] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel4s(a0,a1,a2,a3,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a0), (a2), dir); \\\n"
|
||||
" fftKernel2S((a1), (a3), dir); \\\n"
|
||||
" fftKernel2S((a0), (a1), dir); \\\n"
|
||||
" (a3) = (float2)(dir)*(conjTransp((a3))); \\\n"
|
||||
" fftKernel2S((a2), (a3), dir); \\\n"
|
||||
" float2 c = (a1); \\\n"
|
||||
" (a1) = (a2); \\\n"
|
||||
" (a2) = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse8(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c; \\\n"
|
||||
" c = (a)[1]; \\\n"
|
||||
" (a)[1] = (a)[4]; \\\n"
|
||||
" (a)[4] = c; \\\n"
|
||||
" c = (a)[3]; \\\n"
|
||||
" (a)[3] = (a)[6]; \\\n"
|
||||
" (a)[6] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel8(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" const float2 w1 = (float2)(0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f); \\\n"
|
||||
" const float2 w3 = (float2)(-0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f); \\\n"
|
||||
" float2 c; \\\n"
|
||||
" fftKernel2S((a)[0], (a)[4], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[5], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[6], dir); \\\n"
|
||||
" fftKernel2S((a)[3], (a)[7], dir); \\\n"
|
||||
" (a)[5] = complexMul(w1, (a)[5]); \\\n"
|
||||
" (a)[6] = (float2)(dir)*(conjTransp((a)[6])); \\\n"
|
||||
" (a)[7] = complexMul(w3, (a)[7]); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[2], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[6], dir); \\\n"
|
||||
" fftKernel2S((a)[5], (a)[7], dir); \\\n"
|
||||
" (a)[3] = (float2)(dir)*(conjTransp((a)[3])); \\\n"
|
||||
" (a)[7] = (float2)(dir)*(conjTransp((a)[7])); \\\n"
|
||||
" fftKernel2S((a)[0], (a)[1], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[3], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[5], dir); \\\n"
|
||||
" fftKernel2S((a)[6], (a)[7], dir); \\\n"
|
||||
" bitreverse8((a)); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse4x4(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c; \\\n"
|
||||
" c = (a)[1]; (a)[1] = (a)[4]; (a)[4] = c; \\\n"
|
||||
" c = (a)[2]; (a)[2] = (a)[8]; (a)[8] = c; \\\n"
|
||||
" c = (a)[3]; (a)[3] = (a)[12]; (a)[12] = c; \\\n"
|
||||
" c = (a)[6]; (a)[6] = (a)[9]; (a)[9] = c; \\\n"
|
||||
" c = (a)[7]; (a)[7] = (a)[13]; (a)[13] = c; \\\n"
|
||||
" c = (a)[11]; (a)[11] = (a)[14]; (a)[14] = c; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel16(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" const float w0 = 0x1.d906bcp-1f; \\\n"
|
||||
" const float w1 = 0x1.87de2ap-2f; \\\n"
|
||||
" const float w2 = 0x1.6a09e6p-1f; \\\n"
|
||||
" fftKernel4s((a)[0], (a)[4], (a)[8], (a)[12], dir); \\\n"
|
||||
" fftKernel4s((a)[1], (a)[5], (a)[9], (a)[13], dir); \\\n"
|
||||
" fftKernel4s((a)[2], (a)[6], (a)[10], (a)[14], dir); \\\n"
|
||||
" fftKernel4s((a)[3], (a)[7], (a)[11], (a)[15], dir); \\\n"
|
||||
" (a)[5] = complexMul((a)[5], (float2)(w0, dir*w1)); \\\n"
|
||||
" (a)[6] = complexMul((a)[6], (float2)(w2, dir*w2)); \\\n"
|
||||
" (a)[7] = complexMul((a)[7], (float2)(w1, dir*w0)); \\\n"
|
||||
" (a)[9] = complexMul((a)[9], (float2)(w2, dir*w2)); \\\n"
|
||||
" (a)[10] = (float2)(dir)*(conjTransp((a)[10])); \\\n"
|
||||
" (a)[11] = complexMul((a)[11], (float2)(-w2, dir*w2)); \\\n"
|
||||
" (a)[13] = complexMul((a)[13], (float2)(w1, dir*w0)); \\\n"
|
||||
" (a)[14] = complexMul((a)[14], (float2)(-w2, dir*w2)); \\\n"
|
||||
" (a)[15] = complexMul((a)[15], (float2)(-w0, dir*-w1)); \\\n"
|
||||
" fftKernel4((a), dir); \\\n"
|
||||
" fftKernel4((a) + 4, dir); \\\n"
|
||||
" fftKernel4((a) + 8, dir); \\\n"
|
||||
" fftKernel4((a) + 12, dir); \\\n"
|
||||
" bitreverse4x4((a)); \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define bitreverse32(a) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 c1, c2; \\\n"
|
||||
" c1 = (a)[2]; (a)[2] = (a)[1]; c2 = (a)[4]; (a)[4] = c1; c1 = (a)[8]; (a)[8] = c2; c2 = (a)[16]; (a)[16] = c1; (a)[1] = c2; \\\n"
|
||||
" c1 = (a)[6]; (a)[6] = (a)[3]; c2 = (a)[12]; (a)[12] = c1; c1 = (a)[24]; (a)[24] = c2; c2 = (a)[17]; (a)[17] = c1; (a)[3] = c2; \\\n"
|
||||
" c1 = (a)[10]; (a)[10] = (a)[5]; c2 = (a)[20]; (a)[20] = c1; c1 = (a)[9]; (a)[9] = c2; c2 = (a)[18]; (a)[18] = c1; (a)[5] = c2; \\\n"
|
||||
" c1 = (a)[14]; (a)[14] = (a)[7]; c2 = (a)[28]; (a)[28] = c1; c1 = (a)[25]; (a)[25] = c2; c2 = (a)[19]; (a)[19] = c1; (a)[7] = c2; \\\n"
|
||||
" c1 = (a)[22]; (a)[22] = (a)[11]; c2 = (a)[13]; (a)[13] = c1; c1 = (a)[26]; (a)[26] = c2; c2 = (a)[21]; (a)[21] = c1; (a)[11] = c2; \\\n"
|
||||
" c1 = (a)[30]; (a)[30] = (a)[15]; c2 = (a)[29]; (a)[29] = c1; c1 = (a)[27]; (a)[27] = c2; c2 = (a)[23]; (a)[23] = c1; (a)[15] = c2; \\\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define fftKernel32(a,dir) \\\n"
|
||||
"{ \\\n"
|
||||
" fftKernel2S((a)[0], (a)[16], dir); \\\n"
|
||||
" fftKernel2S((a)[1], (a)[17], dir); \\\n"
|
||||
" fftKernel2S((a)[2], (a)[18], dir); \\\n"
|
||||
" fftKernel2S((a)[3], (a)[19], dir); \\\n"
|
||||
" fftKernel2S((a)[4], (a)[20], dir); \\\n"
|
||||
" fftKernel2S((a)[5], (a)[21], dir); \\\n"
|
||||
" fftKernel2S((a)[6], (a)[22], dir); \\\n"
|
||||
" fftKernel2S((a)[7], (a)[23], dir); \\\n"
|
||||
" fftKernel2S((a)[8], (a)[24], dir); \\\n"
|
||||
" fftKernel2S((a)[9], (a)[25], dir); \\\n"
|
||||
" fftKernel2S((a)[10], (a)[26], dir); \\\n"
|
||||
" fftKernel2S((a)[11], (a)[27], dir); \\\n"
|
||||
" fftKernel2S((a)[12], (a)[28], dir); \\\n"
|
||||
" fftKernel2S((a)[13], (a)[29], dir); \\\n"
|
||||
" fftKernel2S((a)[14], (a)[30], dir); \\\n"
|
||||
" fftKernel2S((a)[15], (a)[31], dir); \\\n"
|
||||
" (a)[17] = complexMul((a)[17], (float2)(0x1.f6297cp-1f, dir*0x1.8f8b84p-3f)); \\\n"
|
||||
" (a)[18] = complexMul((a)[18], (float2)(0x1.d906bcp-1f, dir*0x1.87de2ap-2f)); \\\n"
|
||||
" (a)[19] = complexMul((a)[19], (float2)(0x1.a9b662p-1f, dir*0x1.1c73b4p-1f)); \\\n"
|
||||
" (a)[20] = complexMul((a)[20], (float2)(0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f)); \\\n"
|
||||
" (a)[21] = complexMul((a)[21], (float2)(0x1.1c73b4p-1f, dir*0x1.a9b662p-1f)); \\\n"
|
||||
" (a)[22] = complexMul((a)[22], (float2)(0x1.87de2ap-2f, dir*0x1.d906bcp-1f)); \\\n"
|
||||
" (a)[23] = complexMul((a)[23], (float2)(0x1.8f8b84p-3f, dir*0x1.f6297cp-1f)); \\\n"
|
||||
" (a)[24] = complexMul((a)[24], (float2)(0x0p+0f, dir*0x1p+0f)); \\\n"
|
||||
" (a)[25] = complexMul((a)[25], (float2)(-0x1.8f8b84p-3f, dir*0x1.f6297cp-1f)); \\\n"
|
||||
" (a)[26] = complexMul((a)[26], (float2)(-0x1.87de2ap-2f, dir*0x1.d906bcp-1f)); \\\n"
|
||||
" (a)[27] = complexMul((a)[27], (float2)(-0x1.1c73b4p-1f, dir*0x1.a9b662p-1f)); \\\n"
|
||||
" (a)[28] = complexMul((a)[28], (float2)(-0x1.6a09e6p-1f, dir*0x1.6a09e6p-1f)); \\\n"
|
||||
" (a)[29] = complexMul((a)[29], (float2)(-0x1.a9b662p-1f, dir*0x1.1c73b4p-1f)); \\\n"
|
||||
" (a)[30] = complexMul((a)[30], (float2)(-0x1.d906bcp-1f, dir*0x1.87de2ap-2f)); \\\n"
|
||||
" (a)[31] = complexMul((a)[31], (float2)(-0x1.f6297cp-1f, dir*0x1.8f8b84p-3f)); \\\n"
|
||||
" fftKernel16((a), dir); \\\n"
|
||||
" fftKernel16((a) + 16, dir); \\\n"
|
||||
" bitreverse32((a)); \\\n"
|
||||
"}\n\n");
|
||||
|
||||
static string twistKernelInterleaved = string(
|
||||
"__kernel void \\\n"
|
||||
"clFFT_1DTwistInterleaved(__global float2 *in, unsigned int startRow, unsigned int numCols, unsigned int N, unsigned int numRowsToProcess, int dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 a, w; \\\n"
|
||||
" float ang; \\\n"
|
||||
" unsigned int j; \\\n"
|
||||
" unsigned int i = get_global_id(0); \\\n"
|
||||
" unsigned int startIndex = i; \\\n"
|
||||
" \\\n"
|
||||
" if(i < numCols) \\\n"
|
||||
" { \\\n"
|
||||
" for(j = 0; j < numRowsToProcess; j++) \\\n"
|
||||
" { \\\n"
|
||||
" a = in[startIndex]; \\\n"
|
||||
" ang = 2.0f * M_PI * dir * i * (startRow + j) / N; \\\n"
|
||||
" w = (float2)(native_cos(ang), native_sin(ang)); \\\n"
|
||||
" a = complexMul(a, w); \\\n"
|
||||
" in[startIndex] = a; \\\n"
|
||||
" startIndex += numCols; \\\n"
|
||||
" } \\\n"
|
||||
" } \\\n"
|
||||
"} \\\n"
|
||||
);
|
||||
"__kernel void \\\n"
|
||||
"clFFT_1DTwistInterleaved(__global float2 *in, unsigned int startRow, unsigned int numCols, unsigned int N, unsigned int numRowsToProcess, int dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 a, w; \\\n"
|
||||
" float ang; \\\n"
|
||||
" unsigned int j; \\\n"
|
||||
" unsigned int i = get_global_id(0); \\\n"
|
||||
" unsigned int startIndex = i; \\\n"
|
||||
" \\\n"
|
||||
" if(i < numCols) \\\n"
|
||||
" { \\\n"
|
||||
" for(j = 0; j < numRowsToProcess; j++) \\\n"
|
||||
" { \\\n"
|
||||
" a = in[startIndex]; \\\n"
|
||||
" ang = 2.0f * M_PI * dir * i * (startRow + j) / N; \\\n"
|
||||
" w = (float2)(native_cos(ang), native_sin(ang)); \\\n"
|
||||
" a = complexMul(a, w); \\\n"
|
||||
" in[startIndex] = a; \\\n"
|
||||
" startIndex += numCols; \\\n"
|
||||
" } \\\n"
|
||||
" } \\\n"
|
||||
"} \\\n");
|
||||
|
||||
static string twistKernelPlannar = string(
|
||||
"__kernel void \\\n"
|
||||
"clFFT_1DTwistSplit(__global float *in_real, __global float *in_imag , unsigned int startRow, unsigned int numCols, unsigned int N, unsigned int numRowsToProcess, int dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 a, w; \\\n"
|
||||
" float ang; \\\n"
|
||||
" unsigned int j; \\\n"
|
||||
" unsigned int i = get_global_id(0); \\\n"
|
||||
" unsigned int startIndex = i; \\\n"
|
||||
" \\\n"
|
||||
" if(i < numCols) \\\n"
|
||||
" { \\\n"
|
||||
" for(j = 0; j < numRowsToProcess; j++) \\\n"
|
||||
" { \\\n"
|
||||
" a = (float2)(in_real[startIndex], in_imag[startIndex]); \\\n"
|
||||
" ang = 2.0f * M_PI * dir * i * (startRow + j) / N; \\\n"
|
||||
" w = (float2)(native_cos(ang), native_sin(ang)); \\\n"
|
||||
" a = complexMul(a, w); \\\n"
|
||||
" in_real[startIndex] = a.x; \\\n"
|
||||
" in_imag[startIndex] = a.y; \\\n"
|
||||
" startIndex += numCols; \\\n"
|
||||
" } \\\n"
|
||||
" } \\\n"
|
||||
"} \\\n"
|
||||
);
|
||||
|
||||
"__kernel void \\\n"
|
||||
"clFFT_1DTwistSplit(__global float *in_real, __global float *in_imag , unsigned int startRow, unsigned int numCols, unsigned int N, unsigned int numRowsToProcess, int dir) \\\n"
|
||||
"{ \\\n"
|
||||
" float2 a, w; \\\n"
|
||||
" float ang; \\\n"
|
||||
" unsigned int j; \\\n"
|
||||
" unsigned int i = get_global_id(0); \\\n"
|
||||
" unsigned int startIndex = i; \\\n"
|
||||
" \\\n"
|
||||
" if(i < numCols) \\\n"
|
||||
" { \\\n"
|
||||
" for(j = 0; j < numRowsToProcess; j++) \\\n"
|
||||
" { \\\n"
|
||||
" a = (float2)(in_real[startIndex], in_imag[startIndex]); \\\n"
|
||||
" ang = 2.0f * M_PI * dir * i * (startRow + j) / N; \\\n"
|
||||
" w = (float2)(native_cos(ang), native_sin(ang)); \\\n"
|
||||
" a = complexMul(a, w); \\\n"
|
||||
" in_real[startIndex] = a.x; \\\n"
|
||||
" in_imag[startIndex] = a.y; \\\n"
|
||||
" startIndex += numCols; \\\n"
|
||||
" } \\\n"
|
||||
" } \\\n"
|
||||
"} \\\n");
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -52,354 +52,352 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
#define max(a,b) (((a)>(b)) ? (a) : (b))
|
||||
#define min(a,b) (((a)<(b)) ? (a) : (b))
|
||||
#define max(a, b) (((a) > (b)) ? (a) : (b))
|
||||
#define min(a, b) (((a) < (b)) ? (a) : (b))
|
||||
|
||||
static cl_int
|
||||
allocateTemporaryBufferInterleaved(cl_fft_plan *plan, cl_uint batchSize)
|
||||
{
|
||||
cl_int err = CL_SUCCESS;
|
||||
if(plan->temp_buffer_needed && plan->last_batch_size != batchSize)
|
||||
{
|
||||
plan->last_batch_size = batchSize;
|
||||
size_t tmpLength = plan->n.x * plan->n.y * plan->n.z * batchSize * 2 * sizeof(cl_float);
|
||||
|
||||
if(plan->tempmemobj)
|
||||
clReleaseMemObject(plan->tempmemobj);
|
||||
|
||||
plan->tempmemobj = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &err);
|
||||
}
|
||||
return err;
|
||||
cl_int err = CL_SUCCESS;
|
||||
if (plan->temp_buffer_needed && plan->last_batch_size != batchSize)
|
||||
{
|
||||
plan->last_batch_size = batchSize;
|
||||
size_t tmpLength = plan->n.x * plan->n.y * plan->n.z * batchSize * 2 * sizeof(cl_float);
|
||||
|
||||
if (plan->tempmemobj)
|
||||
clReleaseMemObject(plan->tempmemobj);
|
||||
|
||||
plan->tempmemobj = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &err);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
static cl_int
|
||||
allocateTemporaryBufferPlannar(cl_fft_plan *plan, cl_uint batchSize)
|
||||
{
|
||||
cl_int err = CL_SUCCESS;
|
||||
cl_int terr;
|
||||
if(plan->temp_buffer_needed && plan->last_batch_size != batchSize)
|
||||
{
|
||||
plan->last_batch_size = batchSize;
|
||||
size_t tmpLength = plan->n.x * plan->n.y * plan->n.z * batchSize * sizeof(cl_float);
|
||||
|
||||
if(plan->tempmemobj_real)
|
||||
clReleaseMemObject(plan->tempmemobj_real);
|
||||
cl_int err = CL_SUCCESS;
|
||||
cl_int terr;
|
||||
if (plan->temp_buffer_needed && plan->last_batch_size != batchSize)
|
||||
{
|
||||
plan->last_batch_size = batchSize;
|
||||
size_t tmpLength = plan->n.x * plan->n.y * plan->n.z * batchSize * sizeof(cl_float);
|
||||
|
||||
if(plan->tempmemobj_imag)
|
||||
clReleaseMemObject(plan->tempmemobj_imag);
|
||||
|
||||
plan->tempmemobj_real = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &err);
|
||||
plan->tempmemobj_imag = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &terr);
|
||||
err |= terr;
|
||||
}
|
||||
return err;
|
||||
if (plan->tempmemobj_real)
|
||||
clReleaseMemObject(plan->tempmemobj_real);
|
||||
|
||||
if (plan->tempmemobj_imag)
|
||||
clReleaseMemObject(plan->tempmemobj_imag);
|
||||
|
||||
plan->tempmemobj_real = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &err);
|
||||
plan->tempmemobj_imag = clCreateBuffer(plan->context, CL_MEM_READ_WRITE, tmpLength, NULL, &terr);
|
||||
err |= terr;
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
void
|
||||
getKernelWorkDimensions(cl_fft_plan *plan, cl_fft_kernel_info *kernelInfo, cl_int *batchSize, size_t *gWorkItems, size_t *lWorkItems)
|
||||
void getKernelWorkDimensions(cl_fft_plan *plan, cl_fft_kernel_info *kernelInfo, cl_int *batchSize, size_t *gWorkItems, size_t *lWorkItems)
|
||||
{
|
||||
*lWorkItems = kernelInfo->num_workitems_per_workgroup;
|
||||
int numWorkGroups = kernelInfo->num_workgroups;
|
||||
*lWorkItems = kernelInfo->num_workitems_per_workgroup;
|
||||
int numWorkGroups = kernelInfo->num_workgroups;
|
||||
int numXFormsPerWG = kernelInfo->num_xforms_per_workgroup;
|
||||
|
||||
switch(kernelInfo->dir)
|
||||
{
|
||||
case cl_fft_kernel_x:
|
||||
|
||||
switch (kernelInfo->dir)
|
||||
{
|
||||
case cl_fft_kernel_x:
|
||||
*batchSize *= (plan->n.y * plan->n.z);
|
||||
numWorkGroups = (*batchSize % numXFormsPerWG) ? (*batchSize/numXFormsPerWG + 1) : (*batchSize/numXFormsPerWG);
|
||||
numWorkGroups = (*batchSize % numXFormsPerWG) ? (*batchSize / numXFormsPerWG + 1) : (*batchSize / numXFormsPerWG);
|
||||
numWorkGroups *= kernelInfo->num_workgroups;
|
||||
break;
|
||||
case cl_fft_kernel_y:
|
||||
*batchSize *= plan->n.z;
|
||||
numWorkGroups *= *batchSize;
|
||||
break;
|
||||
case cl_fft_kernel_z:
|
||||
numWorkGroups *= *batchSize;
|
||||
break;
|
||||
}
|
||||
|
||||
*gWorkItems = numWorkGroups * *lWorkItems;
|
||||
break;
|
||||
case cl_fft_kernel_y:
|
||||
*batchSize *= plan->n.z;
|
||||
numWorkGroups *= *batchSize;
|
||||
break;
|
||||
case cl_fft_kernel_z:
|
||||
numWorkGroups *= *batchSize;
|
||||
break;
|
||||
}
|
||||
|
||||
*gWorkItems = numWorkGroups * *lWorkItems;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_ExecuteInterleaved( cl_command_queue queue, clFFT_Plan Plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in, cl_mem data_out,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event )
|
||||
{
|
||||
int s;
|
||||
cl_fft_plan *plan = (cl_fft_plan *) Plan;
|
||||
if(plan->format != clFFT_InterleavedComplexFormat)
|
||||
return CL_INVALID_VALUE;
|
||||
|
||||
cl_int err;
|
||||
size_t gWorkItems, lWorkItems;
|
||||
int inPlaceDone;
|
||||
|
||||
cl_int isInPlace = data_in == data_out ? 1 : 0;
|
||||
|
||||
if((err = allocateTemporaryBufferInterleaved(plan, batchSize)) != CL_SUCCESS)
|
||||
return err;
|
||||
|
||||
cl_mem memObj[3];
|
||||
memObj[0] = data_in;
|
||||
memObj[1] = data_out;
|
||||
memObj[2] = plan->tempmemobj;
|
||||
cl_fft_kernel_info *kernelInfo = plan->kernel_info;
|
||||
int numKernels = plan->num_kernels;
|
||||
|
||||
int numKernelsOdd = numKernels & 1;
|
||||
int currRead = 0;
|
||||
int currWrite = 1;
|
||||
|
||||
// at least one external dram shuffle (transpose) required
|
||||
if(plan->temp_buffer_needed)
|
||||
{
|
||||
// in-place transform
|
||||
if(isInPlace)
|
||||
{
|
||||
inPlaceDone = 0;
|
||||
currRead = 1;
|
||||
currWrite = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
currWrite = (numKernels & 1) ? 1 : 2;
|
||||
}
|
||||
|
||||
while(kernelInfo)
|
||||
{
|
||||
if( isInPlace && numKernelsOdd && !inPlaceDone && kernelInfo->in_place_possible)
|
||||
{
|
||||
currWrite = currRead;
|
||||
inPlaceDone = 1;
|
||||
}
|
||||
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
currRead = (currWrite == 1) ? 1 : 2;
|
||||
currWrite = (currWrite == 1) ? 2 : 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
// no dram shuffle (transpose required) transform
|
||||
// all kernels can execute in-place.
|
||||
else {
|
||||
|
||||
while(kernelInfo)
|
||||
{
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
currRead = 1;
|
||||
currWrite = 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_ExecutePlannar( cl_command_queue queue, clFFT_Plan Plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in_real, cl_mem data_in_imag, cl_mem data_out_real, cl_mem data_out_imag,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event)
|
||||
{
|
||||
int s;
|
||||
cl_fft_plan *plan = (cl_fft_plan *) Plan;
|
||||
|
||||
if(plan->format != clFFT_SplitComplexFormat)
|
||||
return CL_INVALID_VALUE;
|
||||
|
||||
cl_int err;
|
||||
size_t gWorkItems, lWorkItems;
|
||||
int inPlaceDone;
|
||||
|
||||
cl_int isInPlace = ((data_in_real == data_out_real) && (data_in_imag == data_out_imag)) ? 1 : 0;
|
||||
|
||||
if((err = allocateTemporaryBufferPlannar(plan, batchSize)) != CL_SUCCESS)
|
||||
return err;
|
||||
|
||||
cl_mem memObj_real[3];
|
||||
cl_mem memObj_imag[3];
|
||||
memObj_real[0] = data_in_real;
|
||||
memObj_real[1] = data_out_real;
|
||||
memObj_real[2] = plan->tempmemobj_real;
|
||||
memObj_imag[0] = data_in_imag;
|
||||
memObj_imag[1] = data_out_imag;
|
||||
memObj_imag[2] = plan->tempmemobj_imag;
|
||||
|
||||
cl_fft_kernel_info *kernelInfo = plan->kernel_info;
|
||||
int numKernels = plan->num_kernels;
|
||||
|
||||
int numKernelsOdd = numKernels & 1;
|
||||
int currRead = 0;
|
||||
int currWrite = 1;
|
||||
|
||||
// at least one external dram shuffle (transpose) required
|
||||
if(plan->temp_buffer_needed)
|
||||
{
|
||||
// in-place transform
|
||||
if(isInPlace)
|
||||
{
|
||||
inPlaceDone = 0;
|
||||
currRead = 1;
|
||||
currWrite = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
currWrite = (numKernels & 1) ? 1 : 2;
|
||||
}
|
||||
|
||||
while(kernelInfo)
|
||||
{
|
||||
if( isInPlace && numKernelsOdd && !inPlaceDone && kernelInfo->in_place_possible)
|
||||
{
|
||||
currWrite = currRead;
|
||||
inPlaceDone = 1;
|
||||
}
|
||||
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj_real[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj_imag[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_mem), &memObj_real[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_mem), &memObj_imag[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 4, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 5, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
currRead = (currWrite == 1) ? 1 : 2;
|
||||
currWrite = (currWrite == 1) ? 2 : 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
// no dram shuffle (transpose required) transform
|
||||
else {
|
||||
|
||||
while(kernelInfo)
|
||||
{
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj_real[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj_imag[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_mem), &memObj_real[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_mem), &memObj_imag[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 4, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 5, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
currRead = 1;
|
||||
currWrite = 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_1DTwistInterleaved(clFFT_Plan Plan, cl_command_queue queue, cl_mem array,
|
||||
unsigned numRows, unsigned numCols, unsigned startRow, unsigned rowsToProcess, clFFT_Direction dir)
|
||||
cl_int
|
||||
clFFT_ExecuteInterleaved(cl_command_queue queue, clFFT_Plan Plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in, cl_mem data_out,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event)
|
||||
{
|
||||
cl_fft_plan *plan = (cl_fft_plan *) Plan;
|
||||
|
||||
unsigned int N = numRows*numCols;
|
||||
unsigned int nCols = numCols;
|
||||
unsigned int sRow = startRow;
|
||||
unsigned int rToProcess = rowsToProcess;
|
||||
int d = dir;
|
||||
int err = 0;
|
||||
|
||||
cl_device_id device_id;
|
||||
err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, sizeof(cl_device_id), &device_id, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
size_t gSize;
|
||||
err = clGetKernelWorkGroupInfo(plan->twist_kernel, device_id, CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &gSize, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
gSize = min(128, gSize);
|
||||
size_t numGlobalThreads[1] = { max(numCols / gSize, 1)*gSize };
|
||||
size_t numLocalThreads[1] = { gSize };
|
||||
|
||||
err |= clSetKernelArg(plan->twist_kernel, 0, sizeof(cl_mem), &array);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 1, sizeof(unsigned int), &sRow);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 2, sizeof(unsigned int), &nCols);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 3, sizeof(unsigned int), &N);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 4, sizeof(unsigned int), &rToProcess);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 5, sizeof(int), &d);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, plan->twist_kernel, 1, NULL, numGlobalThreads, numLocalThreads, 0, NULL, NULL);
|
||||
|
||||
return err;
|
||||
int s;
|
||||
cl_fft_plan *plan = (cl_fft_plan *)Plan;
|
||||
if (plan->format != clFFT_InterleavedComplexFormat)
|
||||
return CL_INVALID_VALUE;
|
||||
|
||||
cl_int err;
|
||||
size_t gWorkItems, lWorkItems;
|
||||
int inPlaceDone;
|
||||
|
||||
cl_int isInPlace = data_in == data_out ? 1 : 0;
|
||||
|
||||
if ((err = allocateTemporaryBufferInterleaved(plan, batchSize)) != CL_SUCCESS)
|
||||
return err;
|
||||
|
||||
cl_mem memObj[3];
|
||||
memObj[0] = data_in;
|
||||
memObj[1] = data_out;
|
||||
memObj[2] = plan->tempmemobj;
|
||||
cl_fft_kernel_info *kernelInfo = plan->kernel_info;
|
||||
int numKernels = plan->num_kernels;
|
||||
|
||||
int numKernelsOdd = numKernels & 1;
|
||||
int currRead = 0;
|
||||
int currWrite = 1;
|
||||
|
||||
// at least one external dram shuffle (transpose) required
|
||||
if (plan->temp_buffer_needed)
|
||||
{
|
||||
// in-place transform
|
||||
if (isInPlace)
|
||||
{
|
||||
inPlaceDone = 0;
|
||||
currRead = 1;
|
||||
currWrite = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
currWrite = (numKernels & 1) ? 1 : 2;
|
||||
}
|
||||
|
||||
while (kernelInfo)
|
||||
{
|
||||
if (isInPlace && numKernelsOdd && !inPlaceDone && kernelInfo->in_place_possible)
|
||||
{
|
||||
currWrite = currRead;
|
||||
inPlaceDone = 1;
|
||||
}
|
||||
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
currRead = (currWrite == 1) ? 1 : 2;
|
||||
currWrite = (currWrite == 1) ? 2 : 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
// no dram shuffle (transpose required) transform
|
||||
// all kernels can execute in-place.
|
||||
else
|
||||
{
|
||||
while (kernelInfo)
|
||||
{
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
currRead = 1;
|
||||
currWrite = 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_1DTwistPlannar(clFFT_Plan Plan, cl_command_queue queue, cl_mem array_real, cl_mem array_imag,
|
||||
unsigned numRows, unsigned numCols, unsigned startRow, unsigned rowsToProcess, clFFT_Direction dir)
|
||||
cl_int
|
||||
clFFT_ExecutePlannar(cl_command_queue queue, clFFT_Plan Plan, cl_int batchSize, clFFT_Direction dir,
|
||||
cl_mem data_in_real, cl_mem data_in_imag, cl_mem data_out_real, cl_mem data_out_imag,
|
||||
cl_int num_events, cl_event *event_list, cl_event *event)
|
||||
{
|
||||
cl_fft_plan *plan = (cl_fft_plan *) Plan;
|
||||
|
||||
unsigned int N = numRows*numCols;
|
||||
unsigned int nCols = numCols;
|
||||
unsigned int sRow = startRow;
|
||||
unsigned int rToProcess = rowsToProcess;
|
||||
int d = dir;
|
||||
int err = 0;
|
||||
|
||||
cl_device_id device_id;
|
||||
err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, sizeof(cl_device_id), &device_id, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
size_t gSize;
|
||||
err = clGetKernelWorkGroupInfo(plan->twist_kernel, device_id, CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &gSize, NULL);
|
||||
if(err)
|
||||
return err;
|
||||
|
||||
gSize = min(128, gSize);
|
||||
size_t numGlobalThreads[1] = { max(numCols / gSize, 1)*gSize };
|
||||
size_t numLocalThreads[1] = { gSize };
|
||||
|
||||
err |= clSetKernelArg(plan->twist_kernel, 0, sizeof(cl_mem), &array_real);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 1, sizeof(cl_mem), &array_imag);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 2, sizeof(unsigned int), &sRow);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 3, sizeof(unsigned int), &nCols);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 4, sizeof(unsigned int), &N);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 5, sizeof(unsigned int), &rToProcess);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 6, sizeof(int), &d);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, plan->twist_kernel, 1, NULL, numGlobalThreads, numLocalThreads, 0, NULL, NULL);
|
||||
|
||||
return err;
|
||||
int s;
|
||||
cl_fft_plan *plan = (cl_fft_plan *)Plan;
|
||||
|
||||
if (plan->format != clFFT_SplitComplexFormat)
|
||||
return CL_INVALID_VALUE;
|
||||
|
||||
cl_int err;
|
||||
size_t gWorkItems, lWorkItems;
|
||||
int inPlaceDone;
|
||||
|
||||
cl_int isInPlace = ((data_in_real == data_out_real) && (data_in_imag == data_out_imag)) ? 1 : 0;
|
||||
|
||||
if ((err = allocateTemporaryBufferPlannar(plan, batchSize)) != CL_SUCCESS)
|
||||
return err;
|
||||
|
||||
cl_mem memObj_real[3];
|
||||
cl_mem memObj_imag[3];
|
||||
memObj_real[0] = data_in_real;
|
||||
memObj_real[1] = data_out_real;
|
||||
memObj_real[2] = plan->tempmemobj_real;
|
||||
memObj_imag[0] = data_in_imag;
|
||||
memObj_imag[1] = data_out_imag;
|
||||
memObj_imag[2] = plan->tempmemobj_imag;
|
||||
|
||||
cl_fft_kernel_info *kernelInfo = plan->kernel_info;
|
||||
int numKernels = plan->num_kernels;
|
||||
|
||||
int numKernelsOdd = numKernels & 1;
|
||||
int currRead = 0;
|
||||
int currWrite = 1;
|
||||
|
||||
// at least one external dram shuffle (transpose) required
|
||||
if (plan->temp_buffer_needed)
|
||||
{
|
||||
// in-place transform
|
||||
if (isInPlace)
|
||||
{
|
||||
inPlaceDone = 0;
|
||||
currRead = 1;
|
||||
currWrite = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
currWrite = (numKernels & 1) ? 1 : 2;
|
||||
}
|
||||
|
||||
while (kernelInfo)
|
||||
{
|
||||
if (isInPlace && numKernelsOdd && !inPlaceDone && kernelInfo->in_place_possible)
|
||||
{
|
||||
currWrite = currRead;
|
||||
inPlaceDone = 1;
|
||||
}
|
||||
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj_real[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj_imag[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_mem), &memObj_real[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_mem), &memObj_imag[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 4, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 5, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
currRead = (currWrite == 1) ? 1 : 2;
|
||||
currWrite = (currWrite == 1) ? 2 : 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
// no dram shuffle (transpose required) transform
|
||||
else
|
||||
{
|
||||
while (kernelInfo)
|
||||
{
|
||||
s = batchSize;
|
||||
getKernelWorkDimensions(plan, kernelInfo, &s, &gWorkItems, &lWorkItems);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 0, sizeof(cl_mem), &memObj_real[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 1, sizeof(cl_mem), &memObj_imag[currRead]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 2, sizeof(cl_mem), &memObj_real[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 3, sizeof(cl_mem), &memObj_imag[currWrite]);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 4, sizeof(cl_int), &dir);
|
||||
err |= clSetKernelArg(kernelInfo->kernel, 5, sizeof(cl_int), &s);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, kernelInfo->kernel, 1, NULL, &gWorkItems, &lWorkItems, 0, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
currRead = 1;
|
||||
currWrite = 1;
|
||||
|
||||
kernelInfo = kernelInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_1DTwistInterleaved(clFFT_Plan Plan, cl_command_queue queue, cl_mem array,
|
||||
unsigned numRows, unsigned numCols, unsigned startRow, unsigned rowsToProcess, clFFT_Direction dir)
|
||||
{
|
||||
cl_fft_plan *plan = (cl_fft_plan *)Plan;
|
||||
|
||||
unsigned int N = numRows * numCols;
|
||||
unsigned int nCols = numCols;
|
||||
unsigned int sRow = startRow;
|
||||
unsigned int rToProcess = rowsToProcess;
|
||||
int d = dir;
|
||||
int err = 0;
|
||||
|
||||
cl_device_id device_id;
|
||||
err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, sizeof(cl_device_id), &device_id, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
size_t gSize;
|
||||
err = clGetKernelWorkGroupInfo(plan->twist_kernel, device_id, CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &gSize, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
gSize = min(128, gSize);
|
||||
size_t numGlobalThreads[1] = {max(numCols / gSize, 1) * gSize};
|
||||
size_t numLocalThreads[1] = {gSize};
|
||||
|
||||
err |= clSetKernelArg(plan->twist_kernel, 0, sizeof(cl_mem), &array);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 1, sizeof(unsigned int), &sRow);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 2, sizeof(unsigned int), &nCols);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 3, sizeof(unsigned int), &N);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 4, sizeof(unsigned int), &rToProcess);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 5, sizeof(int), &d);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, plan->twist_kernel, 1, NULL, numGlobalThreads, numLocalThreads, 0, NULL, NULL);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
cl_int
|
||||
clFFT_1DTwistPlannar(clFFT_Plan Plan, cl_command_queue queue, cl_mem array_real, cl_mem array_imag,
|
||||
unsigned numRows, unsigned numCols, unsigned startRow, unsigned rowsToProcess, clFFT_Direction dir)
|
||||
{
|
||||
cl_fft_plan *plan = (cl_fft_plan *)Plan;
|
||||
|
||||
unsigned int N = numRows * numCols;
|
||||
unsigned int nCols = numCols;
|
||||
unsigned int sRow = startRow;
|
||||
unsigned int rToProcess = rowsToProcess;
|
||||
int d = dir;
|
||||
int err = 0;
|
||||
|
||||
cl_device_id device_id;
|
||||
err = clGetCommandQueueInfo(queue, CL_QUEUE_DEVICE, sizeof(cl_device_id), &device_id, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
size_t gSize;
|
||||
err = clGetKernelWorkGroupInfo(plan->twist_kernel, device_id, CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &gSize, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
gSize = min(128, gSize);
|
||||
size_t numGlobalThreads[1] = {max(numCols / gSize, 1) * gSize};
|
||||
size_t numLocalThreads[1] = {gSize};
|
||||
|
||||
err |= clSetKernelArg(plan->twist_kernel, 0, sizeof(cl_mem), &array_real);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 1, sizeof(cl_mem), &array_imag);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 2, sizeof(unsigned int), &sRow);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 3, sizeof(unsigned int), &nCols);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 4, sizeof(unsigned int), &N);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 5, sizeof(unsigned int), &rToProcess);
|
||||
err |= clSetKernelArg(plan->twist_kernel, 6, sizeof(int), &d);
|
||||
|
||||
err |= clEnqueueNDRangeKernel(queue, plan->twist_kernel, 1, NULL, numGlobalThreads, numLocalThreads, 0, NULL, NULL);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
@ -58,106 +58,106 @@ using namespace std;
|
||||
|
||||
typedef enum kernel_dir_t
|
||||
{
|
||||
cl_fft_kernel_x,
|
||||
cl_fft_kernel_y,
|
||||
cl_fft_kernel_z
|
||||
}cl_fft_kernel_dir;
|
||||
cl_fft_kernel_x,
|
||||
cl_fft_kernel_y,
|
||||
cl_fft_kernel_z
|
||||
} cl_fft_kernel_dir;
|
||||
|
||||
typedef struct kernel_info_t
|
||||
{
|
||||
cl_kernel kernel;
|
||||
char *kernel_name;
|
||||
unsigned lmem_size;
|
||||
unsigned num_workgroups;
|
||||
cl_kernel kernel;
|
||||
char *kernel_name;
|
||||
unsigned lmem_size;
|
||||
unsigned num_workgroups;
|
||||
unsigned num_xforms_per_workgroup;
|
||||
unsigned num_workitems_per_workgroup;
|
||||
cl_fft_kernel_dir dir;
|
||||
int in_place_possible;
|
||||
kernel_info_t *next;
|
||||
}cl_fft_kernel_info;
|
||||
unsigned num_workitems_per_workgroup;
|
||||
cl_fft_kernel_dir dir;
|
||||
int in_place_possible;
|
||||
kernel_info_t *next;
|
||||
} cl_fft_kernel_info;
|
||||
|
||||
typedef struct
|
||||
typedef struct
|
||||
{
|
||||
// context in which fft resources are created and kernels are executed
|
||||
cl_context context;
|
||||
|
||||
// size of signal
|
||||
clFFT_Dim3 n;
|
||||
|
||||
// dimension of transform ... must be either 1D, 2D or 3D
|
||||
clFFT_Dimension dim;
|
||||
|
||||
// data format ... must be either interleaved or plannar
|
||||
clFFT_DataFormat format;
|
||||
|
||||
// string containing kernel source. Generated at runtime based on
|
||||
// n, dim, format and other parameters
|
||||
string *kernel_string;
|
||||
|
||||
// CL program containing source and kernel this particular
|
||||
// n, dim, data format
|
||||
cl_program program;
|
||||
|
||||
// linked list of kernels which needs to be executed for this fft
|
||||
cl_fft_kernel_info *kernel_info;
|
||||
|
||||
// number of kernels
|
||||
int num_kernels;
|
||||
|
||||
// twist kernel for virtualizing fft of very large sizes that do not
|
||||
// fit in GPU global memory
|
||||
cl_kernel twist_kernel;
|
||||
|
||||
// flag indicating if temporary intermediate buffer is needed or not.
|
||||
// this depends on fft kernels being executed and if transform is
|
||||
// in-place or out-of-place. e.g. Local memory fft (say 1D 1024 ...
|
||||
// one that does not require global transpose do not need temporary buffer)
|
||||
// 2D 1024x1024 out-of-place fft however do require intermediate buffer.
|
||||
// If temp buffer is needed, its allocation is lazy i.e. its not allocated
|
||||
// until its needed
|
||||
cl_int temp_buffer_needed;
|
||||
|
||||
// Batch size is runtime parameter and size of temporary buffer (if needed)
|
||||
// depends on batch size. Allocation of temporary buffer is lazy i.e. its
|
||||
// only created when needed. Once its created at first call of clFFT_Executexxx
|
||||
// it is not allocated next time if next time clFFT_Executexxx is called with
|
||||
// batch size different than the first call. last_batch_size caches the last
|
||||
// batch size with which this plan is used so that we dont keep allocating/deallocating
|
||||
// temp buffer if same batch size is used again and again.
|
||||
unsigned last_batch_size;
|
||||
|
||||
// temporary buffer for interleaved plan
|
||||
cl_mem tempmemobj;
|
||||
|
||||
// temporary buffer for planner plan. Only one of tempmemobj or
|
||||
// (tempmemobj_real, tempmemobj_imag) pair is valid (allocated) depending
|
||||
// data format of plan (plannar or interleaved)
|
||||
cl_mem tempmemobj_real, tempmemobj_imag;
|
||||
|
||||
// Maximum size of signal for which local memory transposed based
|
||||
// fft is sufficient i.e. no global mem transpose (communication)
|
||||
// is needed
|
||||
unsigned max_localmem_fft_size;
|
||||
|
||||
// Maximum work items per work group allowed. This, along with max_radix below controls
|
||||
// maximum local memory being used by fft kernels of this plan. Set to 256 by default
|
||||
unsigned max_work_item_per_workgroup;
|
||||
|
||||
// Maximum base radix for local memory fft ... this controls the maximum register
|
||||
// space used by work items. Currently defaults to 16
|
||||
unsigned max_radix;
|
||||
|
||||
// Device depended parameter that tells how many work-items need to be read consecutive
|
||||
// values to make sure global memory access by work-items of a work-group result in
|
||||
// coalesced memory access to utilize full bandwidth e.g. on NVidia tesla, this is 16
|
||||
unsigned min_mem_coalesce_width;
|
||||
|
||||
// Number of local memory banks. This is used to geneate kernel with local memory
|
||||
// transposes with appropriate padding to avoid bank conflicts to local memory
|
||||
// e.g. on NVidia it is 16.
|
||||
unsigned num_local_mem_banks;
|
||||
}cl_fft_plan;
|
||||
// context in which fft resources are created and kernels are executed
|
||||
cl_context context;
|
||||
|
||||
// size of signal
|
||||
clFFT_Dim3 n;
|
||||
|
||||
// dimension of transform ... must be either 1D, 2D or 3D
|
||||
clFFT_Dimension dim;
|
||||
|
||||
// data format ... must be either interleaved or plannar
|
||||
clFFT_DataFormat format;
|
||||
|
||||
// string containing kernel source. Generated at runtime based on
|
||||
// n, dim, format and other parameters
|
||||
string *kernel_string;
|
||||
|
||||
// CL program containing source and kernel this particular
|
||||
// n, dim, data format
|
||||
cl_program program;
|
||||
|
||||
// linked list of kernels which needs to be executed for this fft
|
||||
cl_fft_kernel_info *kernel_info;
|
||||
|
||||
// number of kernels
|
||||
int num_kernels;
|
||||
|
||||
// twist kernel for virtualizing fft of very large sizes that do not
|
||||
// fit in GPU global memory
|
||||
cl_kernel twist_kernel;
|
||||
|
||||
// flag indicating if temporary intermediate buffer is needed or not.
|
||||
// this depends on fft kernels being executed and if transform is
|
||||
// in-place or out-of-place. e.g. Local memory fft (say 1D 1024 ...
|
||||
// one that does not require global transpose do not need temporary buffer)
|
||||
// 2D 1024x1024 out-of-place fft however do require intermediate buffer.
|
||||
// If temp buffer is needed, its allocation is lazy i.e. its not allocated
|
||||
// until its needed
|
||||
cl_int temp_buffer_needed;
|
||||
|
||||
// Batch size is runtime parameter and size of temporary buffer (if needed)
|
||||
// depends on batch size. Allocation of temporary buffer is lazy i.e. its
|
||||
// only created when needed. Once its created at first call of clFFT_Executexxx
|
||||
// it is not allocated next time if next time clFFT_Executexxx is called with
|
||||
// batch size different than the first call. last_batch_size caches the last
|
||||
// batch size with which this plan is used so that we dont keep allocating/deallocating
|
||||
// temp buffer if same batch size is used again and again.
|
||||
unsigned last_batch_size;
|
||||
|
||||
// temporary buffer for interleaved plan
|
||||
cl_mem tempmemobj;
|
||||
|
||||
// temporary buffer for planner plan. Only one of tempmemobj or
|
||||
// (tempmemobj_real, tempmemobj_imag) pair is valid (allocated) depending
|
||||
// data format of plan (plannar or interleaved)
|
||||
cl_mem tempmemobj_real, tempmemobj_imag;
|
||||
|
||||
// Maximum size of signal for which local memory transposed based
|
||||
// fft is sufficient i.e. no global mem transpose (communication)
|
||||
// is needed
|
||||
unsigned max_localmem_fft_size;
|
||||
|
||||
// Maximum work items per work group allowed. This, along with max_radix below controls
|
||||
// maximum local memory being used by fft kernels of this plan. Set to 256 by default
|
||||
unsigned max_work_item_per_workgroup;
|
||||
|
||||
// Maximum base radix for local memory fft ... this controls the maximum register
|
||||
// space used by work items. Currently defaults to 16
|
||||
unsigned max_radix;
|
||||
|
||||
// Device depended parameter that tells how many work-items need to be read consecutive
|
||||
// values to make sure global memory access by work-items of a work-group result in
|
||||
// coalesced memory access to utilize full bandwidth e.g. on NVidia tesla, this is 16
|
||||
unsigned min_mem_coalesce_width;
|
||||
|
||||
// Number of local memory banks. This is used to geneate kernel with local memory
|
||||
// transposes with appropriate padding to avoid bank conflicts to local memory
|
||||
// e.g. on NVidia it is 16.
|
||||
unsigned num_local_mem_banks;
|
||||
} cl_fft_plan;
|
||||
|
||||
void FFT1D(cl_fft_plan *plan, cl_fft_kernel_dir dir);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -61,59 +61,59 @@ using namespace std;
|
||||
|
||||
extern void getKernelWorkDimensions(cl_fft_plan *plan, cl_fft_kernel_info *kernelInfo, cl_int *batchSize, size_t *gWorkItems, size_t *lWorkItems);
|
||||
|
||||
static void
|
||||
static void
|
||||
getBlockConfigAndKernelString(cl_fft_plan *plan)
|
||||
{
|
||||
plan->temp_buffer_needed = 0;
|
||||
*plan->kernel_string += baseKernels;
|
||||
|
||||
if(plan->format == clFFT_SplitComplexFormat)
|
||||
*plan->kernel_string += twistKernelPlannar;
|
||||
else
|
||||
*plan->kernel_string += twistKernelInterleaved;
|
||||
|
||||
switch(plan->dim)
|
||||
{
|
||||
case clFFT_1D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
break;
|
||||
|
||||
case clFFT_2D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
FFT1D(plan, cl_fft_kernel_y);
|
||||
break;
|
||||
|
||||
case clFFT_3D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
FFT1D(plan, cl_fft_kernel_y);
|
||||
FFT1D(plan, cl_fft_kernel_z);
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
plan->temp_buffer_needed = 0;
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while(kInfo)
|
||||
{
|
||||
plan->temp_buffer_needed |= !kInfo->in_place_possible;
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
plan->temp_buffer_needed = 0;
|
||||
*plan->kernel_string += baseKernels;
|
||||
|
||||
if (plan->format == clFFT_SplitComplexFormat)
|
||||
*plan->kernel_string += twistKernelPlannar;
|
||||
else
|
||||
*plan->kernel_string += twistKernelInterleaved;
|
||||
|
||||
switch (plan->dim)
|
||||
{
|
||||
case clFFT_1D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
break;
|
||||
|
||||
case clFFT_2D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
FFT1D(plan, cl_fft_kernel_y);
|
||||
break;
|
||||
|
||||
case clFFT_3D:
|
||||
FFT1D(plan, cl_fft_kernel_x);
|
||||
FFT1D(plan, cl_fft_kernel_y);
|
||||
FFT1D(plan, cl_fft_kernel_z);
|
||||
break;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
plan->temp_buffer_needed = 0;
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while (kInfo)
|
||||
{
|
||||
plan->temp_buffer_needed |= !kInfo->in_place_possible;
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
deleteKernelInfo(cl_fft_kernel_info *kInfo)
|
||||
{
|
||||
if(kInfo)
|
||||
{
|
||||
if(kInfo->kernel_name)
|
||||
free(kInfo->kernel_name);
|
||||
if(kInfo->kernel)
|
||||
clReleaseKernel(kInfo->kernel);
|
||||
free(kInfo);
|
||||
}
|
||||
if (kInfo)
|
||||
{
|
||||
if (kInfo->kernel_name)
|
||||
free(kInfo->kernel_name);
|
||||
if (kInfo->kernel)
|
||||
clReleaseKernel(kInfo->kernel);
|
||||
free(kInfo);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
@ -121,282 +121,282 @@ destroy_plan(cl_fft_plan *Plan)
|
||||
{
|
||||
cl_fft_kernel_info *kernel_info = Plan->kernel_info;
|
||||
|
||||
while(kernel_info)
|
||||
{
|
||||
cl_fft_kernel_info *tmp = kernel_info->next;
|
||||
deleteKernelInfo(kernel_info);
|
||||
kernel_info = tmp;
|
||||
}
|
||||
|
||||
Plan->kernel_info = NULL;
|
||||
|
||||
if(Plan->kernel_string)
|
||||
{
|
||||
delete Plan->kernel_string;
|
||||
Plan->kernel_string = NULL;
|
||||
}
|
||||
if(Plan->twist_kernel)
|
||||
{
|
||||
clReleaseKernel(Plan->twist_kernel);
|
||||
Plan->twist_kernel = NULL;
|
||||
}
|
||||
if(Plan->program)
|
||||
{
|
||||
clReleaseProgram(Plan->program);
|
||||
Plan->program = NULL;
|
||||
}
|
||||
if(Plan->tempmemobj)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj);
|
||||
Plan->tempmemobj = NULL;
|
||||
}
|
||||
if(Plan->tempmemobj_real)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj_real);
|
||||
Plan->tempmemobj_real = NULL;
|
||||
}
|
||||
if(Plan->tempmemobj_imag)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj_imag);
|
||||
Plan->tempmemobj_imag = NULL;
|
||||
}
|
||||
while (kernel_info)
|
||||
{
|
||||
cl_fft_kernel_info *tmp = kernel_info->next;
|
||||
deleteKernelInfo(kernel_info);
|
||||
kernel_info = tmp;
|
||||
}
|
||||
|
||||
Plan->kernel_info = NULL;
|
||||
|
||||
if (Plan->kernel_string)
|
||||
{
|
||||
delete Plan->kernel_string;
|
||||
Plan->kernel_string = NULL;
|
||||
}
|
||||
if (Plan->twist_kernel)
|
||||
{
|
||||
clReleaseKernel(Plan->twist_kernel);
|
||||
Plan->twist_kernel = NULL;
|
||||
}
|
||||
if (Plan->program)
|
||||
{
|
||||
clReleaseProgram(Plan->program);
|
||||
Plan->program = NULL;
|
||||
}
|
||||
if (Plan->tempmemobj)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj);
|
||||
Plan->tempmemobj = NULL;
|
||||
}
|
||||
if (Plan->tempmemobj_real)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj_real);
|
||||
Plan->tempmemobj_real = NULL;
|
||||
}
|
||||
if (Plan->tempmemobj_imag)
|
||||
{
|
||||
clReleaseMemObject(Plan->tempmemobj_imag);
|
||||
Plan->tempmemobj_imag = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
createKernelList(cl_fft_plan *plan)
|
||||
createKernelList(cl_fft_plan *plan)
|
||||
{
|
||||
cl_program program = plan->program;
|
||||
cl_fft_kernel_info *kernel_info = plan->kernel_info;
|
||||
|
||||
cl_int err;
|
||||
while(kernel_info)
|
||||
{
|
||||
kernel_info->kernel = clCreateKernel(program, kernel_info->kernel_name, &err);
|
||||
if(!kernel_info->kernel || err != CL_SUCCESS)
|
||||
return err;
|
||||
kernel_info = kernel_info->next;
|
||||
}
|
||||
|
||||
if(plan->format == clFFT_SplitComplexFormat)
|
||||
plan->twist_kernel = clCreateKernel(program, "clFFT_1DTwistSplit", &err);
|
||||
else
|
||||
plan->twist_kernel = clCreateKernel(program, "clFFT_1DTwistInterleaved", &err);
|
||||
|
||||
if(!plan->twist_kernel || err)
|
||||
return err;
|
||||
cl_program program = plan->program;
|
||||
cl_fft_kernel_info *kernel_info = plan->kernel_info;
|
||||
|
||||
return CL_SUCCESS;
|
||||
cl_int err;
|
||||
while (kernel_info)
|
||||
{
|
||||
kernel_info->kernel = clCreateKernel(program, kernel_info->kernel_name, &err);
|
||||
if (!kernel_info->kernel || err != CL_SUCCESS)
|
||||
return err;
|
||||
kernel_info = kernel_info->next;
|
||||
}
|
||||
|
||||
if (plan->format == clFFT_SplitComplexFormat)
|
||||
plan->twist_kernel = clCreateKernel(program, "clFFT_1DTwistSplit", &err);
|
||||
else
|
||||
plan->twist_kernel = clCreateKernel(program, "clFFT_1DTwistInterleaved", &err);
|
||||
|
||||
if (!plan->twist_kernel || err)
|
||||
return err;
|
||||
|
||||
return CL_SUCCESS;
|
||||
}
|
||||
|
||||
int getMaxKernelWorkGroupSize(cl_fft_plan *plan, unsigned int *max_wg_size, unsigned int num_devices, cl_device_id *devices)
|
||||
{
|
||||
{
|
||||
int reg_needed = 0;
|
||||
*max_wg_size = std::numeric_limits<int>::max();
|
||||
int err;
|
||||
unsigned wg_size;
|
||||
|
||||
unsigned int i;
|
||||
for(i = 0; i < num_devices; i++)
|
||||
{
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while(kInfo)
|
||||
{
|
||||
err = clGetKernelWorkGroupInfo(kInfo->kernel, devices[i], CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &wg_size, NULL);
|
||||
if(err != CL_SUCCESS)
|
||||
return -1;
|
||||
|
||||
if(wg_size < kInfo->num_workitems_per_workgroup)
|
||||
reg_needed |= 1;
|
||||
|
||||
if(*max_wg_size > wg_size)
|
||||
*max_wg_size = wg_size;
|
||||
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return reg_needed;
|
||||
}
|
||||
|
||||
#define ERR_MACRO(err) { \
|
||||
if( err != CL_SUCCESS) \
|
||||
{ \
|
||||
if(error_code) \
|
||||
*error_code = err; \
|
||||
clFFT_DestroyPlan((clFFT_Plan) plan); \
|
||||
return (clFFT_Plan) NULL; \
|
||||
} \
|
||||
}
|
||||
unsigned int i;
|
||||
for (i = 0; i < num_devices; i++)
|
||||
{
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while (kInfo)
|
||||
{
|
||||
err = clGetKernelWorkGroupInfo(kInfo->kernel, devices[i], CL_KERNEL_WORK_GROUP_SIZE, sizeof(size_t), &wg_size, NULL);
|
||||
if (err != CL_SUCCESS)
|
||||
return -1;
|
||||
|
||||
if (wg_size < kInfo->num_workitems_per_workgroup)
|
||||
reg_needed |= 1;
|
||||
|
||||
if (*max_wg_size > wg_size)
|
||||
*max_wg_size = wg_size;
|
||||
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
}
|
||||
|
||||
return reg_needed;
|
||||
}
|
||||
|
||||
#define ERR_MACRO(err) \
|
||||
{ \
|
||||
if (err != CL_SUCCESS) \
|
||||
{ \
|
||||
if (error_code) \
|
||||
*error_code = err; \
|
||||
clFFT_DestroyPlan((clFFT_Plan)plan); \
|
||||
return (clFFT_Plan)NULL; \
|
||||
} \
|
||||
}
|
||||
|
||||
clFFT_Plan
|
||||
clFFT_CreatePlan(cl_context context, clFFT_Dim3 n, clFFT_Dimension dim, clFFT_DataFormat dataFormat, cl_int *error_code )
|
||||
clFFT_CreatePlan(cl_context context, clFFT_Dim3 n, clFFT_Dimension dim, clFFT_DataFormat dataFormat, cl_int *error_code)
|
||||
{
|
||||
int i;
|
||||
cl_int err;
|
||||
int isPow2 = 1;
|
||||
cl_fft_plan *plan = NULL;
|
||||
ostringstream kString;
|
||||
int num_devices;
|
||||
int gpu_found = 0;
|
||||
cl_device_id devices[16];
|
||||
size_t ret_size;
|
||||
cl_device_type device_type;
|
||||
|
||||
if(!context)
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
|
||||
isPow2 |= n.x && !( (n.x - 1) & n.x );
|
||||
isPow2 |= n.y && !( (n.y - 1) & n.y );
|
||||
isPow2 |= n.z && !( (n.z - 1) & n.z );
|
||||
int i;
|
||||
cl_int err;
|
||||
int isPow2 = 1;
|
||||
cl_fft_plan *plan = NULL;
|
||||
ostringstream kString;
|
||||
int num_devices;
|
||||
int gpu_found = 0;
|
||||
cl_device_id devices[16];
|
||||
size_t ret_size;
|
||||
cl_device_type device_type;
|
||||
|
||||
if(!isPow2)
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
|
||||
if( (dim == clFFT_1D && (n.y != 1 || n.z != 1)) || (dim == clFFT_2D && n.z != 1) )
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
if (!context)
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
|
||||
plan = (cl_fft_plan *) malloc(sizeof(cl_fft_plan));
|
||||
if(!plan)
|
||||
ERR_MACRO(CL_OUT_OF_RESOURCES);
|
||||
|
||||
plan->context = context;
|
||||
clRetainContext(context);
|
||||
plan->n = n;
|
||||
plan->dim = dim;
|
||||
plan->format = dataFormat;
|
||||
plan->kernel_info = 0;
|
||||
plan->num_kernels = 0;
|
||||
plan->twist_kernel = 0;
|
||||
plan->program = 0;
|
||||
plan->temp_buffer_needed = 0;
|
||||
plan->last_batch_size = 0;
|
||||
plan->tempmemobj = 0;
|
||||
plan->tempmemobj_real = 0;
|
||||
plan->tempmemobj_imag = 0;
|
||||
plan->max_localmem_fft_size = 2048;
|
||||
plan->max_work_item_per_workgroup = 256;
|
||||
plan->max_radix = 16;
|
||||
plan->min_mem_coalesce_width = 16;
|
||||
plan->num_local_mem_banks = 16;
|
||||
|
||||
patch_kernel_source:
|
||||
isPow2 |= n.x && !((n.x - 1) & n.x);
|
||||
isPow2 |= n.y && !((n.y - 1) & n.y);
|
||||
isPow2 |= n.z && !((n.z - 1) & n.z);
|
||||
|
||||
plan->kernel_string = new string("");
|
||||
if(!plan->kernel_string)
|
||||
if (!isPow2)
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
|
||||
if ((dim == clFFT_1D && (n.y != 1 || n.z != 1)) || (dim == clFFT_2D && n.z != 1))
|
||||
ERR_MACRO(CL_INVALID_VALUE);
|
||||
|
||||
plan = (cl_fft_plan *)malloc(sizeof(cl_fft_plan));
|
||||
if (!plan)
|
||||
ERR_MACRO(CL_OUT_OF_RESOURCES);
|
||||
|
||||
getBlockConfigAndKernelString(plan);
|
||||
|
||||
const char *source_str = plan->kernel_string->c_str();
|
||||
plan->program = clCreateProgramWithSource(context, 1, (const char**) &source_str, NULL, &err);
|
||||
plan->context = context;
|
||||
clRetainContext(context);
|
||||
plan->n = n;
|
||||
plan->dim = dim;
|
||||
plan->format = dataFormat;
|
||||
plan->kernel_info = 0;
|
||||
plan->num_kernels = 0;
|
||||
plan->twist_kernel = 0;
|
||||
plan->program = 0;
|
||||
plan->temp_buffer_needed = 0;
|
||||
plan->last_batch_size = 0;
|
||||
plan->tempmemobj = 0;
|
||||
plan->tempmemobj_real = 0;
|
||||
plan->tempmemobj_imag = 0;
|
||||
plan->max_localmem_fft_size = 2048;
|
||||
plan->max_work_item_per_workgroup = 256;
|
||||
plan->max_radix = 16;
|
||||
plan->min_mem_coalesce_width = 16;
|
||||
plan->num_local_mem_banks = 16;
|
||||
|
||||
patch_kernel_source:
|
||||
|
||||
plan->kernel_string = new string("");
|
||||
if (!plan->kernel_string)
|
||||
ERR_MACRO(CL_OUT_OF_RESOURCES);
|
||||
|
||||
getBlockConfigAndKernelString(plan);
|
||||
|
||||
const char *source_str = plan->kernel_string->c_str();
|
||||
plan->program = clCreateProgramWithSource(context, 1, (const char **)&source_str, NULL, &err);
|
||||
ERR_MACRO(err);
|
||||
|
||||
err = clGetContextInfo(context, CL_CONTEXT_DEVICES, sizeof(devices), devices, &ret_size);
|
||||
ERR_MACRO(err);
|
||||
|
||||
num_devices = (int)(ret_size / sizeof(cl_device_id));
|
||||
|
||||
for(i = 0; i < num_devices; i++)
|
||||
{
|
||||
err = clGetDeviceInfo(devices[i], CL_DEVICE_TYPE, sizeof(device_type), &device_type, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
if(device_type == CL_DEVICE_TYPE_GPU)
|
||||
{
|
||||
gpu_found = 1;
|
||||
err = clBuildProgram(plan->program, 1, &devices[i], "-cl-mad-enable", NULL, NULL);
|
||||
if (err != CL_SUCCESS)
|
||||
{
|
||||
char *build_log;
|
||||
char devicename[200];
|
||||
size_t log_size;
|
||||
|
||||
err = clGetProgramBuildInfo(plan->program, devices[i], CL_PROGRAM_BUILD_LOG, 0, NULL, &log_size);
|
||||
ERR_MACRO(err);
|
||||
|
||||
build_log = (char *) malloc(log_size + 1);
|
||||
|
||||
err = clGetProgramBuildInfo(plan->program, devices[i], CL_PROGRAM_BUILD_LOG, log_size, build_log, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
err = clGetDeviceInfo(devices[i], CL_DEVICE_NAME, sizeof(devicename), devicename, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
fprintf(stdout, "FFT program build log on device %s\n", devicename);
|
||||
fprintf(stdout, "%s\n", build_log);
|
||||
free(build_log);
|
||||
|
||||
ERR_MACRO(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!gpu_found)
|
||||
ERR_MACRO(CL_INVALID_CONTEXT);
|
||||
|
||||
err = createKernelList(plan);
|
||||
err = clGetContextInfo(context, CL_CONTEXT_DEVICES, sizeof(devices), devices, &ret_size);
|
||||
ERR_MACRO(err);
|
||||
|
||||
|
||||
num_devices = (int)(ret_size / sizeof(cl_device_id));
|
||||
|
||||
for (i = 0; i < num_devices; i++)
|
||||
{
|
||||
err = clGetDeviceInfo(devices[i], CL_DEVICE_TYPE, sizeof(device_type), &device_type, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
if (device_type == CL_DEVICE_TYPE_GPU)
|
||||
{
|
||||
gpu_found = 1;
|
||||
err = clBuildProgram(plan->program, 1, &devices[i], "-cl-mad-enable", NULL, NULL);
|
||||
if (err != CL_SUCCESS)
|
||||
{
|
||||
char *build_log;
|
||||
char devicename[200];
|
||||
size_t log_size;
|
||||
|
||||
err = clGetProgramBuildInfo(plan->program, devices[i], CL_PROGRAM_BUILD_LOG, 0, NULL, &log_size);
|
||||
ERR_MACRO(err);
|
||||
|
||||
build_log = (char *)malloc(log_size + 1);
|
||||
|
||||
err = clGetProgramBuildInfo(plan->program, devices[i], CL_PROGRAM_BUILD_LOG, log_size, build_log, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
err = clGetDeviceInfo(devices[i], CL_DEVICE_NAME, sizeof(devicename), devicename, NULL);
|
||||
ERR_MACRO(err);
|
||||
|
||||
fprintf(stdout, "FFT program build log on device %s\n", devicename);
|
||||
fprintf(stdout, "%s\n", build_log);
|
||||
free(build_log);
|
||||
|
||||
ERR_MACRO(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!gpu_found)
|
||||
ERR_MACRO(CL_INVALID_CONTEXT);
|
||||
|
||||
err = createKernelList(plan);
|
||||
ERR_MACRO(err);
|
||||
|
||||
// we created program and kernels based on "some max work group size (default 256)" ... this work group size
|
||||
// may be larger than what kernel may execute with ... if thats the case we need to regenerate the kernel source
|
||||
// setting this as limit i.e max group size and rebuild.
|
||||
unsigned int max_kernel_wg_size;
|
||||
int patching_req = getMaxKernelWorkGroupSize(plan, &max_kernel_wg_size, num_devices, devices);
|
||||
if(patching_req == -1)
|
||||
{
|
||||
ERR_MACRO(err);
|
||||
}
|
||||
|
||||
if(patching_req)
|
||||
{
|
||||
destroy_plan(plan);
|
||||
plan->max_work_item_per_workgroup = max_kernel_wg_size;
|
||||
goto patch_kernel_source;
|
||||
}
|
||||
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while(kInfo)
|
||||
{
|
||||
plan->num_kernels++;
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
|
||||
if(error_code)
|
||||
*error_code = CL_SUCCESS;
|
||||
|
||||
return (clFFT_Plan) plan;
|
||||
// may be larger than what kernel may execute with ... if thats the case we need to regenerate the kernel source
|
||||
// setting this as limit i.e max group size and rebuild.
|
||||
unsigned int max_kernel_wg_size;
|
||||
int patching_req = getMaxKernelWorkGroupSize(plan, &max_kernel_wg_size, num_devices, devices);
|
||||
if (patching_req == -1)
|
||||
{
|
||||
ERR_MACRO(err);
|
||||
}
|
||||
|
||||
if (patching_req)
|
||||
{
|
||||
destroy_plan(plan);
|
||||
plan->max_work_item_per_workgroup = max_kernel_wg_size;
|
||||
goto patch_kernel_source;
|
||||
}
|
||||
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
while (kInfo)
|
||||
{
|
||||
plan->num_kernels++;
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
|
||||
if (error_code)
|
||||
*error_code = CL_SUCCESS;
|
||||
|
||||
return (clFFT_Plan)plan;
|
||||
}
|
||||
|
||||
void
|
||||
clFFT_DestroyPlan(clFFT_Plan plan)
|
||||
void clFFT_DestroyPlan(clFFT_Plan plan)
|
||||
{
|
||||
cl_fft_plan *Plan = (cl_fft_plan *) plan;
|
||||
if(Plan)
|
||||
{
|
||||
destroy_plan(Plan);
|
||||
clReleaseContext(Plan->context);
|
||||
free(Plan);
|
||||
}
|
||||
cl_fft_plan *Plan = (cl_fft_plan *)plan;
|
||||
if (Plan)
|
||||
{
|
||||
destroy_plan(Plan);
|
||||
clReleaseContext(Plan->context);
|
||||
free(Plan);
|
||||
}
|
||||
}
|
||||
|
||||
void clFFT_DumpPlan( clFFT_Plan Plan, FILE *file)
|
||||
void clFFT_DumpPlan(clFFT_Plan Plan, FILE *file)
|
||||
{
|
||||
size_t gDim, lDim;
|
||||
FILE *out;
|
||||
if(!file)
|
||||
out = stdout;
|
||||
else
|
||||
out = file;
|
||||
|
||||
cl_fft_plan *plan = (cl_fft_plan *) Plan;
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
|
||||
while(kInfo)
|
||||
{
|
||||
cl_int s = 1;
|
||||
getKernelWorkDimensions(plan, kInfo, &s, &gDim, &lDim);
|
||||
fprintf(out, "Run kernel %s with global dim = {%zd*BatchSize}, local dim={%zd}\n", kInfo->kernel_name, gDim, lDim);
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
fprintf(out, "%s\n", plan->kernel_string->c_str());
|
||||
size_t gDim, lDim;
|
||||
FILE *out;
|
||||
if (!file)
|
||||
out = stdout;
|
||||
else
|
||||
out = file;
|
||||
|
||||
cl_fft_plan *plan = (cl_fft_plan *)Plan;
|
||||
cl_fft_kernel_info *kInfo = plan->kernel_info;
|
||||
|
||||
while (kInfo)
|
||||
{
|
||||
cl_int s = 1;
|
||||
getKernelWorkDimensions(plan, kInfo, &s, &gDim, &lDim);
|
||||
fprintf(out, "Run kernel %s with global dim = {%zd*BatchSize}, local dim={%zd}\n", kInfo->kernel_name, gDim, lDim);
|
||||
kInfo = kInfo->next;
|
||||
}
|
||||
fprintf(out, "%s\n", plan->kernel_string->c_str());
|
||||
}
|
||||
|
@ -253,11 +253,12 @@ const unsigned int tbl_CRC24Q[] = {
|
||||
0x42FA2F, 0xC4B6D4, 0xC82F22, 0x4E63D9, 0xD11CCE, 0x575035, 0x5BC9C3, 0xDD8538};
|
||||
|
||||
|
||||
extern "C" {
|
||||
void dgemm_(char *, char *, int *, int *, int *, double *, double *, int *, double *, int *, double *, double *, int *);
|
||||
extern void dgetrf_(int *, int *, double *, int *, int *, int *);
|
||||
extern void dgetri_(int *, double *, int *, int *, double *, int *, int *);
|
||||
extern void dgetrs_(char *, int *, int *, double *, int *, int *, double *, int *, int *);
|
||||
extern "C"
|
||||
{
|
||||
void dgemm_(char *, char *, int *, int *, int *, double *, double *, int *, double *, int *, double *, double *, int *);
|
||||
extern void dgetrf_(int *, int *, double *, int *, int *, int *);
|
||||
extern void dgetri_(int *, double *, int *, int *, double *, int *, int *);
|
||||
extern void dgetrs_(char *, int *, int *, double *, int *, int *, double *, int *, int *);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
#ifndef _MSC_VER // [
|
||||
#ifndef _MSC_VER // [
|
||||
#error "Use this header only with Microsoft Visual C++ compilers!"
|
||||
#endif // _MSC_VER ]
|
||||
#endif // _MSC_VER ]
|
||||
|
||||
#ifndef _MSC_CONFIG_H_ // [
|
||||
#ifndef _MSC_CONFIG_H_ // [
|
||||
#define _MSC_CONFIG_H_
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// enable inline functions for C code
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
#ifndef __cplusplus
|
||||
# define inline __inline
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@ -23,12 +23,15 @@ typedef ptrdiff_t ssize_t;
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
#if _MSC_VER < 1800
|
||||
#include <math.h>
|
||||
static inline long lrint(double x){return (long)(x > 0.0 ? x + 0.5 : x - 0.5);}
|
||||
static inline long lrintf(float x){return (long)(x > 0.0f ? x + 0.5f : x - 0.5f);}
|
||||
static inline long long llrint(double x){return (long long)(x > 0.0 ? x + 0.5 : x - 0.5);}
|
||||
static inline long long llrintf(float x){return (long long)(x > 0.0f ? x + 0.5f : x - 0.5f);}
|
||||
static inline double rint(double x){return (x > 0.0)? floor(x + 0.5) : ceil(x - 0.5);}
|
||||
static inline float rintf(float x){return (x > 0.0f)? floorf(x + 0.5f) : ceilf(x - 0.5f);}
|
||||
static inline long lrint(double x)
|
||||
{
|
||||
return (long)(x > 0.0 ? x + 0.5 : x - 0.5);
|
||||
}
|
||||
static inline long lrintf(float x) { return (long)(x > 0.0f ? x + 0.5f : x - 0.5f); }
|
||||
static inline long long llrint(double x) { return (long long)(x > 0.0 ? x + 0.5 : x - 0.5); }
|
||||
static inline long long llrintf(float x) { return (long long)(x > 0.0f ? x + 0.5f : x - 0.5f); }
|
||||
static inline double rint(double x) { return (x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5); }
|
||||
static inline float rintf(float x) { return (x > 0.0f) ? floorf(x + 0.5f) : ceilf(x - 0.5f); }
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
@ -43,7 +46,10 @@ static inline float rintf(float x){return (x > 0.0f)? floorf(x + 0.5f) : ceilf(x
|
||||
// random and srandom
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
#include <stdlib.h>
|
||||
static inline long int random (void) { return rand(); }
|
||||
static inline void srandom (unsigned int seed) { srand(seed); }
|
||||
static inline long int random(void)
|
||||
{
|
||||
return rand();
|
||||
}
|
||||
static inline void srandom(unsigned int seed) { srand(seed); }
|
||||
|
||||
#endif // _MSC_CONFIG_H_ ]
|
||||
#endif // _MSC_CONFIG_H_ ]
|
||||
|
@ -31,85 +31,97 @@ static intptr_t __alignment_mask = 0;
|
||||
|
||||
struct volk_gnsssdr_machine *get_machine(void)
|
||||
{
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
static struct volk_gnsssdr_machine *machine = NULL;
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
static struct volk_gnsssdr_machine *machine = NULL;
|
||||
|
||||
if(machine != NULL)
|
||||
return machine;
|
||||
else {
|
||||
unsigned int max_score = 0;
|
||||
unsigned int i;
|
||||
struct volk_gnsssdr_machine *max_machine = NULL;
|
||||
for(i=0; i<n_volk_gnsssdr_machines; i++) {
|
||||
if(!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch()))) {
|
||||
if(volk_gnsssdr_machines[i]->caps > max_score) {
|
||||
max_score = volk_gnsssdr_machines[i]->caps;
|
||||
max_machine = volk_gnsssdr_machines[i];
|
||||
if (machine != NULL)
|
||||
return machine;
|
||||
else
|
||||
{
|
||||
unsigned int max_score = 0;
|
||||
unsigned int i;
|
||||
struct volk_gnsssdr_machine *max_machine = NULL;
|
||||
for (i = 0; i < n_volk_gnsssdr_machines; i++)
|
||||
{
|
||||
if (!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch())))
|
||||
{
|
||||
if (volk_gnsssdr_machines[i]->caps > max_score)
|
||||
{
|
||||
max_score = volk_gnsssdr_machines[i]->caps;
|
||||
max_machine = volk_gnsssdr_machines[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
machine = max_machine;
|
||||
//printf("Using Volk machine: %s\n", machine->name);
|
||||
__alignment = machine->alignment;
|
||||
__alignment_mask = (intptr_t)(__alignment - 1);
|
||||
return machine;
|
||||
}
|
||||
}
|
||||
}
|
||||
machine = max_machine;
|
||||
//printf("Using Volk machine: %s\n", machine->name);
|
||||
__alignment = machine->alignment;
|
||||
__alignment_mask = (intptr_t)(__alignment-1);
|
||||
return machine;
|
||||
}
|
||||
}
|
||||
|
||||
void volk_gnsssdr_list_machines(void)
|
||||
{
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
|
||||
unsigned int i;
|
||||
for(i=0; i<n_volk_gnsssdr_machines; i++) {
|
||||
if(!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch()))) {
|
||||
printf("%s;", volk_gnsssdr_machines[i]->name);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
unsigned int i;
|
||||
for (i = 0; i < n_volk_gnsssdr_machines; i++)
|
||||
{
|
||||
if (!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch())))
|
||||
{
|
||||
printf("%s;", volk_gnsssdr_machines[i]->name);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
const char* volk_gnsssdr_get_machine(void)
|
||||
const char *volk_gnsssdr_get_machine(void)
|
||||
{
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
static struct volk_gnsssdr_machine *machine = NULL;
|
||||
extern struct volk_gnsssdr_machine *volk_gnsssdr_machines[];
|
||||
extern unsigned int n_volk_gnsssdr_machines;
|
||||
static struct volk_gnsssdr_machine *machine = NULL;
|
||||
|
||||
if(machine != NULL)
|
||||
return machine->name;
|
||||
else {
|
||||
unsigned int max_score = 0;
|
||||
unsigned int i;
|
||||
struct volk_gnsssdr_machine *max_machine = NULL;
|
||||
for(i=0; i<n_volk_gnsssdr_machines; i++) {
|
||||
if(!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch()))) {
|
||||
if(volk_gnsssdr_machines[i]->caps > max_score) {
|
||||
max_score = volk_gnsssdr_machines[i]->caps;
|
||||
max_machine = volk_gnsssdr_machines[i];
|
||||
if (machine != NULL)
|
||||
return machine->name;
|
||||
else
|
||||
{
|
||||
unsigned int max_score = 0;
|
||||
unsigned int i;
|
||||
struct volk_gnsssdr_machine *max_machine = NULL;
|
||||
for (i = 0; i < n_volk_gnsssdr_machines; i++)
|
||||
{
|
||||
if (!(volk_gnsssdr_machines[i]->caps & (~volk_gnsssdr_get_lvarch())))
|
||||
{
|
||||
if (volk_gnsssdr_machines[i]->caps > max_score)
|
||||
{
|
||||
max_score = volk_gnsssdr_machines[i]->caps;
|
||||
max_machine = volk_gnsssdr_machines[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
machine = max_machine;
|
||||
return machine->name;
|
||||
}
|
||||
}
|
||||
}
|
||||
machine = max_machine;
|
||||
return machine->name;
|
||||
}
|
||||
}
|
||||
|
||||
size_t volk_gnsssdr_get_alignment(void)
|
||||
{
|
||||
get_machine(); //ensures alignment is set
|
||||
get_machine(); //ensures alignment is set
|
||||
return __alignment;
|
||||
}
|
||||
|
||||
bool volk_gnsssdr_is_aligned(const void *ptr)
|
||||
{
|
||||
return ((intptr_t)(ptr) & __alignment_mask) == 0;
|
||||
return ((intptr_t)(ptr)&__alignment_mask) == 0;
|
||||
}
|
||||
|
||||
#define LV_HAVE_GENERIC
|
||||
#define LV_HAVE_DISPATCHER
|
||||
|
||||
// clang-format off
|
||||
|
||||
%for kern in kernels:
|
||||
|
||||
%if kern.has_dispatcher:
|
||||
@ -190,6 +202,8 @@ void ${kern.name}_manual(${kern.arglist_full}, const char* impl_name)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
volk_gnsssdr_func_desc_t ${kern.name}_get_func_desc(void) {
|
||||
const char **impl_names = get_machine()->${kern.name}_impl_names;
|
||||
const int *impl_deps = get_machine()->${kern.name}_impl_deps;
|
||||
@ -205,3 +219,5 @@ volk_gnsssdr_func_desc_t ${kern.name}_get_func_desc(void) {
|
||||
}
|
||||
|
||||
%endfor
|
||||
|
||||
// clang-format on
|
||||
|
@ -42,7 +42,7 @@ typedef struct volk_gnsssdr_func_desc
|
||||
VOLK_API void volk_gnsssdr_list_machines(void);
|
||||
|
||||
//! Returns the name of the machine this instance will use
|
||||
VOLK_API const char* volk_gnsssdr_get_machine(void);
|
||||
VOLK_API const char *volk_gnsssdr_get_machine(void);
|
||||
|
||||
//! Get the machine alignment in bytes
|
||||
VOLK_API size_t volk_gnsssdr_get_alignment(void);
|
||||
@ -73,6 +73,7 @@ VOLK_API bool volk_gnsssdr_is_aligned(const void *ptr);
|
||||
//! A function pointer to the dispatcher implementation
|
||||
extern VOLK_API ${kern.pname} ${kern.name};
|
||||
|
||||
// clang-format off
|
||||
//! A function pointer to the fastest aligned implementation
|
||||
extern VOLK_API ${kern.pname} ${kern.name}_a;
|
||||
|
||||
@ -85,6 +86,7 @@ extern VOLK_API void ${kern.name}_manual(${kern.arglist_full}, const char* impl_
|
||||
//! Get description parameters for this kernel
|
||||
extern VOLK_API volk_gnsssdr_func_desc_t ${kern.name}_get_func_desc(void);
|
||||
%endfor
|
||||
// clang-format off
|
||||
|
||||
__VOLK_DECL_END
|
||||
|
||||
|
@ -19,10 +19,11 @@
|
||||
#ifndef INCLUDED_VOLK_GNSSSDR_CONFIG_FIXED_H
|
||||
#define INCLUDED_VOLK_GNSSSDR_CONFIG_FIXED_H
|
||||
|
||||
// clang-format off
|
||||
%for i, arch in enumerate(archs):
|
||||
//#ifndef LV_${arch.name.upper()}
|
||||
#define LV_${arch.name.upper()} ${i}
|
||||
//#endif
|
||||
%endfor
|
||||
|
||||
// clang-format on
|
||||
#endif /*INCLUDED_VOLK_GNSSSDR_CONFIG_FIXED*/
|
||||
|
@ -24,50 +24,54 @@
|
||||
struct VOLK_CPU volk_gnsssdr_cpu;
|
||||
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
|
||||
#define VOLK_CPU_x86
|
||||
#define VOLK_CPU_x86
|
||||
#endif
|
||||
|
||||
#if defined(VOLK_CPU_x86)
|
||||
|
||||
//implement get cpuid for gcc compilers using a system or local copy of cpuid.h
|
||||
#if defined(__GNUC__)
|
||||
#include <cpuid.h>
|
||||
#define cpuid_x86(op, r) __get_cpuid(op, (unsigned int *)r+0, (unsigned int *)r+1, (unsigned int *)r+2, (unsigned int *)r+3)
|
||||
#define cpuid_x86_count(op, count, regs) __cpuid_count(op, count, *((unsigned int*)regs), *((unsigned int*)regs+1), *((unsigned int*)regs+2), *((unsigned int*)regs+3))
|
||||
#include <cpuid.h>
|
||||
#define cpuid_x86(op, r) __get_cpuid(op, (unsigned int *)r + 0, (unsigned int *)r + 1, (unsigned int *)r + 2, (unsigned int *)r + 3)
|
||||
#define cpuid_x86_count(op, count, regs) __cpuid_count(op, count, *((unsigned int *)regs), *((unsigned int *)regs + 1), *((unsigned int *)regs + 2), *((unsigned int *)regs + 3))
|
||||
|
||||
/* Return Intel AVX extended CPU capabilities register.
|
||||
/* Return Intel AVX extended CPU capabilities register.
|
||||
* This function will bomb on non-AVX-capable machines, so
|
||||
* check for AVX capability before executing.
|
||||
*/
|
||||
#if ((__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__clang_major__ >= 3)) && defined(HAVE_XGETBV)
|
||||
static inline unsigned long long _xgetbv(unsigned int index){
|
||||
unsigned int eax, edx;
|
||||
__VOLK_ASM __VOLK_VOLATILE ("xgetbv" : "=a"(eax), "=d"(edx) : "c"(index));
|
||||
return ((unsigned long long)edx << 32) | eax;
|
||||
}
|
||||
#define __xgetbv() _xgetbv(0)
|
||||
#else
|
||||
#define __xgetbv() 0
|
||||
#endif
|
||||
#if ((__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__clang_major__ >= 3)) && defined(HAVE_XGETBV)
|
||||
static inline unsigned long long _xgetbv(unsigned int index)
|
||||
{
|
||||
unsigned int eax, edx;
|
||||
__VOLK_ASM __VOLK_VOLATILE("xgetbv"
|
||||
: "=a"(eax), "=d"(edx)
|
||||
: "c"(index));
|
||||
return ((unsigned long long)edx << 32) | eax;
|
||||
}
|
||||
#define __xgetbv() _xgetbv(0)
|
||||
#else
|
||||
#define __xgetbv() 0
|
||||
#endif
|
||||
|
||||
//implement get cpuid for MSVC compilers using __cpuid intrinsic
|
||||
#elif defined(_MSC_VER) && defined(HAVE_INTRIN_H)
|
||||
#include <intrin.h>
|
||||
#define cpuid_x86(op, r) __cpuid(((int*)r), op)
|
||||
#include <intrin.h>
|
||||
#define cpuid_x86(op, r) __cpuid(((int *)r), op)
|
||||
|
||||
#if defined(_XCR_XFEATURE_ENABLED_MASK)
|
||||
#define __xgetbv() _xgetbv(_XCR_XFEATURE_ENABLED_MASK)
|
||||
#else
|
||||
#define __xgetbv() 0
|
||||
#endif
|
||||
#if defined(_XCR_XFEATURE_ENABLED_MASK)
|
||||
#define __xgetbv() _xgetbv(_XCR_XFEATURE_ENABLED_MASK)
|
||||
#else
|
||||
#define __xgetbv() 0
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error "A get cpuid for volk_gnsssdr is not available on this compiler..."
|
||||
#endif //defined(__GNUC__)
|
||||
#error "A get cpuid for volk_gnsssdr is not available on this compiler..."
|
||||
#endif //defined(__GNUC__)
|
||||
|
||||
#endif //defined(VOLK_CPU_x86)
|
||||
#endif //defined(VOLK_CPU_x86)
|
||||
|
||||
static inline unsigned int cpuid_count_x86_bit(unsigned int level, unsigned int count, unsigned int reg, unsigned int bit) {
|
||||
static inline unsigned int cpuid_count_x86_bit(unsigned int level, unsigned int count, unsigned int reg, unsigned int bit)
|
||||
{
|
||||
#if defined(VOLK_CPU_x86)
|
||||
unsigned int regs[4] = {0};
|
||||
cpuid_x86_count(level, count, regs);
|
||||
@ -77,10 +81,11 @@ static inline unsigned int cpuid_count_x86_bit(unsigned int level, unsigned int
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline unsigned int cpuid_x86_bit(unsigned int reg, unsigned int op, unsigned int bit) {
|
||||
static inline unsigned int cpuid_x86_bit(unsigned int reg, unsigned int op, unsigned int bit)
|
||||
{
|
||||
#if defined(VOLK_CPU_x86)
|
||||
unsigned int regs[4];
|
||||
memset(regs, 0, sizeof(unsigned int)*4);
|
||||
memset(regs, 0, sizeof(unsigned int) * 4);
|
||||
cpuid_x86(op, regs);
|
||||
return regs[reg] >> bit & 0x01;
|
||||
#else
|
||||
@ -88,10 +93,11 @@ static inline unsigned int cpuid_x86_bit(unsigned int reg, unsigned int op, unsi
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline unsigned int check_extended_cpuid(unsigned int val) {
|
||||
static inline unsigned int check_extended_cpuid(unsigned int val)
|
||||
{
|
||||
#if defined(VOLK_CPU_x86)
|
||||
unsigned int regs[4];
|
||||
memset(regs, 0, sizeof(unsigned int)*4);
|
||||
memset(regs, 0, sizeof(unsigned int) * 4);
|
||||
cpuid_x86(0x80000000, regs);
|
||||
return regs[0] >= val;
|
||||
#else
|
||||
@ -99,7 +105,8 @@ static inline unsigned int check_extended_cpuid(unsigned int val) {
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline unsigned int get_avx_enabled(void) {
|
||||
static inline unsigned int get_avx_enabled(void)
|
||||
{
|
||||
#if defined(VOLK_CPU_x86)
|
||||
return __xgetbv() & 0x6;
|
||||
#else
|
||||
@ -107,7 +114,8 @@ static inline unsigned int get_avx_enabled(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline unsigned int get_avx2_enabled(void) {
|
||||
static inline unsigned int get_avx2_enabled(void)
|
||||
{
|
||||
#if defined(VOLK_CPU_x86)
|
||||
return __xgetbv() & 0x6;
|
||||
#else
|
||||
@ -117,28 +125,30 @@ static inline unsigned int get_avx2_enabled(void) {
|
||||
|
||||
//neon detection is linux specific
|
||||
#if defined(__arm__) && defined(__linux__)
|
||||
#include <asm/hwcap.h>
|
||||
#include <linux/auxvec.h>
|
||||
#include <stdio.h>
|
||||
#define VOLK_CPU_ARM
|
||||
#include <asm/hwcap.h>
|
||||
#include <linux/auxvec.h>
|
||||
#include <stdio.h>
|
||||
#define VOLK_CPU_ARM
|
||||
#endif
|
||||
|
||||
static int has_neon(void){
|
||||
static int has_neon(void)
|
||||
{
|
||||
#if defined(VOLK_CPU_ARM)
|
||||
FILE *auxvec_f;
|
||||
unsigned long auxvec[2];
|
||||
unsigned int found_neon = 0;
|
||||
auxvec_f = fopen("/proc/self/auxv", "rb");
|
||||
if(!auxvec_f) return 0;
|
||||
if (!auxvec_f) return 0;
|
||||
|
||||
size_t r = 1;
|
||||
//so auxv is basically 32b of ID and 32b of value
|
||||
//so it goes like this
|
||||
while(!found_neon && r) {
|
||||
r = fread(auxvec, sizeof(unsigned long), 2, auxvec_f);
|
||||
if((auxvec[0] == AT_HWCAP) && (auxvec[1] & HWCAP_NEON))
|
||||
found_neon = 1;
|
||||
}
|
||||
while (!found_neon && r)
|
||||
{
|
||||
r = fread(auxvec, sizeof(unsigned long), 2, auxvec_f);
|
||||
if ((auxvec[0] == AT_HWCAP) && (auxvec[1] & HWCAP_NEON))
|
||||
found_neon = 1;
|
||||
}
|
||||
|
||||
fclose(auxvec_f);
|
||||
return found_neon;
|
||||
@ -146,6 +156,7 @@ static int has_neon(void){
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
// clang-format off
|
||||
|
||||
%for arch in archs:
|
||||
static int i_can_has_${arch.name} (void) {
|
||||
@ -195,3 +206,4 @@ unsigned int volk_gnsssdr_get_lvarch() {
|
||||
%endfor
|
||||
return retval;
|
||||
}
|
||||
// clang-format on
|
||||
|
@ -23,16 +23,18 @@
|
||||
|
||||
__VOLK_DECL_BEGIN
|
||||
|
||||
// clang-format off
|
||||
struct VOLK_CPU {
|
||||
%for arch in archs:
|
||||
int (*has_${arch.name}) ();
|
||||
%endfor
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
extern struct VOLK_CPU volk_gnsssdr_cpu;
|
||||
|
||||
void volk_gnsssdr_cpu_init ();
|
||||
unsigned int volk_gnsssdr_get_lvarch ();
|
||||
void volk_gnsssdr_cpu_init();
|
||||
unsigned int volk_gnsssdr_get_lvarch();
|
||||
|
||||
__VOLK_DECL_END
|
||||
|
||||
|
@ -16,6 +16,8 @@
|
||||
* along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// clang-format off
|
||||
|
||||
<% this_machine = machine_dict[args[0]] %>
|
||||
<% arch_names = this_machine.arch_names %>
|
||||
|
||||
@ -31,6 +33,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
%for kern in kernels:
|
||||
#include <volk_gnsssdr/${kern.name}.h>
|
||||
%endfor
|
||||
@ -56,3 +59,4 @@ struct volk_gnsssdr_machine volk_gnsssdr_machine_${this_machine.name} = {
|
||||
<% len_impls = len(impls) %> ${len_impls},
|
||||
%endfor
|
||||
};
|
||||
// clang-format on
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <volk_gnsssdr/volk_gnsssdr_typedefs.h>
|
||||
#include "volk_gnsssdr_machines.h"
|
||||
|
||||
// clang-format off
|
||||
struct volk_gnsssdr_machine *volk_gnsssdr_machines[] = {
|
||||
%for machine in machines:
|
||||
#ifdef LV_MACHINE_${machine.name.upper()}
|
||||
@ -27,5 +28,5 @@ struct volk_gnsssdr_machine *volk_gnsssdr_machines[] = {
|
||||
#endif
|
||||
%endfor
|
||||
};
|
||||
|
||||
unsigned int n_volk_gnsssdr_machines = sizeof(volk_gnsssdr_machines)/sizeof(*volk_gnsssdr_machines);
|
||||
// clang-format on
|
||||
unsigned int n_volk_gnsssdr_machines = sizeof(volk_gnsssdr_machines) / sizeof(*volk_gnsssdr_machines);
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
__VOLK_DECL_BEGIN
|
||||
|
||||
// clang-format off
|
||||
struct volk_gnsssdr_machine {
|
||||
const unsigned int caps; //capabilities (i.e., archs compiled into this machine, in the volk_gnsssdr_get_lvarch format)
|
||||
const char *name;
|
||||
@ -48,5 +49,6 @@ extern struct volk_gnsssdr_machine volk_gnsssdr_machine_${machine.name};
|
||||
%endfor
|
||||
|
||||
__VOLK_DECL_END
|
||||
// clang-format on
|
||||
|
||||
#endif //INCLUDED_LIBVOLK_GNSSSDR_MACHINES_H
|
||||
#endif //INCLUDED_LIBVOLK_GNSSSDR_MACHINES_H
|
||||
|
@ -22,8 +22,10 @@
|
||||
#include <inttypes.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_complex.h>
|
||||
|
||||
// clang-format off
|
||||
%for kern in kernels:
|
||||
typedef void (*${kern.pname})(${kern.arglist_types});
|
||||
%endfor
|
||||
// clang-format on
|
||||
|
||||
#endif /*INCLUDED_VOLK_GNSSSDR_TYPEDEFS*/
|
||||
|
@ -45,7 +45,8 @@
|
||||
#include <vector>
|
||||
|
||||
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#include "cnav_msg.h"
|
||||
#include "edc.h"
|
||||
#include "bits.h"
|
||||
|
@ -42,7 +42,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#include "cnav_msg.h"
|
||||
#include "edc.h"
|
||||
#include "bits.h"
|
||||
|
@ -76,9 +76,9 @@ struct GPU_Complex
|
||||
}
|
||||
CUDA_CALLABLE_MEMBER_DEVICE void multiply_acc(const GPU_Complex& a, const GPU_Complex& b)
|
||||
{
|
||||
//c=a*b+c
|
||||
//real part
|
||||
//c.r=(a.r*b.r - a.i*b.i)+c.r
|
||||
//c=a*b+c
|
||||
//real part
|
||||
//c.r=(a.r*b.r - a.i*b.i)+c.r
|
||||
#ifdef __CUDACC__
|
||||
r = __fmaf_rn(a.r, b.r, r);
|
||||
r = __fmaf_rn(-a.i, b.i, r);
|
||||
|
@ -34,7 +34,8 @@
|
||||
#ifndef GNSS_SDR_SUPL_CLIENT_H_
|
||||
#define GNSS_SDR_SUPL_CLIENT_H_
|
||||
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#include "supl.h"
|
||||
}
|
||||
#include "GPS_L1_CA.h"
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Accuracy */
|
||||
typedef long Accuracy_t;
|
||||
/* Accuracy */
|
||||
typedef long Accuracy_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Accuracy;
|
||||
asn_struct_free_f Accuracy_free;
|
||||
asn_struct_print_f Accuracy_print;
|
||||
asn_constr_check_f Accuracy_constraint;
|
||||
ber_type_decoder_f Accuracy_decode_ber;
|
||||
der_type_encoder_f Accuracy_encode_der;
|
||||
xer_type_decoder_f Accuracy_decode_xer;
|
||||
xer_type_encoder_f Accuracy_encode_xer;
|
||||
per_type_decoder_f Accuracy_decode_uper;
|
||||
per_type_encoder_f Accuracy_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Accuracy;
|
||||
asn_struct_free_f Accuracy_free;
|
||||
asn_struct_print_f Accuracy_print;
|
||||
asn_constr_check_f Accuracy_constraint;
|
||||
ber_type_decoder_f Accuracy_decode_ber;
|
||||
der_type_encoder_f Accuracy_encode_der;
|
||||
xer_type_decoder_f Accuracy_decode_xer;
|
||||
xer_type_encoder_f Accuracy_encode_xer;
|
||||
per_type_decoder_f Accuracy_decode_uper;
|
||||
per_type_encoder_f Accuracy_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,20 +15,21 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AccuracyOpt */
|
||||
typedef struct AccuracyOpt
|
||||
{
|
||||
Accuracy_t *accuracy /* OPTIONAL */;
|
||||
/* AccuracyOpt */
|
||||
typedef struct AccuracyOpt
|
||||
{
|
||||
Accuracy_t *accuracy /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AccuracyOpt_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AccuracyOpt_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AccuracyOpt;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AccuracyOpt;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AcquisAssist */
|
||||
typedef struct AcquisAssist
|
||||
{
|
||||
TimeRelation_t timeRelation;
|
||||
SeqOfAcquisElement_t acquisList;
|
||||
/* AcquisAssist */
|
||||
typedef struct AcquisAssist
|
||||
{
|
||||
TimeRelation_t timeRelation;
|
||||
SeqOfAcquisElement_t acquisList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AcquisAssist_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AcquisAssist_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AcquisAssist;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AcquisAssist;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,31 +16,32 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct AddionalDopplerFields;
|
||||
struct AddionalAngleFields;
|
||||
/* Forward declarations */
|
||||
struct AddionalDopplerFields;
|
||||
struct AddionalAngleFields;
|
||||
|
||||
/* AcquisElement */
|
||||
typedef struct AcquisElement
|
||||
{
|
||||
SatelliteID_t svid;
|
||||
long doppler0;
|
||||
struct AddionalDopplerFields *addionalDoppler /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long intCodePhase;
|
||||
long gpsBitNumber;
|
||||
long codePhaseSearchWindow;
|
||||
struct AddionalAngleFields *addionalAngle /* OPTIONAL */;
|
||||
/* AcquisElement */
|
||||
typedef struct AcquisElement
|
||||
{
|
||||
SatelliteID_t svid;
|
||||
long doppler0;
|
||||
struct AddionalDopplerFields *addionalDoppler /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long intCodePhase;
|
||||
long gpsBitNumber;
|
||||
long codePhaseSearchWindow;
|
||||
struct AddionalAngleFields *addionalAngle /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AcquisElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AcquisElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AcquisElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AcquisElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,21 +15,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AddionalAngleFields */
|
||||
typedef struct AddionalAngleFields
|
||||
{
|
||||
long azimuth;
|
||||
long elevation;
|
||||
/* AddionalAngleFields */
|
||||
typedef struct AddionalAngleFields
|
||||
{
|
||||
long azimuth;
|
||||
long elevation;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AddionalAngleFields_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AddionalAngleFields_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AddionalAngleFields;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AddionalAngleFields;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,21 +15,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AddionalDopplerFields */
|
||||
typedef struct AddionalDopplerFields
|
||||
{
|
||||
long doppler1;
|
||||
long dopplerUncertainty;
|
||||
/* AddionalDopplerFields */
|
||||
typedef struct AddionalDopplerFields
|
||||
{
|
||||
long doppler1;
|
||||
long dopplerUncertainty;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AddionalDopplerFields_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AddionalDopplerFields_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AddionalDopplerFields;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AddionalDopplerFields;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -17,26 +17,27 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AdditionalAssistanceData */
|
||||
typedef struct AdditionalAssistanceData
|
||||
{
|
||||
GPSAssistanceData_t *gpsAssistanceData /* OPTIONAL */;
|
||||
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
|
||||
/*
|
||||
/* AdditionalAssistanceData */
|
||||
typedef struct AdditionalAssistanceData
|
||||
{
|
||||
GPSAssistanceData_t *gpsAssistanceData /* OPTIONAL */;
|
||||
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
GANSSAssistanceData_t *ganssAssistanceData /* OPTIONAL */;
|
||||
GANSSAssistanceData_t *ganssAssistanceData /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AdditionalAssistanceData_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AdditionalAssistanceData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AdditionalAssistanceData;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AdditionalAssistanceData;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,21 +15,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AdditionalDopplerFields */
|
||||
typedef struct AdditionalDopplerFields
|
||||
{
|
||||
long doppler1;
|
||||
long dopplerUncertainty;
|
||||
/* AdditionalDopplerFields */
|
||||
typedef struct AdditionalDopplerFields
|
||||
{
|
||||
long doppler1;
|
||||
long dopplerUncertainty;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AdditionalDopplerFields_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AdditionalDopplerFields_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AdditionalDopplerFields;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AdditionalDopplerFields;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AlertFlag */
|
||||
typedef long AlertFlag_t;
|
||||
/* AlertFlag */
|
||||
typedef long AlertFlag_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AlertFlag;
|
||||
asn_struct_free_f AlertFlag_free;
|
||||
asn_struct_print_f AlertFlag_print;
|
||||
asn_constr_check_f AlertFlag_constraint;
|
||||
ber_type_decoder_f AlertFlag_decode_ber;
|
||||
der_type_encoder_f AlertFlag_encode_der;
|
||||
xer_type_decoder_f AlertFlag_decode_xer;
|
||||
xer_type_encoder_f AlertFlag_encode_xer;
|
||||
per_type_decoder_f AlertFlag_decode_uper;
|
||||
per_type_encoder_f AlertFlag_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AlertFlag;
|
||||
asn_struct_free_f AlertFlag_free;
|
||||
asn_struct_print_f AlertFlag_print;
|
||||
asn_constr_check_f AlertFlag_constraint;
|
||||
ber_type_decoder_f AlertFlag_decode_ber;
|
||||
der_type_encoder_f AlertFlag_encode_der;
|
||||
xer_type_decoder_f AlertFlag_decode_xer;
|
||||
xer_type_encoder_f AlertFlag_encode_xer;
|
||||
per_type_decoder_f AlertFlag_decode_uper;
|
||||
per_type_encoder_f AlertFlag_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,29 +15,30 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Almanac-KeplerianSet */
|
||||
typedef struct Almanac_KeplerianSet
|
||||
{
|
||||
long kepAlmanacE;
|
||||
long kepAlmanacDeltaI;
|
||||
long kepAlmanacOmegaDot;
|
||||
long kepSVHealth;
|
||||
long kepAlmanacAPowerHalf;
|
||||
long kepAlmanacOmega0;
|
||||
long kepAlmanacW;
|
||||
long kepAlmanacM0;
|
||||
long kepAlmanacAF0;
|
||||
long kepAlmanacAF1;
|
||||
/* Almanac-KeplerianSet */
|
||||
typedef struct Almanac_KeplerianSet
|
||||
{
|
||||
long kepAlmanacE;
|
||||
long kepAlmanacDeltaI;
|
||||
long kepAlmanacOmegaDot;
|
||||
long kepSVHealth;
|
||||
long kepAlmanacAPowerHalf;
|
||||
long kepAlmanacOmega0;
|
||||
long kepAlmanacW;
|
||||
long kepAlmanacM0;
|
||||
long kepAlmanacAF0;
|
||||
long kepAlmanacAF1;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Almanac_KeplerianSet_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Almanac_KeplerianSet_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Almanac_KeplerianSet;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Almanac_KeplerianSet;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Almanac */
|
||||
typedef struct Almanac
|
||||
{
|
||||
long alamanacWNa;
|
||||
SeqOfAlmanacElement_t almanacList;
|
||||
/* Almanac */
|
||||
typedef struct Almanac
|
||||
{
|
||||
long alamanacWNa;
|
||||
SeqOfAlmanacElement_t almanacList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Almanac_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Almanac_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Almanac;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Almanac;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,31 +16,32 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AlmanacElement */
|
||||
typedef struct AlmanacElement
|
||||
{
|
||||
SatelliteID_t satelliteID;
|
||||
long almanacE;
|
||||
long alamanacToa;
|
||||
long almanacKsii;
|
||||
long almanacOmegaDot;
|
||||
long almanacSVhealth;
|
||||
long almanacAPowerHalf;
|
||||
long almanacOmega0;
|
||||
long almanacW;
|
||||
long almanacM0;
|
||||
long almanacAF0;
|
||||
long almanacAF1;
|
||||
/* AlmanacElement */
|
||||
typedef struct AlmanacElement
|
||||
{
|
||||
SatelliteID_t satelliteID;
|
||||
long almanacE;
|
||||
long alamanacToa;
|
||||
long almanacKsii;
|
||||
long almanacOmegaDot;
|
||||
long almanacSVhealth;
|
||||
long almanacAPowerHalf;
|
||||
long almanacOmega0;
|
||||
long almanacW;
|
||||
long almanacM0;
|
||||
long almanacAF0;
|
||||
long almanacAF1;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AlmanacElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AlmanacElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AlmanacElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AlmanacElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AntiSpoofFlag */
|
||||
typedef long AntiSpoofFlag_t;
|
||||
/* AntiSpoofFlag */
|
||||
typedef long AntiSpoofFlag_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AntiSpoofFlag;
|
||||
asn_struct_free_f AntiSpoofFlag_free;
|
||||
asn_struct_print_f AntiSpoofFlag_print;
|
||||
asn_constr_check_f AntiSpoofFlag_constraint;
|
||||
ber_type_decoder_f AntiSpoofFlag_decode_ber;
|
||||
der_type_encoder_f AntiSpoofFlag_encode_der;
|
||||
xer_type_decoder_f AntiSpoofFlag_decode_xer;
|
||||
xer_type_encoder_f AntiSpoofFlag_encode_xer;
|
||||
per_type_decoder_f AntiSpoofFlag_decode_uper;
|
||||
per_type_encoder_f AntiSpoofFlag_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AntiSpoofFlag;
|
||||
asn_struct_free_f AntiSpoofFlag_free;
|
||||
asn_struct_print_f AntiSpoofFlag_print;
|
||||
asn_constr_check_f AntiSpoofFlag_constraint;
|
||||
ber_type_decoder_f AntiSpoofFlag_decode_ber;
|
||||
der_type_encoder_f AntiSpoofFlag_encode_der;
|
||||
xer_type_decoder_f AntiSpoofFlag_decode_xer;
|
||||
xer_type_encoder_f AntiSpoofFlag_encode_xer;
|
||||
per_type_decoder_f AntiSpoofFlag_decode_uper;
|
||||
per_type_encoder_f AntiSpoofFlag_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* AssistBTSData-R98-ExpOTD */
|
||||
typedef struct AssistBTSData_R98_ExpOTD
|
||||
{
|
||||
ExpectedOTD_t expectedOTD;
|
||||
ExpOTDUncertainty_t expOTDuncertainty;
|
||||
/* AssistBTSData-R98-ExpOTD */
|
||||
typedef struct AssistBTSData_R98_ExpOTD
|
||||
{
|
||||
ExpectedOTD_t expectedOTD;
|
||||
ExpOTDUncertainty_t expOTDuncertainty;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistBTSData_R98_ExpOTD_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistBTSData_R98_ExpOTD_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistBTSData_R98_ExpOTD;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistBTSData_R98_ExpOTD;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -18,27 +18,28 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct CalcAssistanceBTS;
|
||||
/* Forward declarations */
|
||||
struct CalcAssistanceBTS;
|
||||
|
||||
/* AssistBTSData */
|
||||
typedef struct AssistBTSData
|
||||
{
|
||||
BSIC_t bsic;
|
||||
MultiFrameOffset_t multiFrameOffset;
|
||||
TimeSlotScheme_t timeSlotScheme;
|
||||
RoughRTD_t roughRTD;
|
||||
struct CalcAssistanceBTS *calcAssistanceBTS /* OPTIONAL */;
|
||||
/* AssistBTSData */
|
||||
typedef struct AssistBTSData
|
||||
{
|
||||
BSIC_t bsic;
|
||||
MultiFrameOffset_t multiFrameOffset;
|
||||
TimeSlotScheme_t timeSlotScheme;
|
||||
RoughRTD_t roughRTD;
|
||||
struct CalcAssistanceBTS *calcAssistanceBTS /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistBTSData_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistBTSData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistBTSData;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistBTSData;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,39 +16,40 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct ReferenceAssistData;
|
||||
struct MsrAssistData;
|
||||
struct SystemInfoAssistData;
|
||||
struct GPS_AssistData;
|
||||
struct Rel98_AssistanceData_Extension;
|
||||
struct Rel5_AssistanceData_Extension;
|
||||
/* Forward declarations */
|
||||
struct ReferenceAssistData;
|
||||
struct MsrAssistData;
|
||||
struct SystemInfoAssistData;
|
||||
struct GPS_AssistData;
|
||||
struct Rel98_AssistanceData_Extension;
|
||||
struct Rel5_AssistanceData_Extension;
|
||||
|
||||
/* AssistanceData */
|
||||
typedef struct AssistanceData
|
||||
{
|
||||
struct ReferenceAssistData *referenceAssistData /* OPTIONAL */;
|
||||
struct MsrAssistData *msrAssistData /* OPTIONAL */;
|
||||
struct SystemInfoAssistData *systemInfoAssistData /* OPTIONAL */;
|
||||
struct GPS_AssistData *gps_AssistData /* OPTIONAL */;
|
||||
MoreAssDataToBeSent_t *moreAssDataToBeSent /* OPTIONAL */;
|
||||
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
|
||||
/*
|
||||
/* AssistanceData */
|
||||
typedef struct AssistanceData
|
||||
{
|
||||
struct ReferenceAssistData *referenceAssistData /* OPTIONAL */;
|
||||
struct MsrAssistData *msrAssistData /* OPTIONAL */;
|
||||
struct SystemInfoAssistData *systemInfoAssistData /* OPTIONAL */;
|
||||
struct GPS_AssistData *gps_AssistData /* OPTIONAL */;
|
||||
MoreAssDataToBeSent_t *moreAssDataToBeSent /* OPTIONAL */;
|
||||
ExtensionContainer_t *extensionContainer /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
struct Rel98_AssistanceData_Extension *rel98_AssistanceData_Extension /* OPTIONAL */;
|
||||
struct Rel5_AssistanceData_Extension *rel5_AssistanceData_Extension /* OPTIONAL */;
|
||||
struct Rel98_AssistanceData_Extension *rel98_AssistanceData_Extension /* OPTIONAL */;
|
||||
struct Rel5_AssistanceData_Extension *rel5_AssistanceData_Extension /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistanceData_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} AssistanceData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistanceData;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_AssistanceData;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BCCHCarrier */
|
||||
typedef long BCCHCarrier_t;
|
||||
/* BCCHCarrier */
|
||||
typedef long BCCHCarrier_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BCCHCarrier;
|
||||
asn_struct_free_f BCCHCarrier_free;
|
||||
asn_struct_print_f BCCHCarrier_print;
|
||||
asn_constr_check_f BCCHCarrier_constraint;
|
||||
ber_type_decoder_f BCCHCarrier_decode_ber;
|
||||
der_type_encoder_f BCCHCarrier_encode_der;
|
||||
xer_type_decoder_f BCCHCarrier_decode_xer;
|
||||
xer_type_encoder_f BCCHCarrier_encode_xer;
|
||||
per_type_decoder_f BCCHCarrier_decode_uper;
|
||||
per_type_encoder_f BCCHCarrier_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BCCHCarrier;
|
||||
asn_struct_free_f BCCHCarrier_free;
|
||||
asn_struct_print_f BCCHCarrier_print;
|
||||
asn_constr_check_f BCCHCarrier_constraint;
|
||||
ber_type_decoder_f BCCHCarrier_decode_ber;
|
||||
der_type_encoder_f BCCHCarrier_encode_der;
|
||||
xer_type_decoder_f BCCHCarrier_decode_xer;
|
||||
xer_type_encoder_f BCCHCarrier_encode_xer;
|
||||
per_type_decoder_f BCCHCarrier_decode_uper;
|
||||
per_type_encoder_f BCCHCarrier_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -8,24 +8,25 @@
|
||||
#include <OCTET_STRING.h> /* Some help from OCTET STRING */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
typedef struct BIT_STRING_s
|
||||
{
|
||||
uint8_t *buf; /* BIT STRING body */
|
||||
int size; /* Size of the above buffer */
|
||||
typedef struct BIT_STRING_s
|
||||
{
|
||||
uint8_t *buf; /* BIT STRING body */
|
||||
int size; /* Size of the above buffer */
|
||||
|
||||
int bits_unused; /* Unused trailing bits in the last octet (0..7) */
|
||||
int bits_unused; /* Unused trailing bits in the last octet (0..7) */
|
||||
|
||||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
||||
} BIT_STRING_t;
|
||||
asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
|
||||
} BIT_STRING_t;
|
||||
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
|
||||
|
||||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
||||
asn_constr_check_f BIT_STRING_constraint;
|
||||
xer_type_encoder_f BIT_STRING_encode_xer;
|
||||
asn_struct_print_f BIT_STRING_print; /* Human-readable output */
|
||||
asn_constr_check_f BIT_STRING_constraint;
|
||||
xer_type_encoder_f BIT_STRING_encode_xer;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -8,26 +8,27 @@
|
||||
#include <asn_application.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/*
|
||||
/*
|
||||
* The underlying integer may contain various values, but everything
|
||||
* non-zero is capped to 0xff by the DER encoder. The BER decoder may
|
||||
* yield non-zero values different from 1, beware.
|
||||
*/
|
||||
typedef int BOOLEAN_t;
|
||||
typedef int BOOLEAN_t;
|
||||
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BOOLEAN;
|
||||
|
||||
asn_struct_free_f BOOLEAN_free;
|
||||
asn_struct_print_f BOOLEAN_print;
|
||||
ber_type_decoder_f BOOLEAN_decode_ber;
|
||||
der_type_encoder_f BOOLEAN_encode_der;
|
||||
xer_type_decoder_f BOOLEAN_decode_xer;
|
||||
xer_type_encoder_f BOOLEAN_encode_xer;
|
||||
per_type_decoder_f BOOLEAN_decode_uper;
|
||||
per_type_encoder_f BOOLEAN_encode_uper;
|
||||
asn_struct_free_f BOOLEAN_free;
|
||||
asn_struct_print_f BOOLEAN_print;
|
||||
ber_type_decoder_f BOOLEAN_decode_ber;
|
||||
der_type_encoder_f BOOLEAN_encode_der;
|
||||
xer_type_decoder_f BOOLEAN_decode_xer;
|
||||
xer_type_encoder_f BOOLEAN_encode_xer;
|
||||
per_type_decoder_f BOOLEAN_decode_uper;
|
||||
per_type_encoder_f BOOLEAN_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BSIC */
|
||||
typedef long BSIC_t;
|
||||
/* BSIC */
|
||||
typedef long BSIC_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BSIC;
|
||||
asn_struct_free_f BSIC_free;
|
||||
asn_struct_print_f BSIC_print;
|
||||
asn_constr_check_f BSIC_constraint;
|
||||
ber_type_decoder_f BSIC_decode_ber;
|
||||
der_type_encoder_f BSIC_encode_der;
|
||||
xer_type_decoder_f BSIC_decode_xer;
|
||||
xer_type_encoder_f BSIC_encode_xer;
|
||||
per_type_decoder_f BSIC_decode_uper;
|
||||
per_type_encoder_f BSIC_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BSIC;
|
||||
asn_struct_free_f BSIC_free;
|
||||
asn_struct_print_f BSIC_print;
|
||||
asn_constr_check_f BSIC_constraint;
|
||||
ber_type_decoder_f BSIC_decode_ber;
|
||||
der_type_encoder_f BSIC_encode_der;
|
||||
xer_type_decoder_f BSIC_decode_xer;
|
||||
xer_type_encoder_f BSIC_encode_xer;
|
||||
per_type_decoder_f BSIC_decode_uper;
|
||||
per_type_encoder_f BSIC_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BSICAndCarrier */
|
||||
typedef struct BSICAndCarrier
|
||||
{
|
||||
BCCHCarrier_t carrier;
|
||||
BSIC_t bsic;
|
||||
/* BSICAndCarrier */
|
||||
typedef struct BSICAndCarrier
|
||||
{
|
||||
BCCHCarrier_t carrier;
|
||||
BSIC_t bsic;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} BSICAndCarrier_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} BSICAndCarrier_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BSICAndCarrier;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BSICAndCarrier;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include "Ext-GeographicalInformation.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BTSPosition */
|
||||
typedef Ext_GeographicalInformation_t BTSPosition_t;
|
||||
/* BTSPosition */
|
||||
typedef Ext_GeographicalInformation_t BTSPosition_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BTSPosition;
|
||||
asn_struct_free_f BTSPosition_free;
|
||||
asn_struct_print_f BTSPosition_print;
|
||||
asn_constr_check_f BTSPosition_constraint;
|
||||
ber_type_decoder_f BTSPosition_decode_ber;
|
||||
der_type_encoder_f BTSPosition_encode_der;
|
||||
xer_type_decoder_f BTSPosition_decode_xer;
|
||||
xer_type_encoder_f BTSPosition_encode_xer;
|
||||
per_type_decoder_f BTSPosition_decode_uper;
|
||||
per_type_encoder_f BTSPosition_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BTSPosition;
|
||||
asn_struct_free_f BTSPosition_free;
|
||||
asn_struct_print_f BTSPosition_print;
|
||||
asn_constr_check_f BTSPosition_constraint;
|
||||
ber_type_decoder_f BTSPosition_decode_ber;
|
||||
der_type_encoder_f BTSPosition_encode_der;
|
||||
xer_type_decoder_f BTSPosition_decode_xer;
|
||||
xer_type_encoder_f BTSPosition_encode_xer;
|
||||
per_type_decoder_f BTSPosition_decode_uper;
|
||||
per_type_encoder_f BTSPosition_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BadSignalElement */
|
||||
typedef struct BadSignalElement
|
||||
{
|
||||
SVID_t badSVID;
|
||||
long *badSignalID /* OPTIONAL */;
|
||||
/* BadSignalElement */
|
||||
typedef struct BadSignalElement
|
||||
{
|
||||
SVID_t badSVID;
|
||||
long *badSignalID /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} BadSignalElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} BadSignalElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BadSignalElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BadSignalElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* BitNumber */
|
||||
typedef long BitNumber_t;
|
||||
/* BitNumber */
|
||||
typedef long BitNumber_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BitNumber;
|
||||
asn_struct_free_f BitNumber_free;
|
||||
asn_struct_print_f BitNumber_print;
|
||||
asn_constr_check_f BitNumber_constraint;
|
||||
ber_type_decoder_f BitNumber_decode_ber;
|
||||
der_type_encoder_f BitNumber_encode_der;
|
||||
xer_type_decoder_f BitNumber_decode_xer;
|
||||
xer_type_encoder_f BitNumber_encode_xer;
|
||||
per_type_decoder_f BitNumber_decode_uper;
|
||||
per_type_encoder_f BitNumber_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_BitNumber;
|
||||
asn_struct_free_f BitNumber_free;
|
||||
asn_struct_print_f BitNumber_print;
|
||||
asn_constr_check_f BitNumber_constraint;
|
||||
ber_type_decoder_f BitNumber_decode_ber;
|
||||
der_type_encoder_f BitNumber_encode_der;
|
||||
xer_type_decoder_f BitNumber_decode_xer;
|
||||
xer_type_encoder_f BitNumber_encode_xer;
|
||||
per_type_decoder_f BitNumber_decode_uper;
|
||||
per_type_encoder_f BitNumber_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* CalcAssistanceBTS */
|
||||
typedef struct CalcAssistanceBTS
|
||||
{
|
||||
FineRTD_t fineRTD;
|
||||
ReferenceWGS84_t referenceWGS84;
|
||||
/* CalcAssistanceBTS */
|
||||
typedef struct CalcAssistanceBTS
|
||||
{
|
||||
FineRTD_t fineRTD;
|
||||
ReferenceWGS84_t referenceWGS84;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CalcAssistanceBTS_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CalcAssistanceBTS_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CalcAssistanceBTS;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CalcAssistanceBTS;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* CellID */
|
||||
typedef long CellID_t;
|
||||
/* CellID */
|
||||
typedef long CellID_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CellID;
|
||||
asn_struct_free_f CellID_free;
|
||||
asn_struct_print_f CellID_print;
|
||||
asn_constr_check_f CellID_constraint;
|
||||
ber_type_decoder_f CellID_decode_ber;
|
||||
der_type_encoder_f CellID_encode_der;
|
||||
xer_type_decoder_f CellID_decode_xer;
|
||||
xer_type_encoder_f CellID_encode_xer;
|
||||
per_type_decoder_f CellID_decode_uper;
|
||||
per_type_encoder_f CellID_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CellID;
|
||||
asn_struct_free_f CellID_free;
|
||||
asn_struct_print_f CellID_print;
|
||||
asn_constr_check_f CellID_constraint;
|
||||
ber_type_decoder_f CellID_decode_ber;
|
||||
der_type_encoder_f CellID_encode_der;
|
||||
xer_type_decoder_f CellID_decode_xer;
|
||||
xer_type_encoder_f CellID_encode_xer;
|
||||
per_type_decoder_f CellID_decode_uper;
|
||||
per_type_encoder_f CellID_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* CellIDAndLAC */
|
||||
typedef struct CellIDAndLAC
|
||||
{
|
||||
LAC_t referenceLAC;
|
||||
CellID_t referenceCI;
|
||||
/* CellIDAndLAC */
|
||||
typedef struct CellIDAndLAC
|
||||
{
|
||||
LAC_t referenceLAC;
|
||||
CellID_t referenceCI;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CellIDAndLAC_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} CellIDAndLAC_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CellIDAndLAC;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_CellIDAndLAC;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,39 +14,40 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct ReferenceTime;
|
||||
struct RefLocation;
|
||||
struct DGPSCorrections;
|
||||
struct NavigationModel;
|
||||
struct IonosphericModel;
|
||||
struct UTCModel;
|
||||
struct Almanac;
|
||||
struct AcquisAssist;
|
||||
struct SeqOf_BadSatelliteSet;
|
||||
/* Forward declarations */
|
||||
struct ReferenceTime;
|
||||
struct RefLocation;
|
||||
struct DGPSCorrections;
|
||||
struct NavigationModel;
|
||||
struct IonosphericModel;
|
||||
struct UTCModel;
|
||||
struct Almanac;
|
||||
struct AcquisAssist;
|
||||
struct SeqOf_BadSatelliteSet;
|
||||
|
||||
/* ControlHeader */
|
||||
typedef struct ControlHeader
|
||||
{
|
||||
struct ReferenceTime *referenceTime /* OPTIONAL */;
|
||||
struct RefLocation *refLocation /* OPTIONAL */;
|
||||
struct DGPSCorrections *dgpsCorrections /* OPTIONAL */;
|
||||
struct NavigationModel *navigationModel /* OPTIONAL */;
|
||||
struct IonosphericModel *ionosphericModel /* OPTIONAL */;
|
||||
struct UTCModel *utcModel /* OPTIONAL */;
|
||||
struct Almanac *almanac /* OPTIONAL */;
|
||||
struct AcquisAssist *acquisAssist /* OPTIONAL */;
|
||||
struct SeqOf_BadSatelliteSet *realTimeIntegrity /* OPTIONAL */;
|
||||
/* ControlHeader */
|
||||
typedef struct ControlHeader
|
||||
{
|
||||
struct ReferenceTime *referenceTime /* OPTIONAL */;
|
||||
struct RefLocation *refLocation /* OPTIONAL */;
|
||||
struct DGPSCorrections *dgpsCorrections /* OPTIONAL */;
|
||||
struct NavigationModel *navigationModel /* OPTIONAL */;
|
||||
struct IonosphericModel *ionosphericModel /* OPTIONAL */;
|
||||
struct UTCModel *utcModel /* OPTIONAL */;
|
||||
struct Almanac *almanac /* OPTIONAL */;
|
||||
struct AcquisAssist *acquisAssist /* OPTIONAL */;
|
||||
struct SeqOf_BadSatelliteSet *realTimeIntegrity /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} ControlHeader_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} ControlHeader_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ControlHeader;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ControlHeader;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,24 +16,25 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* DGANSSSgnElement */
|
||||
typedef struct DGANSSSgnElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long iod;
|
||||
long udre;
|
||||
long pseudoRangeCor;
|
||||
long rangeRateCor;
|
||||
/* DGANSSSgnElement */
|
||||
typedef struct DGANSSSgnElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long iod;
|
||||
long udre;
|
||||
long pseudoRangeCor;
|
||||
long rangeRateCor;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} DGANSSSgnElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} DGANSSSgnElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DGANSSSgnElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DGANSSSgnElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,22 +16,23 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* DGPSCorrections */
|
||||
typedef struct DGPSCorrections
|
||||
{
|
||||
long gpsTOW;
|
||||
long status;
|
||||
SeqOfSatElement_t satList;
|
||||
/* DGPSCorrections */
|
||||
typedef struct DGPSCorrections
|
||||
{
|
||||
long gpsTOW;
|
||||
long status;
|
||||
SeqOfSatElement_t satList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} DGPSCorrections_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} DGPSCorrections_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DGPSCorrections;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_DGPSCorrections;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -8,15 +8,16 @@
|
||||
#include <INTEGER.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */
|
||||
typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */
|
||||
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED;
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ENUMERATED;
|
||||
|
||||
per_type_decoder_f ENUMERATED_decode_uper;
|
||||
per_type_encoder_f ENUMERATED_encode_uper;
|
||||
per_type_decoder_f ENUMERATED_decode_uper;
|
||||
per_type_encoder_f ENUMERATED_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,21 +15,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* EOTDQuality */
|
||||
typedef struct EOTDQuality
|
||||
{
|
||||
long nbrOfMeasurements;
|
||||
long stdOfEOTD;
|
||||
/* EOTDQuality */
|
||||
typedef struct EOTDQuality
|
||||
{
|
||||
long nbrOfMeasurements;
|
||||
long stdOfEOTD;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} EOTDQuality_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} EOTDQuality_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EOTDQuality;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EOTDQuality;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,33 +14,35 @@
|
||||
#include <ENUMERATED.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum EnvironmentCharacter {
|
||||
EnvironmentCharacter_badArea = 0,
|
||||
EnvironmentCharacter_notBadArea = 1,
|
||||
EnvironmentCharacter_mixedArea = 2
|
||||
/*
|
||||
/* Dependencies */
|
||||
typedef enum EnvironmentCharacter
|
||||
{
|
||||
EnvironmentCharacter_badArea = 0,
|
||||
EnvironmentCharacter_notBadArea = 1,
|
||||
EnvironmentCharacter_mixedArea = 2
|
||||
/*
|
||||
* Enumeration is extensible
|
||||
*/
|
||||
} e_EnvironmentCharacter;
|
||||
} e_EnvironmentCharacter;
|
||||
|
||||
/* EnvironmentCharacter */
|
||||
typedef ENUMERATED_t EnvironmentCharacter_t;
|
||||
/* EnvironmentCharacter */
|
||||
typedef ENUMERATED_t EnvironmentCharacter_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EnvironmentCharacter;
|
||||
asn_struct_free_f EnvironmentCharacter_free;
|
||||
asn_struct_print_f EnvironmentCharacter_print;
|
||||
asn_constr_check_f EnvironmentCharacter_constraint;
|
||||
ber_type_decoder_f EnvironmentCharacter_decode_ber;
|
||||
der_type_encoder_f EnvironmentCharacter_encode_der;
|
||||
xer_type_decoder_f EnvironmentCharacter_decode_xer;
|
||||
xer_type_encoder_f EnvironmentCharacter_encode_xer;
|
||||
per_type_decoder_f EnvironmentCharacter_decode_uper;
|
||||
per_type_encoder_f EnvironmentCharacter_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EnvironmentCharacter;
|
||||
asn_struct_free_f EnvironmentCharacter_free;
|
||||
asn_struct_print_f EnvironmentCharacter_print;
|
||||
asn_constr_check_f EnvironmentCharacter_constraint;
|
||||
ber_type_decoder_f EnvironmentCharacter_decode_ber;
|
||||
der_type_encoder_f EnvironmentCharacter_encode_der;
|
||||
xer_type_decoder_f EnvironmentCharacter_decode_xer;
|
||||
xer_type_encoder_f EnvironmentCharacter_encode_xer;
|
||||
per_type_decoder_f EnvironmentCharacter_decode_uper;
|
||||
per_type_encoder_f EnvironmentCharacter_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,23 +15,24 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* EphemerisSubframe1Reserved */
|
||||
typedef struct EphemerisSubframe1Reserved
|
||||
{
|
||||
long reserved1;
|
||||
long reserved2;
|
||||
long reserved3;
|
||||
long reserved4;
|
||||
/* EphemerisSubframe1Reserved */
|
||||
typedef struct EphemerisSubframe1Reserved
|
||||
{
|
||||
long reserved1;
|
||||
long reserved2;
|
||||
long reserved3;
|
||||
long reserved4;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} EphemerisSubframe1Reserved_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} EphemerisSubframe1Reserved_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EphemerisSubframe1Reserved;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_EphemerisSubframe1Reserved;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,36 +14,38 @@
|
||||
#include <ENUMERATED.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum ErrorCodes {
|
||||
ErrorCodes_unDefined = 0,
|
||||
ErrorCodes_missingComponet = 1,
|
||||
ErrorCodes_incorrectData = 2,
|
||||
ErrorCodes_missingIEorComponentElement = 3,
|
||||
ErrorCodes_messageTooShort = 4,
|
||||
ErrorCodes_unknowReferenceNumber = 5
|
||||
/*
|
||||
/* Dependencies */
|
||||
typedef enum ErrorCodes
|
||||
{
|
||||
ErrorCodes_unDefined = 0,
|
||||
ErrorCodes_missingComponet = 1,
|
||||
ErrorCodes_incorrectData = 2,
|
||||
ErrorCodes_missingIEorComponentElement = 3,
|
||||
ErrorCodes_messageTooShort = 4,
|
||||
ErrorCodes_unknowReferenceNumber = 5
|
||||
/*
|
||||
* Enumeration is extensible
|
||||
*/
|
||||
} e_ErrorCodes;
|
||||
} e_ErrorCodes;
|
||||
|
||||
/* ErrorCodes */
|
||||
typedef ENUMERATED_t ErrorCodes_t;
|
||||
/* ErrorCodes */
|
||||
typedef ENUMERATED_t ErrorCodes_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ErrorCodes;
|
||||
asn_struct_free_f ErrorCodes_free;
|
||||
asn_struct_print_f ErrorCodes_print;
|
||||
asn_constr_check_f ErrorCodes_constraint;
|
||||
ber_type_decoder_f ErrorCodes_decode_ber;
|
||||
der_type_encoder_f ErrorCodes_encode_der;
|
||||
xer_type_decoder_f ErrorCodes_decode_xer;
|
||||
xer_type_encoder_f ErrorCodes_encode_xer;
|
||||
per_type_decoder_f ErrorCodes_decode_uper;
|
||||
per_type_encoder_f ErrorCodes_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ErrorCodes;
|
||||
asn_struct_free_f ErrorCodes_free;
|
||||
asn_struct_print_f ErrorCodes_print;
|
||||
asn_constr_check_f ErrorCodes_constraint;
|
||||
ber_type_decoder_f ErrorCodes_decode_ber;
|
||||
der_type_encoder_f ErrorCodes_encode_der;
|
||||
xer_type_decoder_f ErrorCodes_decode_xer;
|
||||
xer_type_encoder_f ErrorCodes_encode_xer;
|
||||
per_type_decoder_f ErrorCodes_decode_uper;
|
||||
per_type_encoder_f ErrorCodes_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* ExpOTDUncertainty */
|
||||
typedef long ExpOTDUncertainty_t;
|
||||
/* ExpOTDUncertainty */
|
||||
typedef long ExpOTDUncertainty_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExpOTDUncertainty;
|
||||
asn_struct_free_f ExpOTDUncertainty_free;
|
||||
asn_struct_print_f ExpOTDUncertainty_print;
|
||||
asn_constr_check_f ExpOTDUncertainty_constraint;
|
||||
ber_type_decoder_f ExpOTDUncertainty_decode_ber;
|
||||
der_type_encoder_f ExpOTDUncertainty_encode_der;
|
||||
xer_type_decoder_f ExpOTDUncertainty_decode_xer;
|
||||
xer_type_encoder_f ExpOTDUncertainty_encode_xer;
|
||||
per_type_decoder_f ExpOTDUncertainty_decode_uper;
|
||||
per_type_encoder_f ExpOTDUncertainty_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExpOTDUncertainty;
|
||||
asn_struct_free_f ExpOTDUncertainty_free;
|
||||
asn_struct_print_f ExpOTDUncertainty_print;
|
||||
asn_constr_check_f ExpOTDUncertainty_constraint;
|
||||
ber_type_decoder_f ExpOTDUncertainty_decode_ber;
|
||||
der_type_encoder_f ExpOTDUncertainty_encode_der;
|
||||
xer_type_decoder_f ExpOTDUncertainty_decode_xer;
|
||||
xer_type_encoder_f ExpOTDUncertainty_encode_xer;
|
||||
per_type_decoder_f ExpOTDUncertainty_decode_uper;
|
||||
per_type_encoder_f ExpOTDUncertainty_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* ExpectedOTD */
|
||||
typedef long ExpectedOTD_t;
|
||||
/* ExpectedOTD */
|
||||
typedef long ExpectedOTD_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExpectedOTD;
|
||||
asn_struct_free_f ExpectedOTD_free;
|
||||
asn_struct_print_f ExpectedOTD_print;
|
||||
asn_constr_check_f ExpectedOTD_constraint;
|
||||
ber_type_decoder_f ExpectedOTD_decode_ber;
|
||||
der_type_encoder_f ExpectedOTD_encode_der;
|
||||
xer_type_decoder_f ExpectedOTD_decode_xer;
|
||||
xer_type_encoder_f ExpectedOTD_encode_xer;
|
||||
per_type_decoder_f ExpectedOTD_decode_uper;
|
||||
per_type_encoder_f ExpectedOTD_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExpectedOTD;
|
||||
asn_struct_free_f ExpectedOTD_free;
|
||||
asn_struct_print_f ExpectedOTD_print;
|
||||
asn_constr_check_f ExpectedOTD_constraint;
|
||||
ber_type_decoder_f ExpectedOTD_decode_ber;
|
||||
der_type_encoder_f ExpectedOTD_encode_der;
|
||||
xer_type_decoder_f ExpectedOTD_decode_xer;
|
||||
xer_type_encoder_f ExpectedOTD_encode_xer;
|
||||
per_type_decoder_f ExpectedOTD_decode_uper;
|
||||
per_type_encoder_f ExpectedOTD_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <OCTET_STRING.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Ext-GeographicalInformation */
|
||||
typedef OCTET_STRING_t Ext_GeographicalInformation_t;
|
||||
/* Ext-GeographicalInformation */
|
||||
typedef OCTET_STRING_t Ext_GeographicalInformation_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Ext_GeographicalInformation;
|
||||
asn_struct_free_f Ext_GeographicalInformation_free;
|
||||
asn_struct_print_f Ext_GeographicalInformation_print;
|
||||
asn_constr_check_f Ext_GeographicalInformation_constraint;
|
||||
ber_type_decoder_f Ext_GeographicalInformation_decode_ber;
|
||||
der_type_encoder_f Ext_GeographicalInformation_encode_der;
|
||||
xer_type_decoder_f Ext_GeographicalInformation_decode_xer;
|
||||
xer_type_encoder_f Ext_GeographicalInformation_encode_xer;
|
||||
per_type_decoder_f Ext_GeographicalInformation_decode_uper;
|
||||
per_type_encoder_f Ext_GeographicalInformation_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Ext_GeographicalInformation;
|
||||
asn_struct_free_f Ext_GeographicalInformation_free;
|
||||
asn_struct_print_f Ext_GeographicalInformation_print;
|
||||
asn_constr_check_f Ext_GeographicalInformation_constraint;
|
||||
ber_type_decoder_f Ext_GeographicalInformation_decode_ber;
|
||||
der_type_encoder_f Ext_GeographicalInformation_encode_der;
|
||||
xer_type_decoder_f Ext_GeographicalInformation_decode_xer;
|
||||
xer_type_encoder_f Ext_GeographicalInformation_encode_xer;
|
||||
per_type_decoder_f Ext_GeographicalInformation_decode_uper;
|
||||
per_type_encoder_f Ext_GeographicalInformation_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,21 +15,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Extended-reference */
|
||||
typedef struct Extended_reference
|
||||
{
|
||||
long smlc_code;
|
||||
long transaction_ID;
|
||||
/* Extended-reference */
|
||||
typedef struct Extended_reference
|
||||
{
|
||||
long smlc_code;
|
||||
long transaction_ID;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Extended_reference_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} Extended_reference_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Extended_reference;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_Extended_reference;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <INTEGER.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* ExtensionContainer */
|
||||
typedef INTEGER_t ExtensionContainer_t;
|
||||
/* ExtensionContainer */
|
||||
typedef INTEGER_t ExtensionContainer_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExtensionContainer;
|
||||
asn_struct_free_f ExtensionContainer_free;
|
||||
asn_struct_print_f ExtensionContainer_print;
|
||||
asn_constr_check_f ExtensionContainer_constraint;
|
||||
ber_type_decoder_f ExtensionContainer_decode_ber;
|
||||
der_type_encoder_f ExtensionContainer_encode_der;
|
||||
xer_type_decoder_f ExtensionContainer_decode_xer;
|
||||
xer_type_encoder_f ExtensionContainer_encode_xer;
|
||||
per_type_decoder_f ExtensionContainer_decode_uper;
|
||||
per_type_encoder_f ExtensionContainer_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_ExtensionContainer;
|
||||
asn_struct_free_f ExtensionContainer_free;
|
||||
asn_struct_print_f ExtensionContainer_print;
|
||||
asn_constr_check_f ExtensionContainer_constraint;
|
||||
ber_type_decoder_f ExtensionContainer_decode_ber;
|
||||
der_type_encoder_f ExtensionContainer_encode_der;
|
||||
xer_type_decoder_f ExtensionContainer_decode_xer;
|
||||
xer_type_encoder_f ExtensionContainer_encode_xer;
|
||||
per_type_decoder_f ExtensionContainer_decode_uper;
|
||||
per_type_encoder_f ExtensionContainer_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* FineRTD */
|
||||
typedef long FineRTD_t;
|
||||
/* FineRTD */
|
||||
typedef long FineRTD_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FineRTD;
|
||||
asn_struct_free_f FineRTD_free;
|
||||
asn_struct_print_f FineRTD_print;
|
||||
asn_constr_check_f FineRTD_constraint;
|
||||
ber_type_decoder_f FineRTD_decode_ber;
|
||||
der_type_encoder_f FineRTD_encode_der;
|
||||
xer_type_decoder_f FineRTD_decode_xer;
|
||||
xer_type_encoder_f FineRTD_encode_xer;
|
||||
per_type_decoder_f FineRTD_decode_uper;
|
||||
per_type_encoder_f FineRTD_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FineRTD;
|
||||
asn_struct_free_f FineRTD_free;
|
||||
asn_struct_print_f FineRTD_print;
|
||||
asn_constr_check_f FineRTD_constraint;
|
||||
ber_type_decoder_f FineRTD_decode_ber;
|
||||
der_type_encoder_f FineRTD_encode_der;
|
||||
xer_type_decoder_f FineRTD_decode_xer;
|
||||
xer_type_encoder_f FineRTD_encode_xer;
|
||||
per_type_decoder_f FineRTD_decode_uper;
|
||||
per_type_encoder_f FineRTD_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,29 +14,31 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum FixType {
|
||||
FixType_twoDFix = 0,
|
||||
FixType_threeDFix = 1
|
||||
} e_FixType;
|
||||
/* Dependencies */
|
||||
typedef enum FixType
|
||||
{
|
||||
FixType_twoDFix = 0,
|
||||
FixType_threeDFix = 1
|
||||
} e_FixType;
|
||||
|
||||
/* FixType */
|
||||
typedef long FixType_t;
|
||||
/* FixType */
|
||||
typedef long FixType_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FixType;
|
||||
asn_struct_free_f FixType_free;
|
||||
asn_struct_print_f FixType_print;
|
||||
asn_constr_check_f FixType_constraint;
|
||||
ber_type_decoder_f FixType_decode_ber;
|
||||
der_type_encoder_f FixType_encode_der;
|
||||
xer_type_decoder_f FixType_decode_xer;
|
||||
xer_type_encoder_f FixType_encode_xer;
|
||||
per_type_decoder_f FixType_decode_uper;
|
||||
per_type_encoder_f FixType_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FixType;
|
||||
asn_struct_free_f FixType_free;
|
||||
asn_struct_print_f FixType_print;
|
||||
asn_constr_check_f FixType_constraint;
|
||||
ber_type_decoder_f FixType_decode_ber;
|
||||
der_type_encoder_f FixType_encode_der;
|
||||
xer_type_decoder_f FixType_decode_xer;
|
||||
xer_type_encoder_f FixType_encode_xer;
|
||||
per_type_decoder_f FixType_decode_uper;
|
||||
per_type_encoder_f FixType_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* FrameDrift */
|
||||
typedef long FrameDrift_t;
|
||||
/* FrameDrift */
|
||||
typedef long FrameDrift_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FrameDrift;
|
||||
asn_struct_free_f FrameDrift_free;
|
||||
asn_struct_print_f FrameDrift_print;
|
||||
asn_constr_check_f FrameDrift_constraint;
|
||||
ber_type_decoder_f FrameDrift_decode_ber;
|
||||
der_type_encoder_f FrameDrift_encode_der;
|
||||
xer_type_decoder_f FrameDrift_decode_xer;
|
||||
xer_type_encoder_f FrameDrift_encode_xer;
|
||||
per_type_decoder_f FrameDrift_decode_uper;
|
||||
per_type_encoder_f FrameDrift_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FrameDrift;
|
||||
asn_struct_free_f FrameDrift_free;
|
||||
asn_struct_print_f FrameDrift_print;
|
||||
asn_constr_check_f FrameDrift_constraint;
|
||||
ber_type_decoder_f FrameDrift_decode_ber;
|
||||
der_type_encoder_f FrameDrift_encode_der;
|
||||
xer_type_decoder_f FrameDrift_decode_xer;
|
||||
xer_type_encoder_f FrameDrift_encode_xer;
|
||||
per_type_decoder_f FrameDrift_decode_uper;
|
||||
per_type_encoder_f FrameDrift_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* FrameNumber */
|
||||
typedef long FrameNumber_t;
|
||||
/* FrameNumber */
|
||||
typedef long FrameNumber_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FrameNumber;
|
||||
asn_struct_free_f FrameNumber_free;
|
||||
asn_struct_print_f FrameNumber_print;
|
||||
asn_constr_check_f FrameNumber_constraint;
|
||||
ber_type_decoder_f FrameNumber_decode_ber;
|
||||
der_type_encoder_f FrameNumber_encode_der;
|
||||
xer_type_decoder_f FrameNumber_decode_xer;
|
||||
xer_type_encoder_f FrameNumber_encode_xer;
|
||||
per_type_decoder_f FrameNumber_decode_uper;
|
||||
per_type_encoder_f FrameNumber_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_FrameNumber;
|
||||
asn_struct_free_f FrameNumber_free;
|
||||
asn_struct_print_f FrameNumber_print;
|
||||
asn_constr_check_f FrameNumber_constraint;
|
||||
ber_type_decoder_f FrameNumber_decode_ber;
|
||||
der_type_encoder_f FrameNumber_encode_der;
|
||||
xer_type_decoder_f FrameNumber_decode_xer;
|
||||
xer_type_encoder_f FrameNumber_encode_xer;
|
||||
per_type_decoder_f FrameNumber_decode_uper;
|
||||
per_type_encoder_f FrameNumber_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,20 +15,21 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSS-AssistData */
|
||||
typedef struct GANSS_AssistData
|
||||
{
|
||||
GANSS_ControlHeader_t ganss_controlHeader;
|
||||
/* GANSS-AssistData */
|
||||
typedef struct GANSS_AssistData
|
||||
{
|
||||
GANSS_ControlHeader_t ganss_controlHeader;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_AssistData_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_AssistData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_AssistData;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_AssistData;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,25 +14,26 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct GANSSCommonAssistData;
|
||||
struct SeqOfGANSSGenericAssistDataElement;
|
||||
/* Forward declarations */
|
||||
struct GANSSCommonAssistData;
|
||||
struct SeqOfGANSSGenericAssistDataElement;
|
||||
|
||||
/* GANSS-ControlHeader */
|
||||
typedef struct GANSS_ControlHeader
|
||||
{
|
||||
struct GANSSCommonAssistData *ganssCommonAssistData /* OPTIONAL */;
|
||||
struct SeqOfGANSSGenericAssistDataElement *ganssGenericAssistDataList /* OPTIONAL */;
|
||||
/* GANSS-ControlHeader */
|
||||
typedef struct GANSS_ControlHeader
|
||||
{
|
||||
struct GANSSCommonAssistData *ganssCommonAssistData /* OPTIONAL */;
|
||||
struct SeqOfGANSSGenericAssistDataElement *ganssGenericAssistDataList /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_ControlHeader_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_ControlHeader_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_ControlHeader;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_ControlHeader;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -18,27 +18,28 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct ReferenceFrame;
|
||||
/* Forward declarations */
|
||||
struct ReferenceFrame;
|
||||
|
||||
/* GANSS-MsrSetElement */
|
||||
typedef struct GANSS_MsrSetElement
|
||||
{
|
||||
struct ReferenceFrame *referenceFrame /* OPTIONAL */;
|
||||
GANSSTODm_t *ganssTODm /* OPTIONAL */;
|
||||
long *deltaGNASSTOD /* OPTIONAL */;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
SeqOfGANSS_SgnTypeElement_t ganss_SgnTypeList;
|
||||
/* GANSS-MsrSetElement */
|
||||
typedef struct GANSS_MsrSetElement
|
||||
{
|
||||
struct ReferenceFrame *referenceFrame /* OPTIONAL */;
|
||||
GANSSTODm_t *ganssTODm /* OPTIONAL */;
|
||||
long *deltaGNASSTOD /* OPTIONAL */;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
SeqOfGANSS_SgnTypeElement_t ganss_SgnTypeList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_MsrSetElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_MsrSetElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_MsrSetElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_MsrSetElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -17,28 +17,29 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSS-SgnElement */
|
||||
typedef struct GANSS_SgnElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long cNo;
|
||||
MpathIndic_t mpathDet;
|
||||
long *carrierQualityInd /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long *integerCodePhase /* OPTIONAL */;
|
||||
long codePhaseRMSError;
|
||||
long *doppler /* OPTIONAL */;
|
||||
long *adr /* OPTIONAL */;
|
||||
/* GANSS-SgnElement */
|
||||
typedef struct GANSS_SgnElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long cNo;
|
||||
MpathIndic_t mpathDet;
|
||||
long *carrierQualityInd /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long *integerCodePhase /* OPTIONAL */;
|
||||
long codePhaseRMSError;
|
||||
long *doppler /* OPTIONAL */;
|
||||
long *adr /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_SgnElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_SgnElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_SgnElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_SgnElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSS-SgnTypeElement */
|
||||
typedef struct GANSS_SgnTypeElement
|
||||
{
|
||||
long ganssSignalID;
|
||||
SeqOfGANSS_SgnElement_t ganss_SgnList;
|
||||
/* GANSS-SgnTypeElement */
|
||||
typedef struct GANSS_SgnTypeElement
|
||||
{
|
||||
long ganssSignalID;
|
||||
SeqOfGANSS_SgnElement_t ganss_SgnList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_SgnTypeElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSS_SgnTypeElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_SgnTypeElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSS_SgnTypeElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,36 +15,38 @@
|
||||
#include <constr_CHOICE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum GANSSAlmanacElement_PR {
|
||||
GANSSAlmanacElement_PR_NOTHING, /* No components present */
|
||||
GANSSAlmanacElement_PR_keplerianAlmanacSet,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSAlmanacElement_PR;
|
||||
|
||||
/* GANSSAlmanacElement */
|
||||
typedef struct GANSSAlmanacElement
|
||||
{
|
||||
GANSSAlmanacElement_PR present;
|
||||
union GANSSAlmanacElement_u
|
||||
/* Dependencies */
|
||||
typedef enum GANSSAlmanacElement_PR
|
||||
{
|
||||
Almanac_KeplerianSet_t keplerianAlmanacSet;
|
||||
/*
|
||||
GANSSAlmanacElement_PR_NOTHING, /* No components present */
|
||||
GANSSAlmanacElement_PR_keplerianAlmanacSet,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSAlmanacElement_PR;
|
||||
|
||||
/* GANSSAlmanacElement */
|
||||
typedef struct GANSSAlmanacElement
|
||||
{
|
||||
GANSSAlmanacElement_PR present;
|
||||
union GANSSAlmanacElement_u
|
||||
{
|
||||
Almanac_KeplerianSet_t keplerianAlmanacSet;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSAlmanacElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSAlmanacElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -17,24 +17,25 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSAlmanacModel */
|
||||
typedef struct GANSSAlmanacModel
|
||||
{
|
||||
long weekNumber;
|
||||
SVIDMASK_t svIDMask;
|
||||
long *toa /* OPTIONAL */;
|
||||
long *ioda /* OPTIONAL */;
|
||||
SeqOfGANSSAlmanacElement_t ganssAlmanacList;
|
||||
/* GANSSAlmanacModel */
|
||||
typedef struct GANSSAlmanacModel
|
||||
{
|
||||
long weekNumber;
|
||||
SVIDMASK_t svIDMask;
|
||||
long *toa /* OPTIONAL */;
|
||||
long *ioda /* OPTIONAL */;
|
||||
SeqOfGANSSAlmanacElement_t ganssAlmanacList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSAlmanacModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSAlmanacModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAlmanacModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <OCTET_STRING.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSAssistanceData */
|
||||
typedef OCTET_STRING_t GANSSAssistanceData_t;
|
||||
/* GANSSAssistanceData */
|
||||
typedef OCTET_STRING_t GANSSAssistanceData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAssistanceData;
|
||||
asn_struct_free_f GANSSAssistanceData_free;
|
||||
asn_struct_print_f GANSSAssistanceData_print;
|
||||
asn_constr_check_f GANSSAssistanceData_constraint;
|
||||
ber_type_decoder_f GANSSAssistanceData_decode_ber;
|
||||
der_type_encoder_f GANSSAssistanceData_encode_der;
|
||||
xer_type_decoder_f GANSSAssistanceData_decode_xer;
|
||||
xer_type_encoder_f GANSSAssistanceData_encode_xer;
|
||||
per_type_decoder_f GANSSAssistanceData_decode_uper;
|
||||
per_type_encoder_f GANSSAssistanceData_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSAssistanceData;
|
||||
asn_struct_free_f GANSSAssistanceData_free;
|
||||
asn_struct_print_f GANSSAssistanceData_print;
|
||||
asn_constr_check_f GANSSAssistanceData_constraint;
|
||||
ber_type_decoder_f GANSSAssistanceData_decode_ber;
|
||||
der_type_encoder_f GANSSAssistanceData_encode_der;
|
||||
xer_type_decoder_f GANSSAssistanceData_decode_xer;
|
||||
xer_type_encoder_f GANSSAssistanceData_encode_xer;
|
||||
per_type_decoder_f GANSSAssistanceData_decode_uper;
|
||||
per_type_encoder_f GANSSAssistanceData_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,36 +15,38 @@
|
||||
#include <constr_CHOICE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum GANSSClockModel_PR {
|
||||
GANSSClockModel_PR_NOTHING, /* No components present */
|
||||
GANSSClockModel_PR_standardClockModelList,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSClockModel_PR;
|
||||
|
||||
/* GANSSClockModel */
|
||||
typedef struct GANSSClockModel
|
||||
{
|
||||
GANSSClockModel_PR present;
|
||||
union GANSSClockModel_u
|
||||
/* Dependencies */
|
||||
typedef enum GANSSClockModel_PR
|
||||
{
|
||||
SeqOfStandardClockModelElement_t standardClockModelList;
|
||||
/*
|
||||
GANSSClockModel_PR_NOTHING, /* No components present */
|
||||
GANSSClockModel_PR_standardClockModelList,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSClockModel_PR;
|
||||
|
||||
/* GANSSClockModel */
|
||||
typedef struct GANSSClockModel
|
||||
{
|
||||
GANSSClockModel_PR present;
|
||||
union GANSSClockModel_u
|
||||
{
|
||||
SeqOfStandardClockModelElement_t standardClockModelList;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSClockModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSClockModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSClockModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSClockModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,31 +14,32 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct GANSSReferenceTime;
|
||||
struct GANSSRefLocation;
|
||||
struct GANSSIonosphericModel;
|
||||
/* Forward declarations */
|
||||
struct GANSSReferenceTime;
|
||||
struct GANSSRefLocation;
|
||||
struct GANSSIonosphericModel;
|
||||
|
||||
/* GANSSCommonAssistData */
|
||||
typedef struct GANSSCommonAssistData
|
||||
{
|
||||
struct GANSSReferenceTime *ganssReferenceTime /* OPTIONAL */;
|
||||
struct GANSSRefLocation *ganssRefLocation /* OPTIONAL */;
|
||||
struct GANSSIonosphericModel *ganssIonosphericModel /* OPTIONAL */;
|
||||
/*
|
||||
/* GANSSCommonAssistData */
|
||||
typedef struct GANSSCommonAssistData
|
||||
{
|
||||
struct GANSSReferenceTime *ganssReferenceTime /* OPTIONAL */;
|
||||
struct GANSSRefLocation *ganssRefLocation /* OPTIONAL */;
|
||||
struct GANSSIonosphericModel *ganssIonosphericModel /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSCommonAssistData_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSCommonAssistData_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSCommonAssistData;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSCommonAssistData;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,23 +14,24 @@
|
||||
#include <NativeInteger.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSDataBit */
|
||||
typedef long GANSSDataBit_t;
|
||||
/* GANSSDataBit */
|
||||
typedef long GANSSDataBit_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDataBit;
|
||||
asn_struct_free_f GANSSDataBit_free;
|
||||
asn_struct_print_f GANSSDataBit_print;
|
||||
asn_constr_check_f GANSSDataBit_constraint;
|
||||
ber_type_decoder_f GANSSDataBit_decode_ber;
|
||||
der_type_encoder_f GANSSDataBit_encode_der;
|
||||
xer_type_decoder_f GANSSDataBit_decode_xer;
|
||||
xer_type_encoder_f GANSSDataBit_encode_xer;
|
||||
per_type_decoder_f GANSSDataBit_decode_uper;
|
||||
per_type_encoder_f GANSSDataBit_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDataBit;
|
||||
asn_struct_free_f GANSSDataBit_free;
|
||||
asn_struct_print_f GANSSDataBit_print;
|
||||
asn_constr_check_f GANSSDataBit_constraint;
|
||||
ber_type_decoder_f GANSSDataBit_decode_ber;
|
||||
der_type_encoder_f GANSSDataBit_encode_der;
|
||||
xer_type_decoder_f GANSSDataBit_decode_xer;
|
||||
xer_type_encoder_f GANSSDataBit_encode_xer;
|
||||
per_type_decoder_f GANSSDataBit_decode_uper;
|
||||
per_type_encoder_f GANSSDataBit_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -17,23 +17,24 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSDataBitAssist */
|
||||
typedef struct GANSSDataBitAssist
|
||||
{
|
||||
long ganssTOD;
|
||||
SVID_t svID;
|
||||
long ganssDataTypeID;
|
||||
SeqOf_GANSSDataBits_t ganssDataBits;
|
||||
/* GANSSDataBitAssist */
|
||||
typedef struct GANSSDataBitAssist
|
||||
{
|
||||
long ganssTOD;
|
||||
SVID_t svID;
|
||||
long ganssDataTypeID;
|
||||
SeqOf_GANSSDataBits_t ganssDataBits;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSDataBitAssist_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSDataBitAssist_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDataBitAssist;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDataBitAssist;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSDiffCorrections */
|
||||
typedef struct GANSSDiffCorrections
|
||||
{
|
||||
long dganssRefTime;
|
||||
SeqOfSgnTypeElement_t sgnTypeList;
|
||||
/* GANSSDiffCorrections */
|
||||
typedef struct GANSSDiffCorrections
|
||||
{
|
||||
long dganssRefTime;
|
||||
SeqOfSgnTypeElement_t sgnTypeList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSDiffCorrections_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSDiffCorrections_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDiffCorrections;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSDiffCorrections;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,42 +15,43 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct SeqOfGANSSTimeModel;
|
||||
struct GANSSDiffCorrections;
|
||||
struct GANSSNavModel;
|
||||
struct GANSSRealTimeIntegrity;
|
||||
struct GANSSDataBitAssist;
|
||||
struct GANSSRefMeasurementAssist;
|
||||
struct GANSSAlmanacModel;
|
||||
struct GANSSUTCModel;
|
||||
/* Forward declarations */
|
||||
struct SeqOfGANSSTimeModel;
|
||||
struct GANSSDiffCorrections;
|
||||
struct GANSSNavModel;
|
||||
struct GANSSRealTimeIntegrity;
|
||||
struct GANSSDataBitAssist;
|
||||
struct GANSSRefMeasurementAssist;
|
||||
struct GANSSAlmanacModel;
|
||||
struct GANSSUTCModel;
|
||||
|
||||
/* GANSSGenericAssistDataElement */
|
||||
typedef struct GANSSGenericAssistDataElement
|
||||
{
|
||||
long *ganssID /* OPTIONAL */;
|
||||
struct SeqOfGANSSTimeModel *ganssTimeModel /* OPTIONAL */;
|
||||
struct GANSSDiffCorrections *ganssDiffCorrections /* OPTIONAL */;
|
||||
struct GANSSNavModel *ganssNavigationModel /* OPTIONAL */;
|
||||
struct GANSSRealTimeIntegrity *ganssRealTimeIntegrity /* OPTIONAL */;
|
||||
struct GANSSDataBitAssist *ganssDataBitAssist /* OPTIONAL */;
|
||||
struct GANSSRefMeasurementAssist *ganssRefMeasurementAssist /* OPTIONAL */;
|
||||
struct GANSSAlmanacModel *ganssAlmanacModel /* OPTIONAL */;
|
||||
struct GANSSUTCModel *ganssUTCModel /* OPTIONAL */;
|
||||
/*
|
||||
/* GANSSGenericAssistDataElement */
|
||||
typedef struct GANSSGenericAssistDataElement
|
||||
{
|
||||
long *ganssID /* OPTIONAL */;
|
||||
struct SeqOfGANSSTimeModel *ganssTimeModel /* OPTIONAL */;
|
||||
struct GANSSDiffCorrections *ganssDiffCorrections /* OPTIONAL */;
|
||||
struct GANSSNavModel *ganssNavigationModel /* OPTIONAL */;
|
||||
struct GANSSRealTimeIntegrity *ganssRealTimeIntegrity /* OPTIONAL */;
|
||||
struct GANSSDataBitAssist *ganssDataBitAssist /* OPTIONAL */;
|
||||
struct GANSSRefMeasurementAssist *ganssRefMeasurementAssist /* OPTIONAL */;
|
||||
struct GANSSAlmanacModel *ganssAlmanacModel /* OPTIONAL */;
|
||||
struct GANSSUTCModel *ganssUTCModel /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSGenericAssistDataElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSGenericAssistDataElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSGenericAssistDataElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSGenericAssistDataElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,24 +15,25 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSIonoStormFlags */
|
||||
typedef struct GANSSIonoStormFlags
|
||||
{
|
||||
long ionoStormFlag1;
|
||||
long ionoStormFlag2;
|
||||
long ionoStormFlag3;
|
||||
long ionoStormFlag4;
|
||||
long ionoStormFlag5;
|
||||
/* GANSSIonoStormFlags */
|
||||
typedef struct GANSSIonoStormFlags
|
||||
{
|
||||
long ionoStormFlag1;
|
||||
long ionoStormFlag2;
|
||||
long ionoStormFlag3;
|
||||
long ionoStormFlag4;
|
||||
long ionoStormFlag5;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonoStormFlags_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonoStormFlags_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonoStormFlags;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonoStormFlags;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,22 +15,23 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSIonosphereModel */
|
||||
typedef struct GANSSIonosphereModel
|
||||
{
|
||||
long ai0;
|
||||
long ai1;
|
||||
long ai2;
|
||||
/* GANSSIonosphereModel */
|
||||
typedef struct GANSSIonosphereModel
|
||||
{
|
||||
long ai0;
|
||||
long ai1;
|
||||
long ai2;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonosphereModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonosphereModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonosphereModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonosphereModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,28 +15,29 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct GANSSIonoStormFlags;
|
||||
/* Forward declarations */
|
||||
struct GANSSIonoStormFlags;
|
||||
|
||||
/* GANSSIonosphericModel */
|
||||
typedef struct GANSSIonosphericModel
|
||||
{
|
||||
GANSSIonosphereModel_t ganssIonoModel;
|
||||
struct GANSSIonoStormFlags *ganssIonoStormFlags /* OPTIONAL */;
|
||||
/*
|
||||
/* GANSSIonosphericModel */
|
||||
typedef struct GANSSIonosphericModel
|
||||
{
|
||||
GANSSIonosphereModel_t ganssIonoModel;
|
||||
struct GANSSIonoStormFlags *ganssIonoStormFlags /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonosphericModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSIonosphericModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonosphericModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSIonosphericModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -20,35 +20,36 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct ReferenceFrame;
|
||||
/* Forward declarations */
|
||||
struct ReferenceFrame;
|
||||
|
||||
/* GANSSLocationInfo */
|
||||
typedef struct GANSSLocationInfo
|
||||
{
|
||||
struct ReferenceFrame *referenceFrame /* OPTIONAL */;
|
||||
GANSSTODm_t *ganssTODm /* OPTIONAL */;
|
||||
long *ganssTODFrac /* OPTIONAL */;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
long *ganssTimeID /* OPTIONAL */;
|
||||
FixType_t fixType;
|
||||
PositionData_t posData;
|
||||
long *stationaryIndication /* OPTIONAL */;
|
||||
Ext_GeographicalInformation_t posEstimate;
|
||||
/*
|
||||
/* GANSSLocationInfo */
|
||||
typedef struct GANSSLocationInfo
|
||||
{
|
||||
struct ReferenceFrame *referenceFrame /* OPTIONAL */;
|
||||
GANSSTODm_t *ganssTODm /* OPTIONAL */;
|
||||
long *ganssTODFrac /* OPTIONAL */;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
long *ganssTimeID /* OPTIONAL */;
|
||||
FixType_t fixType;
|
||||
PositionData_t posData;
|
||||
long *stationaryIndication /* OPTIONAL */;
|
||||
Ext_GeographicalInformation_t posEstimate;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSLocationInfo_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSLocationInfo_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSLocationInfo;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSLocationInfo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,20 +15,21 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSMeasureInfo */
|
||||
typedef struct GANSSMeasureInfo
|
||||
{
|
||||
SeqOfGANSS_MsrSetElement_t ganssMsrSetList;
|
||||
/* GANSSMeasureInfo */
|
||||
typedef struct GANSSMeasureInfo
|
||||
{
|
||||
SeqOfGANSS_MsrSetElement_t ganssMsrSetList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSMeasureInfo_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSMeasureInfo_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSMeasureInfo;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSMeasureInfo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,24 +16,25 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSNavModel */
|
||||
typedef struct GANSSNavModel
|
||||
{
|
||||
long nonBroadcastIndFlag;
|
||||
long *toeMSB /* OPTIONAL */;
|
||||
long *eMSB /* OPTIONAL */;
|
||||
long *sqrtAMBS /* OPTIONAL */;
|
||||
SeqOfGANSSSatelliteElement_t ganssSatelliteList;
|
||||
/* GANSSNavModel */
|
||||
typedef struct GANSSNavModel
|
||||
{
|
||||
long nonBroadcastIndFlag;
|
||||
long *toeMSB /* OPTIONAL */;
|
||||
long *eMSB /* OPTIONAL */;
|
||||
long *sqrtAMBS /* OPTIONAL */;
|
||||
SeqOfGANSSSatelliteElement_t ganssSatelliteList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSNavModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSNavModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSNavModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSNavModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,36 +15,38 @@
|
||||
#include <constr_CHOICE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum GANSSOrbitModel_PR {
|
||||
GANSSOrbitModel_PR_NOTHING, /* No components present */
|
||||
GANSSOrbitModel_PR_keplerianSet,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSOrbitModel_PR;
|
||||
|
||||
/* GANSSOrbitModel */
|
||||
typedef struct GANSSOrbitModel
|
||||
{
|
||||
GANSSOrbitModel_PR present;
|
||||
union GANSSOrbitModel_u
|
||||
/* Dependencies */
|
||||
typedef enum GANSSOrbitModel_PR
|
||||
{
|
||||
NavModel_KeplerianSet_t keplerianSet;
|
||||
/*
|
||||
GANSSOrbitModel_PR_NOTHING, /* No components present */
|
||||
GANSSOrbitModel_PR_keplerianSet,
|
||||
/* Extensions may appear below */
|
||||
|
||||
} GANSSOrbitModel_PR;
|
||||
|
||||
/* GANSSOrbitModel */
|
||||
typedef struct GANSSOrbitModel
|
||||
{
|
||||
GANSSOrbitModel_PR present;
|
||||
union GANSSOrbitModel_u
|
||||
{
|
||||
NavModel_KeplerianSet_t keplerianSet;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
} choice;
|
||||
} choice;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSOrbitModel_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSOrbitModel_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSOrbitModel;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSOrbitModel;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -14,29 +14,31 @@
|
||||
#include <BIT_STRING.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Dependencies */
|
||||
typedef enum GANSSPositioningMethod {
|
||||
GANSSPositioningMethod_gps = 0,
|
||||
GANSSPositioningMethod_galileo = 1
|
||||
} e_GANSSPositioningMethod;
|
||||
/* Dependencies */
|
||||
typedef enum GANSSPositioningMethod
|
||||
{
|
||||
GANSSPositioningMethod_gps = 0,
|
||||
GANSSPositioningMethod_galileo = 1
|
||||
} e_GANSSPositioningMethod;
|
||||
|
||||
/* GANSSPositioningMethod */
|
||||
typedef BIT_STRING_t GANSSPositioningMethod_t;
|
||||
/* GANSSPositioningMethod */
|
||||
typedef BIT_STRING_t GANSSPositioningMethod_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSPositioningMethod;
|
||||
asn_struct_free_f GANSSPositioningMethod_free;
|
||||
asn_struct_print_f GANSSPositioningMethod_print;
|
||||
asn_constr_check_f GANSSPositioningMethod_constraint;
|
||||
ber_type_decoder_f GANSSPositioningMethod_decode_ber;
|
||||
der_type_encoder_f GANSSPositioningMethod_encode_der;
|
||||
xer_type_decoder_f GANSSPositioningMethod_decode_xer;
|
||||
xer_type_encoder_f GANSSPositioningMethod_encode_xer;
|
||||
per_type_decoder_f GANSSPositioningMethod_decode_uper;
|
||||
per_type_encoder_f GANSSPositioningMethod_encode_uper;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSPositioningMethod;
|
||||
asn_struct_free_f GANSSPositioningMethod_free;
|
||||
asn_struct_print_f GANSSPositioningMethod_print;
|
||||
asn_constr_check_f GANSSPositioningMethod_constraint;
|
||||
ber_type_decoder_f GANSSPositioningMethod_decode_ber;
|
||||
der_type_encoder_f GANSSPositioningMethod_encode_der;
|
||||
xer_type_decoder_f GANSSPositioningMethod_decode_xer;
|
||||
xer_type_encoder_f GANSSPositioningMethod_encode_xer;
|
||||
per_type_decoder_f GANSSPositioningMethod_decode_uper;
|
||||
per_type_encoder_f GANSSPositioningMethod_encode_uper;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,20 +15,21 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSRealTimeIntegrity */
|
||||
typedef struct GANSSRealTimeIntegrity
|
||||
{
|
||||
SeqOfBadSignalElement_t ganssBadSignalList;
|
||||
/* GANSSRealTimeIntegrity */
|
||||
typedef struct GANSSRealTimeIntegrity
|
||||
{
|
||||
SeqOfBadSignalElement_t ganssBadSignalList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRealTimeIntegrity_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRealTimeIntegrity_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRealTimeIntegrity;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRealTimeIntegrity;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,20 +15,21 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSRefLocation */
|
||||
typedef struct GANSSRefLocation
|
||||
{
|
||||
Ext_GeographicalInformation_t threeDLocation;
|
||||
/* GANSSRefLocation */
|
||||
typedef struct GANSSRefLocation
|
||||
{
|
||||
Ext_GeographicalInformation_t threeDLocation;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefLocation_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefLocation_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefLocation;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefLocation;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,21 +16,22 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSRefMeasurementAssist */
|
||||
typedef struct GANSSRefMeasurementAssist
|
||||
{
|
||||
long *ganssSignalID /* OPTIONAL */;
|
||||
SeqOfGANSSRefMeasurementElement_t ganssRefMeasAssitList;
|
||||
/* GANSSRefMeasurementAssist */
|
||||
typedef struct GANSSRefMeasurementAssist
|
||||
{
|
||||
long *ganssSignalID /* OPTIONAL */;
|
||||
SeqOfGANSSRefMeasurementElement_t ganssRefMeasAssitList;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefMeasurementAssist_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefMeasurementAssist_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementAssist;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementAssist;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -16,34 +16,35 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct AdditionalDopplerFields;
|
||||
struct AddionalAngleFields;
|
||||
/* Forward declarations */
|
||||
struct AdditionalDopplerFields;
|
||||
struct AddionalAngleFields;
|
||||
|
||||
/* GANSSRefMeasurementElement */
|
||||
typedef struct GANSSRefMeasurementElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long doppler0;
|
||||
struct AdditionalDopplerFields *additionalDoppler /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long intCodePhase;
|
||||
long codePhaseSearchWindow;
|
||||
struct AddionalAngleFields *additionalAngle /* OPTIONAL */;
|
||||
/*
|
||||
/* GANSSRefMeasurementElement */
|
||||
typedef struct GANSSRefMeasurementElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long doppler0;
|
||||
struct AdditionalDopplerFields *additionalDoppler /* OPTIONAL */;
|
||||
long codePhase;
|
||||
long intCodePhase;
|
||||
long codePhaseSearchWindow;
|
||||
struct AddionalAngleFields *additionalAngle /* OPTIONAL */;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefMeasurementElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefMeasurementElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefMeasurementElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -17,23 +17,24 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSRefTimeInfo */
|
||||
typedef struct GANSSRefTimeInfo
|
||||
{
|
||||
long *ganssDay /* OPTIONAL */;
|
||||
GANSSTOD_t ganssTOD;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
long *ganssTimeID /* OPTIONAL */;
|
||||
/* GANSSRefTimeInfo */
|
||||
typedef struct GANSSRefTimeInfo
|
||||
{
|
||||
long *ganssDay /* OPTIONAL */;
|
||||
GANSSTOD_t ganssTOD;
|
||||
GANSSTODUncertainty_t *ganssTODUncertainty /* OPTIONAL */;
|
||||
long *ganssTimeID /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefTimeInfo_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSRefTimeInfo_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefTimeInfo;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSRefTimeInfo;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -15,24 +15,25 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct GANSSTOD_GSMTimeAssociation;
|
||||
/* Forward declarations */
|
||||
struct GANSSTOD_GSMTimeAssociation;
|
||||
|
||||
/* GANSSReferenceTime */
|
||||
typedef struct GANSSReferenceTime
|
||||
{
|
||||
GANSSRefTimeInfo_t ganssRefTimeInfo;
|
||||
struct GANSSTOD_GSMTimeAssociation *ganssTOD_GSMTimeAssociation /* OPTIONAL */;
|
||||
/* GANSSReferenceTime */
|
||||
typedef struct GANSSReferenceTime
|
||||
{
|
||||
GANSSRefTimeInfo_t ganssRefTimeInfo;
|
||||
struct GANSSTOD_GSMTimeAssociation *ganssTOD_GSMTimeAssociation /* OPTIONAL */;
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSReferenceTime_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSReferenceTime_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSReferenceTime;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSReferenceTime;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -18,28 +18,29 @@
|
||||
#include <constr_SEQUENCE.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
/* GANSSSatelliteElement */
|
||||
typedef struct GANSSSatelliteElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long svHealth;
|
||||
long iod;
|
||||
GANSSClockModel_t ganssClockModel;
|
||||
GANSSOrbitModel_t ganssOrbitModel;
|
||||
/*
|
||||
/* GANSSSatelliteElement */
|
||||
typedef struct GANSSSatelliteElement
|
||||
{
|
||||
SVID_t svID;
|
||||
long svHealth;
|
||||
long iod;
|
||||
GANSSClockModel_t ganssClockModel;
|
||||
GANSSOrbitModel_t ganssOrbitModel;
|
||||
/*
|
||||
* This type is extensible,
|
||||
* possible extensions are below.
|
||||
*/
|
||||
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSSatelliteElement_t;
|
||||
/* Context for parsing across buffer boundaries */
|
||||
asn_struct_ctx_t _asn_ctx;
|
||||
} GANSSSatelliteElement_t;
|
||||
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSSatelliteElement;
|
||||
/* Implementation */
|
||||
extern asn_TYPE_descriptor_t asn_DEF_GANSSSatelliteElement;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user