#[cfg(any(target_env = "v5", target_env = "exp", doc))]
use crate::{map_jump_table, V5_DeviceT};
#[cfg(any(target_env = "v5", target_env = "exp", doc))]
use core::ffi::c_double;
#[repr(transparent)]
#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
pub struct V5_DeviceMagnetDuration(pub core::ffi::c_uchar);
impl V5_DeviceMagnetDuration {
pub const kMagnetDurationShort: Self = Self(0);
pub const kMagnetDurationMedium: Self = Self(1);
pub const kMagnetDurationLong: Self = Self(2);
pub const kMagnetDurationExtraLong: Self = Self(3);
}
#[cfg(any(target_env = "v5", target_env = "exp", doc))]
map_jump_table! {
0x578 => pub fn vexDeviceMagnetPowerSet(device: V5_DeviceT, value: i32, time: i32),
0x57c => pub fn vexDeviceMagnetPowerGet(device: V5_DeviceT) -> i32,
0x580 => pub fn vexDeviceMagnetPickup(device: V5_DeviceT, duration: V5_DeviceMagnetDuration),
0x584 => pub fn vexDeviceMagnetDrop(device: V5_DeviceT, duration: V5_DeviceMagnetDuration),
0x588 => pub fn vexDeviceMagnetTemperatureGet(device: V5_DeviceT) -> c_double,
0x58c => pub fn vexDeviceMagnetCurrentGet(device: V5_DeviceT) -> c_double,
0x590 => pub fn vexDeviceMagnetStatusGet(device: V5_DeviceT) -> u32,
}