vex-sdk 0.28.0

FFI bindings to VEXos system APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! VEXos Task Scheduler Functions

use core::ffi::{c_char, c_int, c_void};

unsafe extern "system" {
    pub fn vexTaskAdd(
        callback: unsafe extern "system" fn() -> c_int,
        interval: c_int,
        label: *const c_char,
    );
    pub fn vexTaskGetCallbackAndId(index: u32, callback_id: *mut c_int) -> *mut c_void;
    pub fn vexTaskSleep(time: u32);
    pub fn vexBackgroundProcessing();
    pub fn vexTasksRun();
}