Erlang binding to hidapi