forked from g0orx/wdsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org_g0orx_openhpsdr_wdsp_WDSP.c
871 lines (786 loc) · 25.7 KB
/
org_g0orx_openhpsdr_wdsp_WDSP.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
#include "org_g0orx_openhpsdr_wdsp_WDSP.h"
#include "comm.h"
#include "meter.h"
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: OpenChannel
* Signature: (IIIIIIIIDDDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_OpenChannel
(JNIEnv *env, jobject obj, jint channel, jint in_size, jint dsp_size, jint input_samplerate, jint dsp_rate, jint output_samplerate, jint type, jint state, jdouble tdelayup, jdouble tslewup, jdouble tdelaydown, jdouble tslewdown, jint bfo) {
OpenChannel(channel,in_size,dsp_size,input_samplerate,dsp_rate,output_samplerate,type,state,tdelayup,tslewup,tdelaydown,tslewdown,bfo);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: CloseChannel
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_CloseChannel
(JNIEnv *env, jobject obj, jint channel) {
CloseChannel(channel);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: fexchange0
* Signature: (I[D[D[I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_fexchange0
(JNIEnv *env, jobject obj, jint channel, jdoubleArray in, jdoubleArray out, jintArray error) {
jdouble *indata=(*env)->GetDoubleArrayElements(env,in,0);
jdouble *outdata=(*env)->GetDoubleArrayElements(env,out,0);
jint *err = (*env)->GetIntArrayElements(env, error, 0);
fexchange0(channel,indata,outdata,err);
(*env)->ReleaseIntArrayElements(env,error,err,0);
(*env)->ReleaseDoubleArrayElements(env,out,outdata,0);
(*env)->ReleaseDoubleArrayElements(env,in,indata,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: fexchange2
* Signature: (I[F[F[F[F[I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_fexchange2
(JNIEnv *env, jobject obj, jint channel, jfloatArray Iin, jfloatArray Qin, jfloatArray Iout, jfloatArray Qout, jintArray error) {
jfloat *iin=(*env)->GetFloatArrayElements(env,Iin,0);
jfloat *qin=(*env)->GetFloatArrayElements(env,Qin,0);
jfloat *iout=(*env)->GetFloatArrayElements(env,Iout,0);
jfloat *qout=(*env)->GetFloatArrayElements(env,Qout,0);
jint *err = (*env)->GetIntArrayElements(env, error, 0);
fexchange2(channel,iin,qin,iout,qout,err);
(*env)->ReleaseIntArrayElements(env,error,err,0);
(*env)->ReleaseFloatArrayElements(env,Qout,qout,0);
(*env)->ReleaseFloatArrayElements(env,Iout,iout,0);
(*env)->ReleaseFloatArrayElements(env,Qin,qin,0);
(*env)->ReleaseFloatArrayElements(env,Iin,iin,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetType
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetType
(JNIEnv *env, jobject obj, jint channel, jint type) {
SetType(channel,type);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetInputBuffsize
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetInputBuffsize
(JNIEnv *env, jobject obj, jint channel, jint size) {
SetInputBuffsize(channel,size);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetDSPBuffsize
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetDSPBuffsize
(JNIEnv *env, jobject obj, jint channel, jint size) {
SetDSPBuffsize(channel,size);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetInputSamplerate
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetInputSamplerate
(JNIEnv *env, jobject obj, jint channel, jint rate) {
SetInputSamplerate(channel,rate);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetDSPSamplerate
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetDSPSamplerate
(JNIEnv *env, jobject obj, jint channel, jint rate) {
SetDSPSamplerate(channel,rate);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetOutputSamplerate
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetOutputSamplerate
(JNIEnv *env, jobject obj, jint channel, jint rate) {
SetOutputSamplerate(channel,rate);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetAllRates
* Signature: (IIII)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetAllRates
(JNIEnv *env, jobject obj, jint channel, jint in_rate, jint dsp_rate, jint out_rate) {
SetAllRates(channel,in_rate,dsp_rate,out_rate);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetChannelState
* Signature: (III)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetChannelState
(JNIEnv *env, jobject obj, jint channel, jint state, jint dmode) {
SetChannelState(channel,state,dmode);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetChannelTDelayUp
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetChannelTDelayUp
(JNIEnv *env, jobject obj, jint channel, jdouble delay) {
SetChannelTDelayUp(channel,delay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetChannelTSlewUp
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetChannelTSlewUp
(JNIEnv *env, jobject obj, jint channel, jdouble delay) {
SetChannelTDelayUp(channel,delay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetChannelTDelayDown
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetChannelTDelayDown
(JNIEnv *env, jobject obj, jint channel, jdouble delay) {
SetChannelTDelayDown(channel,delay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetChannelTSlewDown
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetChannelTSlewDown
(JNIEnv *env, jobject obj, jint channel, jdouble slew) {
SetChannelTSlewDown(channel,slew);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAMode
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAMode
(JNIEnv *env, jobject obj, jint channel, jint mode) {
SetRXAMode(channel,mode);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAShiftRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAShiftRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAShiftRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAShiftFreq
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAShiftFreq
(JNIEnv *env, jobject obj, jint channel, jdouble frequency) {
SetRXAShiftFreq(channel,frequency);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXABandpassRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXABandpassRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXABandpassRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXABandpassFreqs
* Signature: (IDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXABandpassFreqs
(JNIEnv *env, jobject obj, jint channel, jdouble low, jdouble high) {
SetRXABandpassFreqs(channel,low,high);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAMSQRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAMSQRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAAMSQRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAMSQThreshold
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAMSQThreshold
(JNIEnv *env, jobject obj, jint channel, jdouble threshold) {
SetRXAAMSQThreshold(channel,threshold);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAMDSBMode
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAMDSBMode
(JNIEnv *env, jobject obj, jint channel, jint mode) {
SetRXAAMDSBMode(channel,mode);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAMDFadeLevel
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAMDFadeLevel
(JNIEnv *env, jobject obj, jint channel, jint level) {
SetRXAAMDFadeLevel(channel,level);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAFMDeviation
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAFMDeviation
(JNIEnv *env, jobject obj, jint channel, jdouble deviation) {
SetRXAFMDeviation(channel,deviation);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAFMSQRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAFMSQRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAFMSQRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAFMSQThreshold
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAFMSQThreshold
(JNIEnv *env, jobject obj, jint channel, jdouble threshold) {
SetRXAFMSQThreshold(channel,threshold);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEQRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEQRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAEQRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEQProfile
* Signature: (II[D[D)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEQProfile
(JNIEnv *env, jobject obj, jint channel, jint nfreqs, jdoubleArray F, jdoubleArray G) {
jdouble *dF=(*env)->GetDoubleArrayElements(env,F,0);
jdouble *dG=(*env)->GetDoubleArrayElements(env,G,0);
SetRXAEQProfile(channel,nfreqs,dF,dG);
(*env)->ReleaseDoubleArrayElements(env,G,dG,0);
(*env)->ReleaseDoubleArrayElements(env,F,dF,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAGrphEQ
* Signature: (I[I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAGrphEQ
(JNIEnv *env, jobject obj, jint channel, jintArray rxeq) {
jint *irxeq=(*env)->GetIntArrayElements(env,rxeq,0);
SetRXAGrphEQ(channel,irxeq);
(*env)->ReleaseIntArrayElements(env,rxeq,irxeq,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAGrphEQ10
* Signature: (I[I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAGrphEQ10
(JNIEnv *env, jobject obj, jint channel, jintArray rxeq) {
jint *irxeq=(*env)->GetIntArrayElements(env,rxeq,0);
SetRXAGrphEQ10(channel,irxeq);
(*env)->ReleaseIntArrayElements(env,rxeq,irxeq,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAANFRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFVals
* Signature: (IIIDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFVals
(JNIEnv *env, jobject obj, jint channel, jint taps, jint delay, jdouble gain, jdouble leakage) {
SetRXAANFVals(channel,taps,delay,gain,leakage);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFTaps
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFTaps
(JNIEnv *env, jobject obj, jint channel, jint taps) {
SetRXAANFTaps(channel,taps);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFDelay
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFDelay
(JNIEnv *env, jobject obj, jint channel, jint delay) {
SetRXAANFDelay(channel,delay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFGain
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFGain
(JNIEnv *env, jobject obj, jint channel, jdouble gain) {
SetRXAANFGain(channel,gain);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFLeakage
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFLeakage
(JNIEnv *env, jobject obj, jint channel, jdouble leakage) {
SetRXAANFLeakage(channel,leakage);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANFPosition
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANFPosition
(JNIEnv *env, jobject obj, jint channel, jint position) {
SetRXAANFPosition(channel,position);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAANRRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRVals
* Signature: (IIIDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRVals
(JNIEnv *env, jobject obj, jint channel, jint taps, jint delay, jdouble gain, jdouble leakage) {
SetRXAANRVals(channel,taps,delay,gain,leakage);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRTaps
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRTaps
(JNIEnv *env, jobject obj, jint channel, jint taps) {
SetRXAANRTaps(channel,taps);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRDelay
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRDelay
(JNIEnv *env, jobject obj, jint channel, jint delay) {
SetRXAANRDelay(channel,delay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRGain
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRGain
(JNIEnv *env, jobject obj, jint channel, jdouble gain) {
SetRXAANRGain(channel,gain);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRLeakage
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRLeakage
(JNIEnv *env, jobject obj, jint channel, jdouble leakage) {
SetRXAANRLeakage(channel,leakage);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAANRPosition
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAANRPosition
(JNIEnv *env, jobject obj, jint channel, jint position) {
SetRXAANRPosition(channel,position);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCMode
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCMode
(JNIEnv *env, jobject obj, jint channel, jint mode) {
SetRXAAGCMode(channel,mode);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCAttack
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCAttack
(JNIEnv *env, jobject obj, jint channel, jint attack) {
SetRXAAGCAttack(channel,attack);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCDecay
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCDecay
(JNIEnv *env, jobject obj, jint channel, jint decay) {
SetRXAAGCDecay(channel,decay);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCHang
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCHang
(JNIEnv *env, jobject obj, jint channel, jint hang) {
SetRXAAGCHang(channel,hang);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetRXAAGCHangLevel
* Signature: (I[D)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetRXAAGCHangLevel
(JNIEnv *env, jobject obj, jint channel, jdoubleArray level) {
jdouble *dlevel=(*env)->GetDoubleArrayElements(env,level,0);
GetRXAAGCHangLevel(channel,dlevel);
(*env)->ReleaseDoubleArrayElements(env,level,dlevel,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCHangLevel
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCHangLevel
(JNIEnv *env, jobject obj, jint channel, jdouble level) {
SetRXAAGCHangLevel(channel,level);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetRXAAGCHangThreshold
* Signature: (I[I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetRXAAGCHangThreshold
(JNIEnv *env, jobject obj, jint channel, jintArray threshold) {
jint *ithreshold=(*env)->GetIntArrayElements(env,threshold,0);
GetRXAAGCHangThreshold(channel,ithreshold);
(*env)->ReleaseIntArrayElements(env,threshold,ithreshold,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCHangThreshold
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCHangThreshold
(JNIEnv *env, jobject obj, jint channel, jint threshold) {
SetRXAAGCHangThreshold(channel,threshold);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetRXAAGCThresh
* Signature: (I[DDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetRXAAGCThresh
(JNIEnv *env, jobject obj, jint channel, jdoubleArray thresh, jdouble size, jdouble rate) {
jdouble *dthresh=(*env)->GetDoubleArrayElements(env,thresh,0);
GetRXAAGCThresh(channel,dthresh,size,rate);
(*env)->ReleaseDoubleArrayElements(env,thresh,dthresh,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCThresh
* Signature: (IDDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCThresh
(JNIEnv *env, jobject obj, jint channel, jdouble thresh, jdouble size, jdouble rate) {
SetRXAAGCThresh(channel,thresh,size,rate);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetRXAAGCTop
* Signature: (I[D)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetRXAAGCTop
(JNIEnv *env, jobject obj, jint channel, jdoubleArray top) {
jdouble *dtop=(*env)->GetDoubleArrayElements(env,top,0);
GetRXAAGCTop(channel,dtop);
(*env)->ReleaseDoubleArrayElements(env,top,dtop,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCTop
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCTop
(JNIEnv *env, jobject obj, jint channel, jdouble top) {
SetRXAAGCTop(channel,top);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCSlope
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCSlope
(JNIEnv *env, jobject obj, jint channel, jint slope) {
SetRXAAGCSlope(channel,slope);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAAGCFixed
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAAGCFixed
(JNIEnv *env, jobject obj, jint channel, jdouble fixed) {
SetRXAAGCFixed(channel,fixed);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXACBLRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXACBLRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXACBLRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAPanelPan
* Signature: (ID)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAPanelPan
(JNIEnv *env, jobject obj, jint channel, jdouble pan) {
SetRXAPanelPan(channel,pan);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAPanelBinaural
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAPanelBinaural
(JNIEnv *env, jobject obj, jint channel, jint bin) {
SetRXAPanelBinaural(channel,bin);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetRXAMeter
* Signature: (II)D
*/
JNIEXPORT jdouble JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetRXAMeter
(JNIEnv *env, jobject obj, jint channel, jint meter) {
return GetRXAMeter(channel,meter);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: RXAGetaSipF
* Signature: (I[FI)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_RXAGetaSipF
(JNIEnv *env, jobject obj, jint channel, jfloatArray out, jint size) {
jfloat *fout=(*env)->GetFloatArrayElements(env,out,0);
RXAGetaSipF(channel,fout,size);
(*env)->ReleaseFloatArrayElements(env,out,fout,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: RXAGetaSipF1
* Signature: (I[FI)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_RXAGetaSipF1
(JNIEnv *env, jobject obj, jint channel, jfloatArray out, jint size) {
jfloat *fout=(*env)->GetFloatArrayElements(env,out,0);
RXAGetaSipF1(channel,fout,size);
(*env)->ReleaseFloatArrayElements(env,out,fout,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: Spectrum
* Signature: (III[F[F)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_Spectrum
(JNIEnv *env, jobject obj, jint channel, jint ss, jint LO, jfloatArray i, jfloatArray q) {
jfloat *fi=(*env)->GetFloatArrayElements(env,i,0);
jfloat *fq=(*env)->GetFloatArrayElements(env,q,0);
Spectrum(channel,ss,LO,fi,fq);
(*env)->ReleaseFloatArrayElements(env,q,fq,0);
(*env)->ReleaseFloatArrayElements(env,i,fi,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: Spectrum2
* Signature: (III[F)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_Spectrum2
(JNIEnv *env, jobject obj, jint channel, jint ss, jint LO, jfloatArray buffer) {
jfloat *fbuffer=(*env)->GetFloatArrayElements(env,buffer,0);
Spectrum2(channel,ss,LO,fbuffer);
(*env)->ReleaseFloatArrayElements(env,buffer,fbuffer,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetTXAMode
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetTXAMode
(JNIEnv *env, jobject obj, jint channel, jint mode) {
SetTXAMode(channel,mode);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetTXABandpassRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetTXABandpassRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetTXABandpassRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetTXABandpassFreqs
* Signature: (IDD)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetTXABandpassFreqs
(JNIEnv *env, jobject obj, jint channel, jdouble low, jdouble high) {
SetTXABandpassFreqs(channel,low,high);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: XCreateAnalyzer
* Signature: (I[IIIIS)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_XCreateAnalyzer
(JNIEnv *env, jobject obj, jint disp, jintArray success, jint m_size, jint m_LO, jint m_stitch, jstring app_data_path) {
jint *successptr = (*env)->GetIntArrayElements(env, success, 0);
const char *app_data_path_ptr = (*env)->GetStringUTFChars(env, app_data_path, NULL);
XCreateAnalyzer(disp, successptr, m_size, m_LO, m_stitch, app_data_path_ptr);
(*env)->ReleaseStringUTFChars(env, app_data_path, app_data_path_ptr);
(*env)->ReleaseIntArrayElements(env,success,successptr,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: DestroyAnalyzer
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_DestroyAnalyzer
(JNIEnv *env, jobject obj, jint disp) {
DestroyAnalyzer(disp);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetAnalyzer
* Signature: (IIII[IIIIDIIIIIIIIDIDDI)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetAnalyzer
(JNIEnv *env, jobject obj, jint disp, jint n_fft, jint typ, jintArray flp, jint sz, jint bf_sz, jint win_type, jdouble pi, jint ovrlp, jint clp, jint fscLin, jint fscHin, jint n_pix, jint n_stch, jint av_m, jint n_av, jdouble av_b, jint calset, jdouble fmin, jdouble fmax, jint max_w) {
jint *flpptr = (*env)->GetIntArrayElements(env, flp, 0);
SetAnalyzer(disp, n_fft, typ, flpptr, sz, bf_sz, win_type, pi, ovrlp, clp, fscLin, fscHin, n_pix, n_stch, av_m, n_av, av_b, calset, fmin, fmax, max_w);
(*env)->ReleaseIntArrayElements(env,flp,flpptr,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: GetPixels
* Signature: (I[FI)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_GetPixels
(JNIEnv *env, jobject obj, jint disp, jfloatArray pix, jintArray flag) {
jfloat *pixptr = (*env)->GetFloatArrayElements(env, pix, 0);
jint *flagptr = (*env)->GetIntArrayElements(env, flag, 0);
GetPixels(disp,pixptr,flagptr);
(*env)->ReleaseIntArrayElements(env,flag,flagptr,0);
(*env)->ReleaseFloatArrayElements(env,pix,pixptr,0);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: WDSPwisdom
* Signature: (S)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_WDSPwisdom
(JNIEnv *env, jobject obj, jstring dir) {
const char *dir_ptr = (*env)->GetStringUTFChars(env, dir, NULL);
WDSPwisdom(dir_ptr,env,obj);
(*env)->ReleaseStringUTFChars(env, dir, dir_ptr);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEMNRRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEMNRRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAEMNRRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEMNRgainMethod
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEMNRgainMethod
(JNIEnv *env, jobject obj, jint channel, jint method) {
SetRXAEMNRgainMethod(channel,method);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEMNRnpeMethod
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEMNRnpeMethod
(JNIEnv *env, jobject obj, jint channel, jint method) {
SetRXAEMNRnpeMethod(channel,method);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEMNRaeRun
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEMNRaeRun
(JNIEnv *env, jobject obj, jint channel, jint run) {
SetRXAEMNRaeRun(channel,run);
}
/*
* Class: org_g0orx_openhpsdr_wdsp_WDSP
* Method: SetRXAEMNRPosition
* Signature: (II)V
*/
JNIEXPORT void JNICALL Java_org_g0orx_openhpsdr_wdsp_WDSP_SetRXAEMNRPosition
(JNIEnv *env, jobject obj, jint channel, jint position) {
SetRXAEMNRPosition(channel,position);
}