diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2014-05-13 14:05:03 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2014-05-13 14:05:03 +0000 |
commit | 94e069c1426d7ebdfd6aaa9ae7f309161f133e13 (patch) | |
tree | 600204a21d9d1db26c6930e6b0a5f1cef21c0ea4 | |
parent | de55c9274f9877dbf235ab90032d9914e0e68f29 (diff) |
various macro fixes;
-rw-r--r-- | lib/libusbhid/usbhid.3 | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libusbhid/usbhid.3 b/lib/libusbhid/usbhid.3 index 271d296229d..1002eee8d9f 100644 --- a/lib/libusbhid/usbhid.3 +++ b/lib/libusbhid/usbhid.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: usbhid.3,v 1.16 2014/05/12 17:03:28 mpi Exp $ +.\" $OpenBSD: usbhid.3,v 1.17 2014/05/13 14:05:02 jmc Exp $ .\" $NetBSD: usbhid.3,v 1.5 2002/02/07 07:00:52 ross Exp $ .\" .\" Copyright (c) 1999, 2001 Lennart Augustsson <augustss@netbsd.org> @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 12 2014 $ +.Dd $Mdocdate: May 13 2014 $ .Dt USBHID 3 .Os .Sh NAME @@ -48,7 +48,7 @@ .Nm hid_set_data .Nd USB HID access routines .Sh SYNOPSIS -.Fd #include \*[Lt]usbhid.h\*[Gt] +.In usbhid.h .Ft report_desc_t .Fn hid_get_report_desc "int file" .Ft report_desc_t @@ -122,13 +122,12 @@ To parse the report descriptor the function should be called with a report descriptor and a set that describes which items that are interesting. The set is obtained by or-ing together values -.Fa "(1 \*[Lt]\*[Lt] k)" +.Fa (1 << k) where .Fa k is an item of type .Fa hid_kind_t . -The desired report ID, or -.Dv -1 +The desired report ID, or \-1 to obtain items of all report IDs, is given by .Fa id . @@ -211,9 +210,7 @@ can be used to put data into a report (which must be zeroed first). The default HID usage table. .\" .Sh EXAMPLES .Sh SEE ALSO -The -.Tn USB -specifications can be found at: +The USB specifications can be found at: .Lk http://www.usb.org/developers/docs/ .Pp .Xr uhid 4 , |