#vex #vex-v5 #vex-robotics

nightly no-std vex-sdk

Raw bindings to vexos user jump table functions

26 releases (16 breaking)

0.17.0 May 28, 2024
0.15.0 May 27, 2024
0.5.0 Mar 31, 2024

#16 in Robotics

Download history 215/week @ 2024-03-25 1180/week @ 2024-04-01 777/week @ 2024-04-08 261/week @ 2024-04-15 24/week @ 2024-04-22 319/week @ 2024-04-29 70/week @ 2024-05-06 506/week @ 2024-05-13 90/week @ 2024-05-20 682/week @ 2024-05-27 199/week @ 2024-06-03 120/week @ 2024-06-10

1,139 downloads per month
Used in 8 crates (7 directly)

Custom license



Raw bindings to VEXos user jump table functions.

This repository serves as a partial open-source reimplementation of VEX's V5 runtime SDK (libv5rt.a), but doesn't necessarily aim to be API or ABI compatible. The intent of this crate is to be used as building blocks for higher-level rust tooling to run on the V5 brain without linking to C libraries in any way.

  • Jumptable and firmware address offsets are largely derived from cetio's VEXAPI research repository.
  • Symbols and function signatures are taken from publicly available sources, such as the PROS kernel and projects such as v5rtmod.

[!WARNING] This is fully unofficial and in no way affiliated, endorsed, supported, or created by VEX Robotics.


[!CAUTION] Since vex_sdk simply provides bindings over firmware address offsets, no stability guarantees can be made around these APIs. Use this crate at your own risk - these could change any any point in time with a firmware update (although they probably wont in a major way, since this would break existing user programs).

SDK Coverage

This project aims to cover 100% of the publicly available symbols present in the v5_api SDK, as well as any private symbols that have been released to the public (such as vexTaskAdd).

Functions present in libv5rt that are currently are NOT in vex_sdk:

  • Most things outside of v5_api.hand v5_types.h. This includes the "user functions", which are basically convenience methods for passing in port indexes directly (e.g. vexImuReset vs. vexDeviceImuReset).
  • vexSystemVersion, vexStdlibVersion, vexSdkVersion, vexStdlibVersionLinked, and vexStdlibVersionVerify since these aren't actual functions on the jumptable, just data at addresses. Support might be added in the future, though.
  • Most private API symbols*.
  • The vexDeviceAiCamX family of functions is currently missing bindings, but support is planned.

Private API Symbols

Many symbols in libv5rt are left private (as in, not included in public headers). This is usually done either for stability reasons (VEX not wanting to commit to a stable API yet), or to not expose some lowlevel/debugging functions. In general, this repo tries to avoid exposing anything in the private API. The exceptions to this are functions that have been publicly released by VEX or partner developers for various reasons or demonstrations. This includes the following functions:

  • vexTaskAdd
  • vexTaskGetCallbackAndId
  • vexTaskSleep
  • vexDeviceAdiAddrledSet
  • vexTasksRun (known as vexBackgroundProcessing in the partner SDK)
  • vexDisplayClipRegionSetWithIndex

Usage of these APIs in particular is highly discouraged, as they could break at any point in time from a firmware update. Use them with caution (or better yet, not at all...)