vex_sdk/
abs_enc.rs

1//! V5 Rotation Sensor
2
3use crate::V5_DeviceT;
4
5unsafe extern "system" {
6    pub fn vexDeviceAbsEncReset(device: V5_DeviceT);
7    pub fn vexDeviceAbsEncPositionSet(device: V5_DeviceT, position: i32);
8    pub fn vexDeviceAbsEncPositionGet(device: V5_DeviceT) -> i32;
9    pub fn vexDeviceAbsEncVelocityGet(device: V5_DeviceT) -> i32;
10    pub fn vexDeviceAbsEncAngleGet(device: V5_DeviceT) -> i32;
11    pub fn vexDeviceAbsEncReverseFlagSet(device: V5_DeviceT, value: bool);
12    pub fn vexDeviceAbsEncReverseFlagGet(device: V5_DeviceT) -> bool;
13    pub fn vexDeviceAbsEncStatusGet(device: V5_DeviceT) -> u32;
14    pub fn vexDeviceAbsEncDataRateSet(device: V5_DeviceT, rate: u32);
15}