forked from norani/libaums-develop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- prepared classes so that we get device list with all data needed to…
… create UsbMassStorageDevice instances - removed remainder of android files - added UsbConstants from Android - added some other helper classes
- Loading branch information
andy.rozman
committed
Apr 11, 2024
1 parent
3142199
commit ef8b833
Showing
19 changed files
with
738 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
CHANGELOG | ||
========= | ||
|
||
0.4.0 [10.4.2024] | ||
- initial import from https://github.com/norani/libaums-develop | ||
- added sl4j logging, removing all android logging | ||
- added usb4java and examples from it | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
libaums/src/main/java/com/atech/library/usb/libaums/UsbConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.atech.library.usb.libaums; | ||
|
||
public class UsbConstants { | ||
|
||
public static final int USB_CLASS_APP_SPEC = 254; | ||
public static final int USB_CLASS_AUDIO = 1; | ||
public static final int USB_CLASS_CDC_DATA = 10; | ||
public static final int USB_CLASS_COMM = 2; | ||
public static final int USB_CLASS_CONTENT_SEC = 13; | ||
public static final int USB_CLASS_CSCID = 11; | ||
public static final int USB_CLASS_HID = 3; | ||
public static final int USB_CLASS_HUB = 9; | ||
public static final int USB_CLASS_MASS_STORAGE = 8; | ||
public static final int USB_CLASS_MISC = 239; | ||
public static final int USB_CLASS_PER_INTERFACE = 0; | ||
public static final int USB_CLASS_PHYSICA = 5; | ||
public static final int USB_CLASS_PRINTER = 7; | ||
public static final int USB_CLASS_STILL_IMAGE = 6; | ||
public static final int USB_CLASS_VENDOR_SPEC = 255; | ||
public static final int USB_CLASS_VIDEO = 14; | ||
public static final int USB_CLASS_WIRELESS_CONTROLLER = 224; | ||
public static final int USB_DIR_IN = 128; | ||
public static final int USB_DIR_OUT = 0; | ||
public static final int USB_ENDPOINT_DIR_MASK = 128; | ||
public static final int USB_ENDPOINT_NUMBER_MASK = 15; | ||
public static final int USB_ENDPOINT_XFERTYPE_MASK = 3; | ||
public static final int USB_ENDPOINT_XFER_BULK = 2; | ||
public static final int USB_ENDPOINT_XFER_CONTROL = 0; | ||
public static final int USB_ENDPOINT_XFER_INT = 3; | ||
public static final int USB_ENDPOINT_XFER_ISOC = 1; | ||
public static final int USB_INTERFACE_SUBCLASS_BOOT = 1; | ||
public static final int USB_SUBCLASS_VENDOR_SPEC = 255; | ||
public static final int USB_TYPE_CLASS = 32; | ||
public static final int USB_TYPE_MASK = 96; | ||
public static final int USB_TYPE_RESERVED = 96; | ||
public static final int USB_TYPE_STANDARD = 0; | ||
public static final int USB_TYPE_VENDOR = 64; | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
libaums/src/main/java/com/atech/library/usb/libaums/UsbMassStorageDeviceConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.atech.library.usb.libaums; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class UsbMassStorageDeviceConfig { | ||
|
||
|
||
|
||
|
||
|
||
} |
9 changes: 9 additions & 0 deletions
9
libaums/src/main/java/com/atech/library/usb/libaums/UsbMassStorageLibrarySettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.atech.library.usb.libaums; | ||
|
||
public class UsbMassStorageLibrarySettings { | ||
|
||
public static boolean LOAD_BLOCK_DEVICE = true; // loading block device by default | ||
|
||
public static boolean LOAD_PARTITIONS = true; // loading partitions by default | ||
|
||
} |
Oops, something went wrong.