Logo Search packages:      
Sourcecode: c2n version File versions  Download package

c2n.c File Reference


Detailed Description

The main program
Author:
Marko Mäkelä (msmakela@nic.funet.fi)

Definition in file c2n.c.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <math.h>
#include "c2n.h"
#include "decode.h"
#include "encode.h"
#include "oric_d.h"
#include "oric_e.h"

Go to the source code of this file.

Classes

struct  pcm_pulse

Defines

#define USE_PCM
#define USE_SERIAL
#define USE_TAP
#define VERSION   "1.1.4"

Enumerations

enum  pcm_type {
  eight, lsb16, msb16, eight_,
  lsb16_, msb16_
}

Functions

static void cleanup (void)
static unsigned error_report (unsigned pe, unsigned block, unsigned pos)
int main (int argc, char **argv)
static enum pulse p_read (void)
static void p_write (enum pulse p)
static void p_write_pcm (enum pulse p)
static struct pcm_pulsepcm_compute (struct pcm_pulse *sample, unsigned hwidth, unsigned lwidth)
static void sig (int num)
static enum pulse tap_read (void)

Variables

static unsigned channels = 1
static const char * currentFile
static unsigned error_count
static unsigned error_thresold = 10
static FILE * pcm_file
static struct pcm_pulse
pcm_short pcm_medium 
pcm_long
static char pulses [] = { 'A', 'B', 'C', 'D' }
static enum pcm_type samplebits
static unsigned samplerate = 0
static int sign = 1
static unsigned tap_long
static unsigned tap_medium
static unsigned tap_short
unsigned verbose = 0


Generated by  Doxygen 1.6.0   Back to index