commonMain.com.divpundir.mavlink.definitions.ardupilotmega.MavRemoteLogDataBlockStatuses.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of definitions-jvm Show documentation
Show all versions of definitions-jvm Show documentation
A modern MAVLink library for the JVM written in Kotlin.
The newest version!
package com.divpundir.mavlink.definitions.ardupilotmega
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt
/**
* Possible remote log data block statuses.
*/
@GeneratedMavEnum
public enum class MavRemoteLogDataBlockStatuses(
override val `value`: UInt,
) : MavEnum {
/**
* This block has NOT been received.
*/
@GeneratedMavEnumEntry
MAV_REMOTE_LOG_DATA_BLOCK_NACK(0u),
/**
* This block has been received.
*/
@GeneratedMavEnumEntry
MAV_REMOTE_LOG_DATA_BLOCK_ACK(1u),
;
public companion object : MavEnum.MavCompanion {
override fun getEntryFromValueOrNull(v: UInt): MavRemoteLogDataBlockStatuses? = when (v) {
0u -> MAV_REMOTE_LOG_DATA_BLOCK_NACK
1u -> MAV_REMOTE_LOG_DATA_BLOCK_ACK
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy