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

main.com.divpundir.mavlink.definitions.common.WifiConfigApResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.2.8
Show 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 WIFI_CONFIG_AP message.
 */
@GeneratedMavEnum
public enum class WifiConfigApResponse(
  public override val `value`: UInt,
) : MavEnum {
  /**
   * Undefined response. Likely an indicative of a system that doesn't support this request.
   */
  @GeneratedMavEnumEntry
  UNDEFINED(0u),
  /**
   * Changes accepted.
   */
  @GeneratedMavEnumEntry
  ACCEPTED(1u),
  /**
   * Changes rejected.
   */
  @GeneratedMavEnumEntry
  REJECTED(2u),
  /**
   * Invalid Mode.
   */
  @GeneratedMavEnumEntry
  MODE_ERROR(3u),
  /**
   * Invalid SSID.
   */
  @GeneratedMavEnumEntry
  SSID_ERROR(4u),
  /**
   * Invalid Password.
   */
  @GeneratedMavEnumEntry
  PASSWORD_ERROR(5u),
  ;

  public companion object : MavEnum.Companion {
    public override fun getEntryFromValueOrNull(v: UInt): WifiConfigApResponse? = when (v) {
      0u -> UNDEFINED
      1u -> ACCEPTED
      2u -> REJECTED
      3u -> MODE_ERROR
      4u -> SSID_ERROR
      5u -> PASSWORD_ERROR
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy