All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.divpundir.mavlink.definitions.common.CellularConfigResponse.kt Maven / Gradle / Ivy

The newest version!
package com.divpundir.mavlink.definitions.common

import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt

/**
 * Possible responses from a CELLULAR_CONFIG message.
 */
@GeneratedMavEnum
public enum class CellularConfigResponse(
  override val `value`: UInt,
) : MavEnum {
  /**
   * Changes accepted.
   */
  @GeneratedMavEnumEntry
  ACCEPTED(0u),
  /**
   * Invalid APN.
   */
  @GeneratedMavEnumEntry
  APN_ERROR(1u),
  /**
   * Invalid PIN.
   */
  @GeneratedMavEnumEntry
  PIN_ERROR(2u),
  /**
   * Changes rejected.
   */
  @GeneratedMavEnumEntry
  REJECTED(3u),
  /**
   * PUK is required to unblock SIM card.
   */
  @GeneratedMavEnumEntry
  CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED(4u),
  ;

  public companion object : MavEnum.MavCompanion {
    override fun getEntryFromValueOrNull(v: UInt): CellularConfigResponse? = when (v) {
      0u -> ACCEPTED
      1u -> APN_ERROR
      2u -> PIN_ERROR
      3u -> REJECTED
      4u -> CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED
      else -> null
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy