RadioConfigUseCase

open class RadioConfigUseCase(radioController: RadioController)(source)

Use case for interacting with radio configuration components.

Constructors

Link copied to clipboard
constructor(radioController: RadioController)

Functions

Link copied to clipboard
open suspend fun getCannedMessages(destNum: Int): Int

Requests the canned messages from the radio.

Link copied to clipboard
open suspend fun getChannel(destNum: Int, index: Int): Int

Requests a channel from the radio.

Link copied to clipboard
open suspend fun getConfig(destNum: Int, configType: Int): Int

Requests a configuration section from the radio.

Link copied to clipboard
open suspend fun getDeviceConnectionStatus(destNum: Int): Int

Requests the device connection status from the radio.

Link copied to clipboard
open suspend fun getModuleConfig(destNum: Int, moduleConfigType: Int): Int

Requests a module configuration section from the radio.

Link copied to clipboard
open suspend fun getOwner(destNum: Int): Int

Requests the owner information from the radio.

Link copied to clipboard
open suspend fun getRingtone(destNum: Int): Int

Requests the ringtone from the radio.

Link copied to clipboard
open suspend fun removeFixedPosition(destNum: Int)

Removes the fixed position on the radio.

Link copied to clipboard
open suspend fun setCannedMessages(destNum: Int, messages: String)

Sets the canned messages on the radio.

Link copied to clipboard
open suspend fun setConfig(destNum: Int, config: Config): Int

Updates a configuration section on the radio.

Link copied to clipboard
open suspend fun setFixedPosition(destNum: Int, position: Position)

Updates the fixed position on the radio.

Link copied to clipboard
open suspend fun setModuleConfig(destNum: Int, config: ModuleConfig): Int

Updates a module configuration section on the radio.

Link copied to clipboard
open suspend fun setOwner(destNum: Int, user: User): Int

Updates the owner information on the radio.

Link copied to clipboard
open suspend fun setRemoteChannel(destNum: Int, channel: Channel): Int

Updates a channel on the radio.

Link copied to clipboard
open suspend fun setRingtone(destNum: Int, ringtone: String)

Sets the ringtone on the radio.