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

main.com.divpundir.mavlink.definitions.common.WifiConfigApMode.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

/**
 * WiFi Mode.
 */
@GeneratedMavEnum
public enum class WifiConfigApMode(
  public override val `value`: UInt,
) : MavEnum {
  /**
   * WiFi mode is undefined.
   */
  @GeneratedMavEnumEntry
  UNDEFINED(0u),
  /**
   * WiFi configured as an access point.
   */
  @GeneratedMavEnumEntry
  AP(1u),
  /**
   * WiFi configured as a station connected to an existing local WiFi network.
   */
  @GeneratedMavEnumEntry
  STATION(2u),
  /**
   * WiFi disabled.
   */
  @GeneratedMavEnumEntry
  DISABLED(3u),
  ;

  public companion object : MavEnum.Companion {
    public override fun getEntryFromValueOrNull(v: UInt): WifiConfigApMode? = when (v) {
      0u -> UNDEFINED
      1u -> AP
      2u -> STATION
      3u -> DISABLED
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy