This is the cl-libusb Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:07:05 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-libusb
Lispified bindings to libusb-0.1.
Sumant Oemrawsingh
libusb-ffi
(system).
trivial-garbage
(system).
package.lisp
(file).
cl-libusb.lisp
(file).
libusb-ffi
Common Lisp FFI bindings to libusb-0.1.
Sumant Oemrawsingh
cffi
(system).
cffi-grovel
(system).
static-vectors
(system).
package.lisp
(file).
libusb-grovel.lisp
(file).
libusb-ffi.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-libusb/cl-libusb.asd
libusb-ffi/libusb-ffi.asd
cl-libusb/package.lisp
cl-libusb/cl-libusb.lisp
libusb-ffi/package.lisp
libusb-ffi/libusb-grovel.lisp
libusb-ffi/libusb-ffi.lisp
cl-libusb/cl-libusb.lisp
package.lisp
(file).
cl-libusb
(system).
usb-bulk-read
(function).
usb-bulk-write
(function).
usb-claim-interface
(function).
usb-clear-halt
(function).
usb-close
(function).
usb-control-msg
(function).
usb-detach-kernel-driver-np
(function).
usb-device
(class).
usb-get-devices-by-ids
(function).
usb-get-driver-name
(function).
usb-get-product-id
(function).
usb-get-string
(function).
usb-get-vendor-id
(function).
usb-interrupt-read
(function).
usb-interrupt-write
(function).
usb-open
(function).
usb-open-p
(function).
usb-release-interface
(function).
usb-set-configuration
(function).
usb-simple-setup
(function).
usb-device-pointer
(reader method).
usb-get-configuration
(function).
usb-handle-pointer
(reader method).
usb-rebuild-finalization
(function).
usb-set-altinterface
(function).
libusb-ffi/libusb-grovel.lisp
package.lisp
(file).
libusb-ffi
(system).
libusb-ffi/libusb-ffi.lisp
libusb-grovel.lisp
(file).
libusb-ffi
(system).
endpoint-in-p
(function).
endpoint-out-p
(function).
usb-bulk-read
(function).
usb-bulk-write
(function).
usb-claim-interface
(function).
usb-clear-halt
(function).
usb-close
(function).
usb-configuration-get-interfaces
(function).
usb-configuration-get-value
(function).
usb-control-msg
(function).
usb-detach-kernel-driver-np*
(function).
usb-device-get-descriptor
(function).
usb-endpoint-get-address
(function).
usb-get-busses
(function).
usb-get-configuration-by-value
(function).
usb-get-configurations
(function).
usb-get-devices
(function).
usb-get-devices-by-ids
(function).
usb-get-driver-name
(function).
usb-get-product-id
(function).
usb-get-string
(function).
usb-get-string-index
(function).
usb-get-vendor-id
(function).
usb-interface-get-settings
(function).
usb-interface-setting-get-alternate
(function).
usb-interface-setting-get-endpoints
(function).
usb-interface-setting-get-number
(function).
usb-interrupt-read
(function).
usb-interrupt-write
(function).
usb-open
(function).
usb-release-interface
(function).
usb-reset
(function).
usb-set-altinterface
(function).
usb-set-configuration
(function).
*libusb-initialized*
(special variable).
ensure-libusb-initialized
(function).
libusb-error
(condition).
return-static-buffer-with-length
(function).
usb-bulk-read*
(function).
usb-bulk-write*
(function).
usb-claim-interface*
(function).
usb-clear-halt*
(function).
usb-control-msg*
(function).
usb-endpoint-type
(function).
usb-find-busses
(function).
usb-find-busses*
(function).
usb-find-devices
(function).
usb-find-devices*
(function).
usb-get-busses*
(function).
usb-get-devices*
(function).
usb-get-driver-np
(function).
usb-get-string*
(function).
usb-get-string-simple*
(function).
usb-init
(function).
usb-init*
(function).
usb-interrupt-read*
(function).
usb-interrupt-write*
(function).
usb-release-interface*
(function).
usb-reset*
(function).
usb-set-altinterface*
(function).
usb-set-configuration*
(function).
Packages are listed by definition order.
cl-libusb
common-lisp
.
usb-bulk-read
(function).
usb-bulk-write
(function).
usb-claim-interface
(function).
usb-clear-halt
(function).
usb-close
(function).
usb-control-msg
(function).
usb-detach-kernel-driver-np
(function).
usb-device
(class).
usb-get-devices-by-ids
(function).
usb-get-driver-name
(function).
usb-get-product-id
(function).
usb-get-string
(function).
usb-get-vendor-id
(function).
usb-interrupt-read
(function).
usb-interrupt-write
(function).
usb-open
(function).
usb-open-p
(function).
usb-release-interface
(function).
usb-set-configuration
(function).
usb-simple-setup
(function).
usb-device-pointer
(generic reader).
usb-get-configuration
(function).
usb-handle-pointer
(generic reader).
usb-rebuild-finalization
(function).
usb-set-altinterface
(function).
libusb-ffi
cffi
.
common-lisp
.
endpoint-in-p
(function).
endpoint-out-p
(function).
usb-bulk-read
(function).
usb-bulk-write
(function).
usb-claim-interface
(function).
usb-clear-halt
(function).
usb-close
(function).
usb-configuration-get-interfaces
(function).
usb-configuration-get-value
(function).
usb-control-msg
(function).
usb-detach-kernel-driver-np*
(function).
usb-device-get-descriptor
(function).
usb-endpoint-get-address
(function).
usb-get-busses
(function).
usb-get-configuration-by-value
(function).
usb-get-configurations
(function).
usb-get-devices
(function).
usb-get-devices-by-ids
(function).
usb-get-driver-name
(function).
usb-get-product-id
(function).
usb-get-string
(function).
usb-get-string-index
(function).
usb-get-vendor-id
(function).
usb-interface-get-settings
(function).
usb-interface-setting-get-alternate
(function).
usb-interface-setting-get-endpoints
(function).
usb-interface-setting-get-number
(function).
usb-interrupt-read
(function).
usb-interrupt-write
(function).
usb-open
(function).
usb-release-interface
(function).
usb-reset
(function).
usb-set-altinterface
(function).
usb-set-configuration
(function).
*libusb-initialized*
(special variable).
ensure-libusb-initialized
(function).
libusb-error
(condition).
return-static-buffer-with-length
(function).
usb-bulk-read*
(function).
usb-bulk-write*
(function).
usb-claim-interface*
(function).
usb-clear-halt*
(function).
usb-control-msg*
(function).
usb-endpoint-type
(function).
usb-find-busses
(function).
usb-find-busses*
(function).
usb-find-devices
(function).
usb-find-devices*
(function).
usb-get-busses*
(function).
usb-get-devices*
(function).
usb-get-driver-np
(function).
usb-get-string*
(function).
usb-get-string-simple*
(function).
usb-init
(function).
usb-init*
(function).
usb-interrupt-read*
(function).
usb-interrupt-write*
(function).
usb-release-interface*
(function).
usb-reset*
(function).
usb-set-altinterface*
(function).
usb-set-configuration*
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Check if an endpoint is an in endpoint (and thus can be read from).
Check if an endpoint is and out endpoint (and thus can be written to).
Read the given amount of bytes in a bulk transfer and return the buffer (a static vector).
Perform a bulk read request to the endpoint, which can be specified by its address or pointer to the endpoint. Returns the buffer of bytes read, which is a static vector with element type ’(unsigned-byte 8).
Write data in the given buffer (a static vector) in a bulk transfer and return the amount of bytes actually written.
Perform a bulk write request to the endpoint, which can alternatively be specified by its address. Buffer should be a static vector with element type ’(unsigned-byte 8). Returns number of bytes written.
Claim the given interface for the handle. The interface can be specified by its setting, or its (integer) number.
Claim the given interface for the handle. The interface can be specified by its setting, or its (integer) number.
Clear the halt flag on the given endpoint of the device.
Clear the halt status on the specified endpoint. The endpoint can also be specified by its address.
Close a usb device. If a device is already closed, do nothing.
Close a usb device by the pointer to its handle.
Returns all the interfaces from the given configuration.
Returns the configuration value of the given configuration.
Returns the device descriptor for the given device.
Returns the endpoint’s address.
Return a list of busses.
Returns a configuration which has the given configuration value.
Returns a list of usb configurations for the given device.
Returns a list of all usb devices. Optionally, a bus or list of busses can also be specified, to confine the results to devices on those busses.
Return a list of devices that match the given vendor id and product id. If either is NIL, that parameter is not used as a filter. Thus if both are NIL, a list containing all devices is returned.
Returns a list of all devices with the given vendor id and product
id. If any of the arguments is NIL, then the device id can match any
value. Thus (usb-get-devices-by-ids nil nil) is equivalent
to (usb-get-devices).
Returns the name of the driver currently assigned to this device.
Return the product id of the device.
Returns the product id of the device.
Return the string associated with the given index or symbol. If no language id is given, a simple ascii string is returned, else the string with the given language id is returned. The allowed symbols are :manufacturer, :product or :serial-number. If the device was not open, it is opened to obtain the string and then closed again.
Returns the string descriptor specified by index and langid from a device. The string will be returned in Unicode as specified by the USB specification. If language id is nil (the default), returns the string descriptor specified by index in the first language for the descriptor and converts it into C style ASCII. Returns the number of bytes returned.
Returns the string index associated with the given symbol. This symbol can be :MANUFACTURER, :PRODUCT or :SERIAL-NUMBER.
Return the vendor id of the device.
Returns the vendor id of the device.
Returns all the possible settings from a given interface.
Return the alternate interface setting value for the given setting.
Return a list of endpoints for the given interface setting.
Return the interface number for the given interface setting.
Read the given amount of bytes in an interrupt transfer and return the buffer (a static vector).
Perform an interrupt read request to the endpoint, which can be specified by its address or pointer to the endpoint. Returns the buffer of bytes read, which is a static vector with element type ’(unsigned-byte 8).
Write data in the given buffer (a static vector) in an interrupt transfer and return the amount of bytes actually written.
Perform an interrupt write request to the endpoint, which can alternatively be specified by its address. Buffer should be a static vector with element type ’(unsigned-byte 8). Returns number of bytes written.
Open a usb device. If the device is already open, do nothing.
Open a usb device and return a pointer to the handle to be used for communications.
Predicate to see if a device has been opened.
Release the given interface for the handle. The interface can be specified by its setting, or its (integer) number.
Release the given interface for the handle. The interface can be specified by its setting, or its (integer) number.
Resets the specified device by sending a RESET down the port it is connected to. Note that this causes re-enumeration: After calling usb-reset, the device will need to re-enumerate and thusly, requires you to find the new device and open a new handle. The handle used to call usb-reset will no longer work.
Set the alternate interface setting to that of the given setting. The alternate interface setting can be specified by setting, or by its (integer) value.
Set the given configuration for the handle. The configuration can be specified also by its (integer) value.
Set the given configuration for the handle. The configuration can be specified also by its (integer) value.
Set up the device by using the first found configuration, interface and settings.
Boolean indicating if libusb has been initialized.
Make sure the libusb library is initialised and all busses and devices are found.
Returns the endpoint’s type. This can be :control, :isosynchronous, :bulk or :interrupt.
Find all of the busses on the system. Returns the number of changes, which specifies the total of new busses and busses removed since previous call to this function.
Find all of the devices on each bus. This should be called after usb-find-busses. Returns the number of changes, which specifies the total of new devices and devices removed since the previous call to this function.
Returns the current configuration value, or -1 if no configuration is set.
Returns a list of all devices in the given bus.
Initialize the libusb library. It’s not necessary to call this directly, since other (Lisp) functions will do so if required.
Rebuild the finalization list for the given USB device.
Set the alternate interface setting to that of the given setting. The alternate interface setting can be specified by setting, or by its (integer) value.
usb-device
)) ¶automatically generated reader method
usb-device
)) ¶automatically generated reader method
Jump to: | E F G M R U |
---|
Jump to: | E F G M R U |
---|
Jump to: | *
C D H S T |
---|
Jump to: | *
C D H S T |
---|
Jump to: | C F L P S U |
---|
Jump to: | C F L P S U |
---|