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

encode.h

Go to the documentation of this file.
/**
 * @file encode.h
 * C2N pulse stream encoder interface
 * @author Marko Mäkelä (msmakela@nic.funet.fi)
 */

/* Copyright © 2001 Marko Mäkelä.

   This file is part of C2N, a program for processing data tapes in
   Commodore C2N format.

   C2N is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   C2N is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
   License for more details.

   The GNU General Public License is often shipped with GNU software, and
   is generally kept in a file called COPYING or LICENSE.  If you do not
   have a copy of the license, write to the Free Software Foundation,
   59 Temple Place, Suite 330, Boston, MA 02111 USA. */

/** C2N pulse stream encoder
 * @param in      the data stream
 * @param err     the error reporter
 * @param wr      the pulse stream writer
 * @param begin   number of initial synchronization pulses
 * @param intra   number of intra-block synchronization pulses
 * @return  number of blocks written; 0 on failure
 */
unsigned
encode (FILE* in, pulse_error_t err, pulse_w_t wr,
      unsigned begin, unsigned intra);

/** Commodore 1531 (Commodore 264 series) pulse stream encoder
 * @param in      the data stream
 * @param err     the error reporter
 * @param wr      the pulse stream writer
 * @param begin   number of initial synchronization pulses
 * @param intra   number of intra-block synchronization pulses
 * @return  number of blocks written; 0 on failure
 */
unsigned
encode264 (FILE* in, pulse_error_t err, pulse_w_t wr,
      unsigned begin, unsigned intra);

Generated by  Doxygen 1.6.0   Back to index