Rust bindings to the HAL
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

wpilib-hal

This crate aims to create bindings to the hardware abstractions used in wpilib. Another crate will provide things like commands and PID loops and whatnot. A NetworkTables wrapper will be provided in another crate.

Also See:

Also be sure to check out another wpilib Rust port here. It has bindings to a bunch of WPILIB as well as some of the abstractions not provided here.

WPILibC and WPILibJ, and the library headers used in this crate can be found here.

Progress:

Designs are not final, and a ceanup pass needs to be done after everything is wrapped. During this pass, the HAL implementation will be reviewed and as many functions that can currently error as possible will be replaced with non-erroring variants. Some other things like usage reporting also need to be done.

Here is a list of thigs that currently have wrappers:

  • Onboard Accelerometer
  • Analog I/O
  • Analog Gyro
  • Analog Trigger
  • Compressor
  • Digital I/O
  • Encoder
  • Interrupt Handler
  • Hardware Timer
  • Power Distribution Panel
  • Relays
  • Serial I/O
  • Solenoids
  • Miscellaneous

Here is a list of things to be worked on/wrapped:

  • CAN Transmission
  • Digital Counter
  • Digital Glitch Filter
  • I2C
  • Driver Station & Joysticks
  • PWM
  • SPI