package
0.3.2
Repository: https://github.com/ftl/tci.git
Documentation: pkg.go.dev

# Functions

KeepOpen opens a connection to the given host and tries to keep an open connection by automatically trying to reconnect when an established connection is lost (after the given grace period).
NewARGB returns a ARGB with the given alpha, red, green, and blue values.
NewCommandMessage returns a new message with the given name and the given arguments that does not require a response.
NewRequestMessage returns a new message with the given name and the given arguments that requires a response.
NewTXAudioMessage returns a binary message of type TXAudioStream that contains the given samples.
Open a connection to the given host.
ParseBinaryMessage parses the given byte slice as incoming binary message.
ParseMessage interprets the given string as a TCI message.

# Constants

All available sample rates for audio data.
All available sample rates for audio data.
All available sample rates for audio data.
All available sample rates for audio data.
All available CTCSS modes.
All available CTCSS modes.
All available CTCSS modes.
DefaultPort of TCI.
All available sample rates for IQ data.
All available sample rates for IQ data.
All available sample rates for IQ data.
All message types available in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All modes acvailable in TCI.
All message types available in TCI.
All available sources for the TX audio signal.
All available sources for the TX audio signal.
All available sources for the TX audio signal.
All message types available in TCI.
All message types available in TCI.
All available VFOs in TCI.
All available VFOs in TCI.

# Variables

DefaultTimeout is the default duration to wait for the reply of a command.
ErrNotConnected indicates that there is currently no TCI connection available.
ErrTimeout indicates a timeout while waiting for the reply of a command.

# Structs

BinaryMessage represents a binary message that is exchanged between the TCI server and a client.
Client represents a TCI client.
DeviceInfo contains the basic information about the SunSDR device which are transmitted when the TCI connection is established.
Message represents a message that is exchanged between the TCI server and a client.

# Interfaces

