S905X VIM PRO fast GPIO

Hello 2All!
I need to connect to the vim two registers 74HC573 for reading and writing.
Please help to find the C libraries or examles for set/reset/setdirection/read/write the GPIO bits/ports .
ubuntu 16.04
shell does not fit, very slow
thanks in advance