|
JS8Call-Improved master
|
JS8 Submode namespace implementation. More...
Classes | |
| struct | error |
| Exception type thrown for invalid or unsupported submode inputs. More... | |
Functions | |
| QString | name (int const submode) |
| Get the name of the submode. | |
| unsigned int | bandwidth (int const submode) |
| Get the bandwidth of the submode. | |
| Costas::Type | costas (int const submode) |
| Get the Costas array type of the submode. | |
| unsigned int | samplesPerPeriod (int const submode) |
| Get the number of samples per period of the submode. | |
| unsigned int | samplesForSymbols (int const submode) |
| Get the number of samples for symbols of the submode. | |
| unsigned int | samplesNeeded (int const submode) |
| Get the number of samples needed for the submode. | |
| unsigned int | period (int const submode) |
| Get the period of the submode. | |
| int | rxSNRThreshold (int const submode) |
| Get the receive SNR threshold of the submode. | |
| int | rxThreshold (int const submode) |
| Get the receive threshold of the submode. | |
| unsigned int | startDelayMS (int const submode) |
| Get the start delay in milliseconds of the submode. | |
| unsigned int | samplesForOneSymbol (int const submode) |
| Get the number of samples for one symbol of the submode. | |
| double | toneSpacing (int const submode) |
| Get the tone spacing of the submode. | |
| double | dataDuration (int const submode) |
| Get the data duration of the submode. | |
| double | txDuration (int const submode) |
| Get the transmit duration of the submode. | |
| int | computeCycleForDecode (int const submode, int const k) |
| Compute the cycle for decode. | |
| int | computeAltCycleForDecode (int const submode, int const k, int const offsetFrames) |
| Compute the alternate cycle for decode. | |
| double | computeRatio (int const submode, double const period) |
| Compute the ratio of data duration to period. | |
JS8 Submode namespace implementation.
| unsigned int JS8::Submode::bandwidth | ( | int const | submode | ) |
Get the bandwidth of the submode.
Return the nominal audio bandwidth for the given submode.
| submode |
| submode | Numeric submode identifier. |
| JS8::Submode::error | if submode is invalid. |

| int JS8::Submode::computeAltCycleForDecode | ( | int const | submode, |
| int const | k, | ||
| int const | offsetFrames ) |
Compute the alternate cycle for decode.
Compute an alternate decode cycle index for specialized modes.
| submode | |
| k | |
| offsetFrames |
| submode | Numeric submode identifier. |
| a | First mode-specific parameter. |
| b | Second mode-specific parameter. |

| int JS8::Submode::computeCycleForDecode | ( | int const | submode, |
| int const | k ) |
Compute the cycle for decode.
Compute the decode cycle index for a given candidate.
| submode | |
| k |
| submode | Numeric submode identifier. |
| param | Additional mode-specific parameter (e.g., cycle offset). |


| double JS8::Submode::computeRatio | ( | int const | submode, |
| double const | period ) |
Compute the ratio of data duration to period.
Compute a ratio value used by submode-specific calculations.
| submode | |
| period |
| submode | Numeric submode identifier. |
| value | Input value used in ratio computation. |

| Costas::Type JS8::Submode::costas | ( | int const | submode | ) |
Get the Costas array type of the submode.
Return the Costas array type used by the submode.
| submode |
| submode | Numeric submode identifier. |
| double JS8::Submode::dataDuration | ( | int const | submode | ) |
Get the data duration of the submode.
Duration (seconds) consumed by transmitting the symbol block.
| submode |
| submode | Numeric submode identifier. |

| QString JS8::Submode::name | ( | int const | submode | ) |
Get the name of the submode.
Return the submode name (uppercase).
| submode |
| submode | Numeric submode identifier. |
| JS8::Submode::error | if submode is invalid. |


| unsigned int JS8::Submode::period | ( | int const | submode | ) |
Get the period of the submode.
Transmission period (seconds) from start-to-start for the submode.
| submode |
| submode | Numeric submode identifier. |

| int JS8::Submode::rxSNRThreshold | ( | int const | submode | ) |
Get the receive SNR threshold of the submode.
Receiver SNR threshold used for candidate selection.
| submode |
| submode | Numeric submode identifier. |

| int JS8::Submode::rxThreshold | ( | int const | submode | ) |
Get the receive threshold of the submode.
Generic receiver threshold (implementation-specific).
| submode |
| submode | Numeric submode identifier. |

| unsigned int JS8::Submode::samplesForOneSymbol | ( | int const | submode | ) |
Get the number of samples for one symbol of the submode.
Number of audio samples (at 12 kHz) per symbol.
| submode |
| submode | Numeric submode identifier. |

| unsigned int JS8::Submode::samplesForSymbols | ( | int const | submode | ) |
Get the number of samples for symbols of the submode.
Number of audio samples used to transmit all symbols in one period.
| submode |
| submode | Numeric submode identifier. |
| unsigned int JS8::Submode::samplesNeeded | ( | int const | submode | ) |
Get the number of samples needed for the submode.
Samples required to capture the full TX duration including start delay and padding.
| submode |
| submode | Numeric submode identifier. |
| unsigned int JS8::Submode::samplesPerPeriod | ( | int const | submode | ) |
Get the number of samples per period of the submode.
Samples per period at 12 kHz (includes guard/padding).
| submode |
| submode | Numeric submode identifier. |

| unsigned int JS8::Submode::startDelayMS | ( | int const | submode | ) |
Get the start delay in milliseconds of the submode.
Milliseconds to wait after TX start before sending data.
| submode |
| submode | Numeric submode identifier. |

| double JS8::Submode::toneSpacing | ( | int const | submode | ) |
Get the tone spacing of the submode.
Nominal tone spacing (Hz) for the submode.
| submode |
| submode | Numeric submode identifier. |

| double JS8::Submode::txDuration | ( | int const | submode | ) |
Get the transmit duration of the submode.
Full transmission duration in seconds including start delay.
| submode |
| submode | Numeric submode identifier. |