{"id":18962286,"url":"https://github.com/lipp/lualibusb","last_synced_at":"2025-07-15T20:37:41.413Z","repository":{"id":2700761,"uuid":"3694323","full_name":"lipp/lualibusb","owner":"lipp","description":"the unmodified lualibusb 1.0 brought to github with rockspec","archived":false,"fork":false,"pushed_at":"2012-03-12T11:20:22.000Z","size":104,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-02T06:13:23.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://files.luaforge.net/releases/lualibusb/lualibusb/1.0","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lipp.png","metadata":{"files":{"readme":"README","changelog":"HISTORY","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-12T11:07:48.000Z","updated_at":"2016-11-20T22:19:14.000Z","dependencies_parsed_at":"2022-08-29T10:51:02.094Z","dependency_job_id":null,"html_url":"https://github.com/lipp/lualibusb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lipp/lualibusb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Flualibusb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Flualibusb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Flualibusb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Flualibusb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lipp","download_url":"https://codeload.github.com/lipp/lualibusb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipp%2Flualibusb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265457942,"owners_count":23769032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:15:50.738Z","updated_at":"2025-07-15T20:37:41.349Z","avatar_url":"https://github.com/lipp.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lua-libusb Binding.\n\n\nAuthors\n=======\n\nJorge Visca \u003cxxopxe@gmail.com\u003e\nAndres Aguirre \u003caguirrea@gmail.com\u003e\n\nCopyright 2008 MINA Group, Facultad de Ingenieria, Universidad de la\nRepublica, Uruguay.\n\nSee LICENSE\n\nInstallation\n============\n\nsudo luarocks install https://github.com/lipp/lualibusb/raw/master/rockspecs/lualibusb-scm-1.rockspec\n\n\t\nIntro\n=====\n\nFor sample usage, see test.lua\t\nTested on Linux, with libusb 0.1.12\n\n\nFunctions\n==========\n\nThe following correspond to functions in libusb.h . For reference, \nsee http://libusb.sourceforge.net/doc/functions.html\n \nfind_busses()\n\tReturns a number\n \nfind_devices(bus)\n\tReturns a number\n\t \nget_busses()\n\tReturns a dirname-\u003ebus_handler map\n\nget_devices(bus_handler)\n\tReturns a filename-\u003edevice map\n\nopen(device)\n\tReturns a dev_handle\n\nclose(dev_handle)\n\tReturns true if success. In case of failure returns nil followed by error code.\n\t\nset_configuration(dev_handle, configuration)\n\tconfiguration is a number\n\tReturns true if success. In case of failure returns nil followed by error code.\n\nset_altinterface(dev_handle, alternative)\n\tconfiguration is a number\n\tReturns true if success. In case of failure returns nil followed by error code.\n\t\nclear_halt(dev_handle, ep)\n\tep is a number\n\tReturns true if success. In case of failure returns nil followed by error code.\n\nreset(dev_handle)\n\tReturns true if success. In case of failure returns nil followed by error code.\n\nclaim_interface(dev_handle, interface)\n\tinterface is a number\n\tReturns true if success. In case of failure returns nil followed by error code.\n\nrelease_interface(dev_handle, interface)\n\tinterface is a number\n\tReturns true if success. In case of failure returns nil followed by error code.\n\t\t\ncontrol_msg(dev_handle,requesttype,request,value,index,bytes,timeout)\n\trequesttype,request,value,index and timeout are numbers\n\tbytes is a string\n\tReturns a number if success. In case of failure returns nil followed by error code.\n\n\nget_string_simple(dev_handle,index,buflen)\n\tindex is a number\n\tbuflen is a number, if missing or 0 defaults to 255\n\tReturns a string. In case of failure returns nil followed by error code.\n\nTODO: usb_get_string\n\nget_descriptor(dev_handle,type,index,size)\n\ttype and index are numbers (0..255)\n\tsize is a number, if missing or 0 defaults to 255\n\tReturns a string. In case of failure returns nil followed by error code.\n\t\nget_descriptor_by_endpoint(dev_handle,ep,type,index,size)\n\ttype and index are numbers (0..255)\n\tep is a numbers\n\tsize is a number, if missing or 0 defaults to 255\n\tReturns a string. In case of failure returns nil followed by error code.\n\t\t\nbulk_write(dev_handle,ep,bytes,timeout)\n\tep and timeout are numbers\n\tbytes is a string\n\tReturns a number. In case of failure returns nil followed by error code.\n\nbulk_read(dev_handle,ep,size,timeout)\n\tep, size and timeout are numbers\n\tReturns a string. In case of failure returns nil followed by error code.\n\t\ninterrupt_write(dev_handle,ep,bytes,timeout)\n\tep and timeout are numbers\n\tbytes is a string\n\tReturns a number. In case of failure returns nil followed by error code.\n\ninterrupt_read(dev_handle,ep,size,timeout)\n\tep, size and timeout are numbers\n\tReturns a string. In case of failure returns nil followed by error code.\n \n \nData\n====\n\nThe following functions access data in libusb.h structs. For reference, \nsee http://libusb.sourceforge.net/api-1.0/annotated.html . \ndevice_descriptor, \ndevice_config and endpoint_descriptor return a table that maps the name of the \nattribute to it's value. \ninterface_alt_settings returns an array of tables (a table for each alternative), \nwhere each table maps the name of the attribute to it's value.\nMost of these values are numbers, except the \"extra\"'s, which are strings, and \n\"endpoint\" and \"interface\" which are handlers.   \n\ndevice_descriptor(device)\n\ndevice_config(device)\n\ninterface_alt_settings(interface)\n\nendpoint_descriptor(endpoint_handler)\n\n\nConstants\n=========\n\nThe library exports the #defined constants from libusb.h . For your convenience. \n\n\n===\nEND\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipp%2Flualibusb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flipp%2Flualibusb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipp%2Flualibusb/lists"}