View Single Post
  #8   Spotlight this post!  
Unread 04-08-2015, 09:17
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Custom roboRIO HAL: Where to find C library for roboRIO fpga?

Quote:
Originally Posted by CodeYeti View Post
Alright, I guess I'll inquire of NI if they plan on providing something like these C bindings in future years as well. Thanks for your help, I'll be sure to report back with results if/when I get this working.
Those C bindings are for a different FPGA image running on the roboRIO. That API and that FPGA are designed to closely mimic the myRIO counterparts. This will certainly be updated in future years (it was only released yesterday!). However, I don't believe it is what you are looking for.

Quote:
Originally Posted by CodeYeti View Post
Any idea of a good way to contact them?
I found you!

Quote:
Originally Posted by CodeYeti View Post
EDIT: Also: is there any documentation on the operation of the registers for the FPGA or is that all fairly secretive as well?
There is a higher level presentation floating around the Internet that I wrote years ago. As for registers, WPILib is the most accurate documentation.

Quote:
Originally Posted by CodeYeti View Post
EDIT2: I'm thinking I could write a parser to parse the lvbitx file and dump out my necessary register definitions for zinc's ioreg macro. This way I can access libNiFpga directly instead of having to go through the roborio-specific frontend. I was able to get some rudimentary parsing done with a crappy python script.
That's actually what I would recommend. Except not manually parsed. Use the NiFpga API for accessing registers. That's all the ChipObject does.