vex_sdk/
light_tower.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! CTE Workcell Signal Tower

#[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))]
map_jump_table! {
    0x5b8 => pub fn vexDeviceLightTowerBlinkSet(device: V5_DeviceT, select: u8, mask: u8, onTime: i32, offTime: i32),
    0x5a4 => pub fn vexDeviceLightTowerColorSet(device: V5_DeviceT, color_id: u32, value: u32),
    0x5a8 => pub fn vexDeviceLightTowerRgbGet(device: V5_DeviceT) -> u32,
    0x5a0 => pub fn vexDeviceLightTowerRgbSet(device: V5_DeviceT, rgb_value: u32, xyw_value: u32),
    0x5b0 => pub fn vexDeviceLightTowerStatusGet(device: V5_DeviceT) -> u32,
    0x5b4 => pub fn vexDeviceLightTowerDebugGet(device: V5_DeviceT, id: i32) -> u32,
    0x5ac => pub fn vexDeviceLightTowerXywGet(device: V5_DeviceT) -> u32,
}