OpenCores
URL https://opencores.org/ocsvn/usb_fpga_2_04/usb_fpga_2_04/trunk

Subversion Repositories usb_fpga_2_04

[/] [usb_fpga_2_04/] [trunk/] [libusbJava-src/] [ch/] [ntb/] [usb/] [Usb_Bus.java] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
/*
2
 * Java libusb wrapper
3
 * Copyright (c) 2005-2006 Andreas Schläpfer <spandi at users.sourceforge.net>
4
 *
5
 * http://libusbjava.sourceforge.net
6
 * This library is covered by the LGPL, read LGPL.txt for details.
7
 */
8
package ch.ntb.usb;
9
 
10
/**
11
 * Represents an USB bus.<br>
12
 * This is the root class for the representation of the libusb USB structure.
13
 * Zero or more devices may be connected to an USB bus.
14
 *
15
 */
16
public class Usb_Bus {
17
 
18
        private Usb_Bus next, prev;
19
 
20
        private String dirname;
21
 
22
        private Usb_Device devices;
23
 
24
        private long location;
25
 
26
        private Usb_Device root_dev;
27
 
28
        /**
29
         * Get the first device ojects of the devices linked list.<br>
30
         *
31
         * @return the first device ojects of the devices linked list or null
32
         */
33
        public Usb_Device getDevices() {
34
                return devices;
35
        }
36
 
37
        /**
38
         * Returns the systems String representation of the bus.<br>
39
         *
40
         * @return the systems String representation of the bus
41
         */
42
        public String getDirname() {
43
                return dirname;
44
        }
45
 
46
        /**
47
         * Returns the next bus object.<br>
48
         *
49
         * @return Returns the next bus object or null
50
         */
51
        public Usb_Bus getNext() {
52
                return next;
53
        }
54
 
55
        /**
56
         * Returns the previous bus object.<br>
57
         *
58
         * @return Returns the previous bus object or null
59
         */
60
        public Usb_Bus getPrev() {
61
                return prev;
62
        }
63
 
64
        /**
65
         * Get the root device of this bus.<br>
66
         *
67
         * @return the root device oject or null
68
         */
69
        public Usb_Device getRootDev() {
70
                return root_dev;
71
        }
72
 
73
        /**
74
         * Returns the location in the USB bus linked list.<br>
75
         *
76
         * @return the location in the USB bus linked list
77
         */
78
        public long getLocation() {
79
                return location;
80
        }
81
 
82
        @Override
83
        public String toString() {
84
                return "Usb_Bus " + dirname;
85
        }
86
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.