├── Blazm.Usb
├── Blazm.Usb
│ ├── _Imports.razor
│ ├── wwwroot
│ │ ├── background.png
│ │ └── Blazm.Usb.js
│ ├── USBDirection.cs
│ ├── USBTransferStatus.cs
│ ├── USBRequestType.cs
│ ├── UsbRequestDeviceFilter.cs
│ ├── USBRecipient.cs
│ ├── USBInTransferResult.cs
│ ├── USBOutTransferResult.cs
│ ├── USBIsochronousInTransferPacket.cs
│ ├── USBIsochronousInTransferResult.cs
│ ├── USBIsochronousOutTransferPacket.cs
│ ├── USBIsochronousOutTransferResult.cs
│ ├── UsbDeviceFilter.cs
│ ├── Blazm.Usb.csproj
│ ├── USBControlTransferParameters.cs
│ ├── UsbDevice.cs
│ └── UsbNavigator.cs
├── Demos
│ └── Blazm.Usb.Server
│ │ ├── wwwroot
│ │ ├── favicon.ico
│ │ └── css
│ │ │ ├── open-iconic
│ │ │ ├── font
│ │ │ │ ├── fonts
│ │ │ │ │ ├── open-iconic.eot
│ │ │ │ │ ├── open-iconic.otf
│ │ │ │ │ ├── open-iconic.ttf
│ │ │ │ │ ├── open-iconic.woff
│ │ │ │ │ └── open-iconic.svg
│ │ │ │ └── css
│ │ │ │ │ └── open-iconic-bootstrap.min.css
│ │ │ ├── ICON-LICENSE
│ │ │ ├── README.md
│ │ │ └── FONT-LICENSE
│ │ │ └── site.css
│ │ ├── Protocols
│ │ ├── MethodEnum.cs
│ │ ├── TypeEnum.cs
│ │ ├── Protocol.cs
│ │ └── RisingSunProtocol.cs
│ │ ├── appsettings.json
│ │ ├── appsettings.Development.json
│ │ ├── Blazm.Usb.Server.csproj
│ │ ├── Shared
│ │ ├── MainLayout.razor
│ │ ├── SurveyPrompt.razor
│ │ ├── NavMenu.razor.css
│ │ ├── MainLayout.razor.css
│ │ └── NavMenu.razor
│ │ ├── _Imports.razor
│ │ ├── App.razor
│ │ ├── Pages
│ │ ├── RequestDevice.razor
│ │ ├── ListDevices.razor
│ │ ├── Error.cshtml.cs
│ │ ├── _Host.cshtml
│ │ ├── Error.cshtml
│ │ └── Tellstick.razor
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ └── Startup.cs
└── Blazm.Usb.sln
├── README.md
└── .gitignore
/Blazm.Usb/Blazm.Usb/_Imports.razor:
--------------------------------------------------------------------------------
1 | @using Microsoft.AspNetCore.Components.Web
2 |
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/wwwroot/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Blazm.Usb/wwwroot/background.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Blazm.WebUSB
2 | A Blazor library to communicate with USB devices through WebUSB
3 |
4 |
5 | This is still under contruction =)
6 |
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/USBDirection.cs:
--------------------------------------------------------------------------------
1 | namespace Blazm.Usb
2 | {
3 | public enum USBDirection
4 | {
5 | In,
6 | Out
7 | };
8 | }
9 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/USBTransferStatus.cs:
--------------------------------------------------------------------------------
1 | namespace Blazm.Usb
2 | {
3 | public enum USBTransferStatus
4 | {
5 | Ok,
6 | Stall,
7 | Babble
8 | };
9 | }
10 |
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/USBRequestType.cs:
--------------------------------------------------------------------------------
1 | namespace Blazm.Usb
2 | {
3 | public enum USBRequestType
4 | {
5 |
6 | Standard,
7 | Class,
8 | Vendor
9 | };
10 | }
11 |
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/UsbRequestDeviceFilter.cs:
--------------------------------------------------------------------------------
1 | namespace Blazm.Usb
2 | {
3 | public class UsbDeviceRequestOptions
4 | {
5 | public UsbDeviceFilter[] filters { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/Protocols/MethodEnum.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace Blazm.Usb.Server.Protocols;
3 | public enum MethodEnum
4 | {
5 | TURNON = 1,
6 | TURNOFF = 2,
7 | LEARN = 32,
8 | DIM = 16
9 | }
--------------------------------------------------------------------------------
/Blazm.Usb/Blazm.Usb/USBRecipient.cs:
--------------------------------------------------------------------------------
1 | namespace Blazm.Usb
2 | {
3 | public enum USBRecipient
4 | {
5 | Device,
6 | Interface,
7 | Endpoint,
8 | Other
9 | };
10 | }
11 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.eot
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.otf
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EngstromJimmy/Blazm.USB/main/Blazm.Usb/Demos/Blazm.Usb.Server/wwwroot/css/open-iconic/font/fonts/open-iconic.woff
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/Protocols/TypeEnum.cs:
--------------------------------------------------------------------------------
1 |
2 | namespace Blazm.Usb.Server.Protocols;
3 | public enum TypeEnum
4 | {
5 | CodeSwitch = 1,
6 | Bell = 2,
7 | Selflearning = 3,
8 | SelflearningDimmer = 4,
9 | Sensor = 5
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Information",
5 | "Microsoft": "Warning",
6 | "Microsoft.Hosting.Lifetime": "Information"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
11 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "DetailedErrors": true,
3 | "Logging": {
4 | "LogLevel": {
5 | "Default": "Information",
6 | "Microsoft": "Warning",
7 | "Microsoft.Hosting.Lifetime": "Information"
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Blazm.Usb/Demos/Blazm.Usb.Server/Blazm.Usb.Server.csproj:
--------------------------------------------------------------------------------
1 |
Sorry, there's nothing at this address.
9 |
24 | Request ID: @Model.RequestId
25 |
30 | Swapping to the Development environment displays detailed information about the error that occurred. 31 |
32 |33 | The Development environment shouldn't be enabled for deployed applications. 34 | It can result in displaying sensitive information from exceptions to end users. 35 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 36 | and restarting the app. 37 |
38 |