A AppFocusListener is notified when a APP_FOCUS message is received from the TCI server.
A AudioSampleRateListener is notified when a AUDIO_SAMPLERATE message is received from the TCI server.
A BinaryMessageListener is notified when any binary message (IQ data, audio data, or tx chrono) is received from the TCI server.
A ChannelCountListener is notified when a CHANNEL_COUNT message is received from the TCI server.
ConnectionListener is notified when the TCI connection is established or disconnected.
A CTCSSEnableListener is notified when a CTCSS_ENABLE message is received from the TCI server.
A CTCSSLevelListener is notified when a CTCSS_LEVEL message is received from the TCI server.
A CTCSSModeListener is notified when a CTCSS_MODE message is received from the TCI server.
A CTCSSRXToneListener is notified when a CTCSS_RX_TONE message is received from the TCI server.
A CTCSSTXToneListener is notified when a CTCSS_TX_TONE message is received from the TCI server.
A CWMacrosDelayListener is notified when a CW_MACROS_DELAY message is received from the TCI server.
A CWMacrosEmptyListener is notified then a CW_MACROS_EMPTY message is received from the TCI server.
A CWMacrosSpeedListener is notified when a CW_MACROS_SPEED message is received from the TCI server.
A DDSListener is notified when a DDS message is received from the TCI server.
A DeviceNameListener is notified when a DEVICE message is received from the TCI server.
A DriveListener is notified when a DRIVE message is received from the TCI server.
A ECoderSwitchChannelListener is notified when a ECODER_SWITCH_CHANNEL message is received from the TCI server.
A ECoderSwitchRXListener is notified when a EXODER_SWITCH_RX message is received from the TCI server.
An IFLimitsListener is notified when an IF_LIMITS message is received from the TCI server.
An IFListener is notified when an IF_LIMITS message is received from the TCI server.
A IQDataListener is notified when IQ data is received from the TCI server.
A IQSampleRateListener is notified when a IQ_SAMPLERATE message is received from the TCI server.
MessageListener is notified when any text message is received from the TCI server.
A ModeListener is notified when a MODULATION message is received from the TCI server.
A ModesListener is notified when a MODULATIONS_LIST message is received from the TCI server.
A MuteListener is notified when a MUTE message is received from the TCI server.
A ProtocolListener is notified when a PROTOCOL message is received from the TCI server.
A ReadyListener is notified when a READY message is received from the TCI server.
A RITEnableListener is notified when a RIT_ENABLE message is received from the TCI server.
A RITOffsetListener is notified when a RIT_OFFSET message is received from the TCI server.
A RXANCEnableListener is notified when a RX_ANC_ENABLE message is received from the TCI server.
A RXANFEnableListener is notified when a RX_ANF_ENABLE message is received from the TCI server.
A RXAPFEnableListener is notified when a RX_APF_ENABLE message is received from the TCI server.
A RXAudioListener is notified when RX audio data is received from the TCI server.
A RXBalanceListener is notified when a RX_BALANCE message is received from the TCI server.
A RXBinEnableListener is notified when a RX_BIN_ENABLE message is received from the TCI server.
A RXChannelEnableListener is notified when a RX_CHANNEL_ENABLE message is received from the TCI server.
A RXDSEEnableListener is notified when a RX_DSE_ENABLE message is received from the TCI server.
A RXEnableListener is notified when a RX_ENABLE message is received from the TCI server.
A RXFilterBandListener is notified when a RX_FILTER_BAND message is received from the TCI server.
A RXMuteListener is notified when a RX_MUTE message is received from the TCI server.
A RXNBEnableListener is notified when a RX_NB_ENABLE message is received from the TCI server.
A RXNBParamsListener is notified when a RX_NB_PARAM message is received from the TCI server.
A RXNFEnableListener is notified when a RX_NF_ENABLE message is received from the TCI server.
A RXNREnableListener is notified when a RX_NR_ENABLE message is received from the TCI server.
A RXOnlyListener is notified when a RECEIVE_ONLY message is received from the TCI server.
A RXSensorsListener is notified when a RX_SENSORS message is received from the TCI server.
A RXSMeterListener is notified when a RX_SMETER message is received from the TCI server.
A RXVolumeListener is notified when a RX_VOLUME message is received from the TCI server.
A SplitEnableListener is notified when a SPLIT_ENABLE message is received from the TCI server.
A SquelchEnableListener is notified when a SQL_ENABLE message is received from the TCI server.
A SquelchLevelListener is notified when a SQL_LEVEL message is received from the TCI server.
A StartAudioListener is notified when a AUDIO_START message is received from the TCI server.
A StartIQListener is notified when a IQ_START message is received from the TCI server.
A StartListener is notified when a START message is received from the TCI server.
A StopAudioListener is notified when a AUDIO_STOP message is received from the TCI server.
A StopIQListener is notified when a IQ_STOP message is received from the TCI server.
A StopListener is notified when a STOP message is received from the TCI server.
A TRXCountListener is notified when a TRX_COUNT message is received from the TCI server.
A TRXDriveListener is notified when a DRIVE message for a certain TRX is received from the TCI server.
A TRXTuneDriveListener is notified when a TUNE_DRIVE message for a certain TRX is received from the TCI server.
A TuneDriveListener is notified when a TUNE_DRIVE message is received from the TCI server.
A TuneListener is notified when a TUNE message is received from the TCI server.
A TXChronoListener is notified when a TX chrono message is received from the TCI server.
A TXEnableListener is notified when a TX_ENABLE message is received from the TCI server.
A TXFootswitchListener is notified when a TX_FOOTSWITCH message is received from the TCI server.
A TXFrequencyListener is notified when a TX_FREQUENCY message is received from the TCI server.
A TXListener is notified when a TRX message is received from the TCI server.
A TXPowerListener is notified when a TX_POWER message is received from the TCI server.
A TXSensorsListener is notified when a TX_SENSORS message is received from the TCI server.
A TXSWRListener is notified when a TX_SWR message is received from the TCI server.
A VFOFrequencyListener is notified when a VFO message is received from the TCI server.
A VFOLimitsListener is notified when a VFO_LIMITS message is received from the TCI server.
A VolumeListener is notified when a VOLUME message is received from the TCI server.
A XITEnableListener is notified when a XIT_ENABLE message is received from the TCI server.
A XITOffsetListener is notified when a XIT_OFFSET message is received from the TCI server.

# Type aliases

ARGB represents a color with four (alpha, red, green, blue) 8-bit channels.
AudioSampleRate represents the sample rate for audio data in samples per second.
BinaryMessageType represents the type of a BinaryMessage.
ConnectionListenerFunc wraps a function with the ConnectionListener interface.
CTCSSMode represents the operation mode for CTCSS subtones.
CTCSSTone represents a certain CTCSS subtone.
IQSampleRate represents the sample rate for IQ data in samples per second.
Mode represents the modulation type of a TRX.
SignalSource represents the source of the TX audio signal.
VFO represents a VFO in TCI.