View Single Post
  #1   Spotlight this post!  
Unread 06-08-2015, 12:21
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?

You might try this tool on our website:

http://www.ni.com/download/fpga-inte...-14.0/4946/en/

However, it doesn't support fixed-point or structured registers, so it won't generate a complete API in C.

The rest of the API that uses FXP and structured registers would have to be added afterward.

As for the C++ generator that we currently use, only C++ and Java were ever supported, and Java support has been disabled ever since the WPILib HAL replaced the need for it.

I think you should either use the generator I linked above and manually add accessors for any missing-but-needed-by-you registers or you should write a C wrapper around the C++ chip object library that the HAL uses for at least the registers you care about.