~cgregan/checkbox/audio_dolby

« back to all changes in this revision

Viewing changes to checkbox-support/checkbox_support/lib/usb.py

  • Committer: Sylvain Pineau
  • Date: 2014-01-07 13:39:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2588.
  • Revision ID: sylvain.pineau@canonical.com-20140107133938-46v5ehofwa9whl1e
checkbox-support: Copy required modules from checkbox-old/checkbox

and their corresponding tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This file is part of Checkbox.
 
3
#
 
4
# Copyright 2008 Canonical Ltd.
 
5
#
 
6
# Checkbox is free software: you can redistribute it and/or modify
 
7
# it under the terms of the GNU General Public License version 3,
 
8
# as published by the Free Software Foundation.
 
9
 
 
10
#
 
11
# Checkbox is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
# GNU General Public License for more details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License
 
17
# along with Checkbox.  If not, see <http://www.gnu.org/licenses/>.
 
18
#
 
19
 
 
20
# See http://www.linux-usb.org/usb.ids
 
21
class Usb:
 
22
 
 
23
    BASE_CLASS_INTERFACE             = 0
 
24
 
 
25
    BASE_CLASS_AUDIO                 = 1
 
26
    CLASS_AUDIO_CONTROL_DEVICE       = 1
 
27
    CLASS_AUDIO_STREAMING            = 2
 
28
    CLASS_AUDIO_MIDI_STREAMING       = 3
 
29
 
 
30
    BASE_CLASS_COMMUNICATIONS        = 2
 
31
    CLASS_COMMUNICATIONS_DIRECT_LINE = 1
 
32
    CLASS_COMMUNICATIONS_ABSTRACT    = 2
 
33
    CLASS_COMMUNICATIONS_TELEPHONE   = 3
 
34
 
 
35
    BASE_CLASS_PRINTER               = 7
 
36
    CLASS_PRINTER_OTHER              = 1
 
37
 
 
38
    BASE_CLASS_STORAGE               = 8
 
39
    CLASS_STORAGE_RBC                = 1
 
40
    CLASS_STORAGE_SFF                = 2
 
41
    CLASS_STORAGE_QIC                = 3
 
42
    CLASS_STORAGE_FLOPPY             = 4
 
43
    CLASS_STORAGE_SFF                = 5
 
44
    CLASS_STORAGE_SCSI               = 6
 
45
 
 
46
    BASE_CLASS_HUB                   = 9
 
47
    CLASS_HUB_UNUSED                 = 0
 
48
 
 
49
    BASE_CLASS_VIDEO                 = 14
 
50
    CLASS_VIDEO_UNDEFINED            = 0
 
51
    CLASS_VIDEO_CONTROL              = 1
 
52
    CLASS_VIDEO_STREAMING            = 2
 
53
    CLASS_VIDEO_INTERFACE_COLLECTION = 3
 
54
 
 
55
    BASE_CLASS_WIRELESS              = 224
 
56
    CLASS_WIRELESS_RADIO_FREQUENCY   = 1
 
57
    CLASS_WIRELESS_USB_ADAPTER       = 2
 
58
    
 
59
    PROTOCOL_BLUETOOTH               = 1