This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This produces raised cosine bpsk*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
typedef struct { | |
long sample_rate; | |
long samples_per_symbol; | |
long max_amp; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// An ASK Demodulator | |
// Simplicity first. Get it working, then improve! | |
// gcc ask-demod.c -o askdemod -lm -Wall | |
// Usage: ./ask-demod ask-msg.raw ask-msg.txt | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Arduino RTTY Modulator | |
// Uses Fast PWM to produce ~8kHz 8bit audio | |
#include "baudot.h" | |
#include "pwmsine.h" | |
// Yeah, I really need to get rid of these globals. | |
// Thats next on the to-do list | |
unsigned int sampleRate = 31250; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Goertzel Demodulator | |
// | |
// This program demodulates two tone FSK using the goertzel algorithm. | |
#include <stdio.h> | |
#include <math.h> | |
struct gConstants { | |
float f1norm; | |
float f2norm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program to make a table of sine values. | |
// I release this to public domain. | |
#include<stdio.h> | |
#include<math.h> | |
int main(){ | |
float pi = 3.14159265358979323846264338327; | |
int max = pow(2,7); // this should be HALF the value for 16bits so (2^16)/2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io._ | |
object Baudot { | |
val ShiftToFigures = 0x1b | |
val ShiftToLetters = 0x1f | |
val figures = Map( | |
0.toChar -> 0x0, | |
' ' -> 0x4, | |
'1' -> 0x1d, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jimmy Carter - KG4SGP | |
// ax.25 UI framer | |
// compile with gcc aframe.c -o aframe | |
#include <stdio.h> | |
#include <string.h> | |
#define poly (0x1201) | |
unsigned char flag = 0x7e; //ax.25 start/stop flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jimmy Carter - KG4SGP | |
// ax.25 UI framer | |
// compile with gcc aframe.c -o aframe | |
#include <stdio.h> | |
#include <string.h> | |
#define poly (0x1201) | |
unsigned char flag = 0x7e; //ax.25 start/stop flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jimmy Carter - KG4SGP | |
// ax.25 UI framer | |
// compile with gcc aframe.c -o aframe | |
#include <stdio.h> | |
#include <string.h> | |
#define poly (0x1201) | |
unsigned char flag = 0x7e; //ax.25 start/stop flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jimmy Carter - KG4SGP | |
// ax.25 UI framer | |
// compile with gcc aframe.c -o aframe | |
#include <stdio.h> | |
#include <string.h> | |
#define poly (0x1201) | |
unsigned char flag = 0x7e; //ax.25 start/stop flag |
NewerOlder