View Single Post
  #1   Spotlight this post!  
Unread 03-08-2015, 16:41
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Custom roboRIO HAL: Where to find C library for roboRIO fpga?

Hello. I noticed that WPIlib uses a C++ api to access the roborio fpga (this api appears to be generated). I was wondering if there is anyplace I could either find or (even better), generate, a C version of this api to the roboRIO fpga?

I found this document from NI seemingly explaining how to get the c support library for roborio, but when I go to http://ni.com/info and enter the code roboriocsupport2015, nothing comes up.

It would be really advantageous if I could somehow just do the code generation myself rather than rely on an NI mirror, but I bet the FPGA definitions required to generate that are probably proprietary.

tl;dr Where is wpilib getting it's fpga libraries/headers for the roborio? And where can I find a C (instead of C++) equivalent?

Beyond that, I'd be stuck with writing C-ish bindings to the c++ version of the api, which seems easily breakable and just wrong.

Thanks in advance for the help,
Matt Coffin
__________________
Team 662 - Student/Programming VP/Driver - (2011-2013) - 43-31-2
Team 662 - Mentor - (2015-present) - 0-0-0