Erlang binding to the Z-Way C API