finish ffi binding for pic module