Enumerations | Functions | Variables

/Users/au/Development/AVR C/YACK/yack.c File Reference

CW Keyer library. More...

#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <util/delay.h>
#include <stdint.h>
#include "yack.h"
Include dependency graph for yack.c:

Go to the source code of this file.




void yackreset (void)
 Sets all yack parameters to standard values.
void yackinit (void)
 Initializes the YACK library.


byte magic EEMEM = MAGPAT
const byte morse[] PROGMEM
 Morse code table in Flash.

Detailed Description

CW Keyer library.

Jan Lategahn DK3LJ jan@lategahn.com (C) 2011

This program 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 3 of the License, or (at your option) any later version.

This program 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.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

15.10.2010 - Created
16.11.2011 - Last update
Make the delay dependent on T/C 1

Definition in file yack.c.

Enumeration Type Documentation


Not keyed, waiting for paddle.


Keyed, waiting for duration of current element.


In Inter-Element-Gap.

Definition at line 46 of file yack.c.

Function Documentation

void yackinit ( void   )

Initializes the YACK library.

This function initializes the keyer hardware according to configurations in the .h file. Then it attempts to read saved configuration settings from EEPROM. If not possible, it will reset all values to their defaults. This function must be called once before the remaining fuctions can be used.

Definition at line 175 of file yack.c.

Here is the call graph for this function:

void yackreset ( void   )

Sets all yack parameters to standard values.

This function resets all YACK EEPROM settings to their default values as stored in the .h file. It sets the dirty flag and calls the save routine to write the data into EEPROM immediately.

Definition at line 153 of file yack.c.

Variable Documentation

const char spechar [6] PROGMEM

Morse code table in Flash.

Encoding: Each byte is read from the left. 0 stands for a dot, 1 stands for a dash. After each played element the content is shifted left. Playback stops when the leftmost bit contains a "1" and the rest of the bits are all zero.

Example: A = .- Encoding: 01100000 .- | This is the stop marker (1 with all trailing zeros)

Definition at line 88 of file yack.c.

 All Files Functions Variables Enumerations Enumerator