vex_sdk/
abs_enc.rs

1//! V5 Rotation Sensor
2
3use crate::{map_jump_table, V5_DeviceT};
4
5map_jump_table! {
6    0x488 => pub fn vexDeviceAbsEncReset(device: V5_DeviceT),
7    0x48c => pub fn vexDeviceAbsEncPositionSet(device: V5_DeviceT, position: i32),
8    0x490 => pub fn vexDeviceAbsEncPositionGet(device: V5_DeviceT) -> i32,
9    0x494 => pub fn vexDeviceAbsEncVelocityGet(device: V5_DeviceT) -> i32,
10    0x498 => pub fn vexDeviceAbsEncAngleGet(device: V5_DeviceT) -> i32,
11    0x49c => pub fn vexDeviceAbsEncReverseFlagSet(device: V5_DeviceT, value: bool),
12    0x4a0 => pub fn vexDeviceAbsEncReverseFlagGet(device: V5_DeviceT) -> bool,
13    0x4a4 => pub fn vexDeviceAbsEncStatusGet(device: V5_DeviceT) -> u32,
14    0x4c0 => pub fn vexDeviceAbsEncDataRateSet(device: V5_DeviceT, rate: u32),
15}