Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SDR I-Gate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CATS
SDR I-Gate
Commits
53be0832
"README.md" did not exist on "7d3531cbd4d62772dc52a2835ab03b9dbb159ca2"
Commit
53be0832
authored
1 year ago
by
Stephen D
Browse files
Options
Downloads
Patches
Plain Diff
drop to 48khz
parent
8f5c1a71
Branches
master
No related tags found
1 merge request
!2
integrate codec2 fsk demodulator.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/codec2/mod.rs
+6
-3
6 additions, 3 deletions
src/codec2/mod.rs
with
6 additions
and
3 deletions
src/codec2/mod.rs
+
6
−
3
View file @
53be0832
...
@@ -2,13 +2,16 @@ use std::collections::VecDeque;
...
@@ -2,13 +2,16 @@ use std::collections::VecDeque;
const
MODE_M_MAX
:
usize
=
4
;
const
MODE_M_MAX
:
usize
=
4
;
const
M
:
i32
=
2
;
const
M
:
i32
=
2
;
const
N_SYM
:
i32
=
50
;
#[link(name
=
"fsk"
,
kind
=
"static"
)]
#[link(name
=
"fsk"
,
kind
=
"static"
)]
extern
"C"
{
extern
"C"
{
fn
fsk_create
(
fn
fsk_create
_hbr
(
Fs
:
libc
::
c_int
,
Fs
:
libc
::
c_int
,
Rs
:
libc
::
c_int
,
Rs
:
libc
::
c_int
,
M
:
libc
::
c_int
,
M
:
libc
::
c_int
,
P
:
libc
::
c_int
,
n_sym
:
libc
::
c_int
,
f1_tx
:
libc
::
c_int
,
f1_tx
:
libc
::
c_int
,
tone_spacing
:
libc
::
c_int
,
tone_spacing
:
libc
::
c_int
,
)
->
*
mut
InternalFsk
;
)
->
*
mut
InternalFsk
;
...
@@ -99,9 +102,9 @@ pub struct Fsk<I: Iterator<Item = Complex>> {
...
@@ -99,9 +102,9 @@ pub struct Fsk<I: Iterator<Item = Complex>> {
impl
<
I
:
Iterator
<
Item
=
Complex
>>
Fsk
<
I
>
{
impl
<
I
:
Iterator
<
Item
=
Complex
>>
Fsk
<
I
>
{
pub
fn
new
(
iq_iter
:
I
)
->
Self
{
pub
fn
new
(
iq_iter
:
I
)
->
Self
{
const
FS
:
i32
=
9600
*
8
;
const
FS
:
i32
=
9600
*
5
;
let
internal
=
unsafe
{
fsk_create
(
FS
,
9600
,
M
,
-
1
,
0
)
};
let
internal
=
unsafe
{
fsk_create
_hbr
(
FS
,
9600
,
M
,
5
,
N_SYM
,
-
1
,
0
)
};
let
fsk_lower
=
-
FS
/
2
;
let
fsk_lower
=
-
FS
/
2
;
let
fsk_upper
=
FS
/
2
;
let
fsk_upper
=
FS
/
2
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment