ubitx-v5d-xcvr/ubitx_iop/audio.h
Rob French ccae79925b Updated to include iopcomm.h/iopcomm.cpp, common to both the IOP and the
Raduino.  It was intended to be more extensive, but I had to roll some
of it back.  Mostly just sharing of enums/types currently.

Currently in "factory calibration" mode.  Comms (CAT) in normal mode
needs to be re-checked.

Added two tone test mode, with two new modes available via Raduino menu:
TTL and TTU.

Using test mode, I'm thinking that the proper TX output calibration,
assuming a full-scale 700/1900 test tone, is either:

0.061  (which I believe gives a 25 mV RMS output), or
~0.100 (which is just before the audio starts to distort, in terms of
visible harmonics in the spectrum at the 45 MHz IF.
2020-05-16 23:48:39 -05:00

44 lines
828 B
C

//======================================================================
// audio.h
//======================================================================
#ifndef __iop_audio_h__
#define __iop_audio_h__
#include "config.h"
enum RxInput {
RX_RIG_IN = 0,
RX_USB_IN = 1,
};
enum RxOutput {
RX_SPEAKER_OUT = 0,
RX_LINE_OUT = 1,
RX_USB_OUT = 2,
};
enum TxInput {
TX_MIC_IN = -1,
TX_LINE_IN = 0,
TX_USB_IN = 1,
TX_TEST_IN = 2,
};
enum TxOutput {
TX_RIG_OUT = 0,
TX_USB_OUT = 1,
};
void audioInit();
void audioSelectTxInput(TxInput);
void audioTransmit();
void audioReceive();
void audioCalibrate(IOPConfig *, char, char, char, float, bool);
#endif
//======================================================================
// EOF
//======================================================================