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"
Go to the source code of this file.
Enumerations | |
enum | FSMSTATE { IDLE, KEYED, IEG } |
Functions | |
void | yackreset (void) |
Sets all yack parameters to standard values. | |
void | yackinit (void) |
Initializes the YACK library. | |
Variables | |
byte magic | EEMEM = MAGPAT |
const byte morse[] | PROGMEM |
Morse code table in Flash. |
CW Keyer library.
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/>.
Definition in file yack.c.
enum FSMSTATE |
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.
void yackreset | ( | void | ) |
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)