diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-02 21:52:48 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-01-02 21:52:48 +0100 |
commit | a0696e7931dcd61cc667722466e5deaa83cca98d (patch) | |
tree | 6f49da3410b8fd4bc2dbbc49be45e5226c44aa77 /src/fsm/psk31.h | |
parent | b0dc8db95eaf530cb0fffd3912dd8e8201a17c52 (diff) | |
download | glutte-o-matic-a0696e7931dcd61cc667722466e5deaa83cca98d.tar.gz glutte-o-matic-a0696e7931dcd61cc667722466e5deaa83cca98d.tar.bz2 glutte-o-matic-a0696e7931dcd61cc667722466e5deaa83cca98d.zip |
Combine CW and PSK31 code
Diffstat (limited to 'src/fsm/psk31.h')
-rw-r--r-- | src/fsm/psk31.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/fsm/psk31.h b/src/fsm/psk31.h deleted file mode 100644 index 3f08ecf..0000000 --- a/src/fsm/psk31.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 Matthias P. Braendli - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. -*/ - -/* An implementation of a BPSK31 generator. - */ - -#ifndef __PSK_31_H_ -#define __PSK_31_H_ -#include <stdint.h> -#include <stddef.h> - -void psk31_init(unsigned int samplerate); - -// Append new psk31 text to transmit -// PSK31 audio centre frequency in Hz -// returns 0 on failure, 1 on success -int psk31_push_message(const char* text, int frequency); - - -// Write the waveform into the buffer (stereo) -size_t psk31_fill_buffer(int16_t *buf, size_t bufsize); - -// Return 1 if the psk31 generator has completed transmission -int psk31_busy(void); - -#endif // __PSK_31_H_ - |