~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/usb/misc_usbsevseg.rst

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 =============================
  2 USB 7-Segment Numeric Display
  3 =============================
  4 
  5 Manufactured by Delcom Engineering
  6 
  7 Device Information
  8 ------------------
  9 USB VENDOR_ID   0x0fc5
 10 USB PRODUCT_ID  0x1227
 11 Both the 6 character and 8 character displays have PRODUCT_ID,
 12 and according to Delcom Engineering no queryable information
 13 can be obtained from the device to tell them apart.
 14 
 15 Device Modes
 16 ------------
 17 By default, the driver assumes the display is only 6 characters
 18 The mode for 6 characters is:
 19 
 20         MSB 0x06; LSB 0x3f
 21 
 22 For the 8 character display:
 23 
 24         MSB 0x08; LSB 0xff
 25 
 26 The device can accept "text" either in raw, hex, or ascii textmode.
 27 raw controls each segment manually,
 28 hex expects a value between 0-15 per character,
 29 ascii expects a value between '0'-'9' and 'A'-'F'.
 30 The default is ascii.
 31 
 32 Device Operation
 33 ----------------
 34 1.      Turn on the device:
 35         echo 1 > /sys/bus/usb/.../powered
 36 2.      Set the device's mode:
 37         echo $mode_msb > /sys/bus/usb/.../mode_msb
 38         echo $mode_lsb > /sys/bus/usb/.../mode_lsb
 39 3.      Set the textmode:
 40         echo $textmode > /sys/bus/usb/.../textmode
 41 4.      set the text (for example):
 42         echo "123ABC" > /sys/bus/usb/.../text (ascii)
 43         echo "A1B2" > /sys/bus/usb/.../text (ascii)
 44         echo -ne "\x01\x02\x03" > /sys/bus/usb/.../text (hex)
 45 5.      Set the decimal places.
 46         The device has either 6 or 8 decimal points.
 47         to set the nth decimal place calculate 10 ** n
 48         and echo it in to /sys/bus/usb/.../decimals
 49         To set multiple decimals points sum up each power.
 50         For example, to set the 0th and 3rd decimal place
 51         echo 1001 > /sys/bus/usb/.../decimals

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php