diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-02-14 12:22:40 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-02-14 12:22:40 +0000 |
commit | aafcb7320759529843b0d0efa3c6a918aa1aaa50 (patch) | |
tree | a0b0c710f98a991d5594c3cd1efed27bd508c825 /lib/libusb/libusb20.3 | |
parent | 0af99eef9e4d3c463ece2da2342499cd5b55b8ab (diff) | |
download | src-test2-aafcb7320759529843b0d0efa3c6a918aa1aaa50.tar.gz src-test2-aafcb7320759529843b0d0efa3c6a918aa1aaa50.zip |
Notes
Diffstat (limited to 'lib/libusb/libusb20.3')
-rw-r--r-- | lib/libusb/libusb20.3 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libusb/libusb20.3 b/lib/libusb/libusb20.3 index af80c6ca564e..8d286f13723f 100644 --- a/lib/libusb/libusb20.3 +++ b/lib/libusb/libusb20.3 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 13, 2012 +.Dd February 14, 2013 .Dt LIBUSB20 3 .Os .Sh NAME @@ -149,6 +149,8 @@ USB access library (libusb -lusb) .Fn libusb20_dev_set_power_mode "struct libusb20_device *pdev" "uint8_t power_mode" .Ft uint8_t .Fn libusb20_dev_get_power_mode "struct libusb20_device *pdev" +.Ft uint16_t +.Fn libusb20_dev_get_power_usage "struct libusb20_device *pdev" .Ft int .Fn libusb20_dev_set_alt_index "struct libusb20_device *pdev" "uint8_t iface_index" "uint8_t alt_index" .Ft struct LIBUSB20_DEVICE_DESC_DECODED * @@ -740,6 +742,12 @@ USB device. . .Pp . +.Fn libusb20_dev_get_power_usage +returns the reported power usage in milliamps for the given USB device. +A power usage of zero typically means that the device is self powered. +. +.Pp +. .Fn libusb20_dev_set_alt_index will try to set the given alternate index for the given USB interface index. |