-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from smdn/releases/Smdn.Devices.BP35XX-1.0.0-17…
…12418364 Release main/Smdn.Devices.BP35XX-1.0.0
- Loading branch information
Showing
3 changed files
with
326 additions
and
0 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
doc/api-list/Smdn.Devices.BP35XX/Smdn.Devices.BP35XX-net6.0.apilist.cs
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,110 @@ | ||
// Smdn.Devices.BP35XX.dll (Smdn.Devices.BP35XX-1.0.0) | ||
// Name: Smdn.Devices.BP35XX | ||
// AssemblyVersion: 1.0.0.0 | ||
// InformationalVersion: 1.0.0+e4163ada5b034b45c5cc0dac179b412cf54198cd | ||
// TargetFramework: .NETCoreApp,Version=v6.0 | ||
// Configuration: Release | ||
// Referenced assemblies: | ||
// Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Smdn.Fundamental.PrintableEncoding.Hexadecimal, Version=3.0.0.0, Culture=neutral | ||
// Smdn.Net.SkStackIP, Version=1.0.0.0, Culture=neutral | ||
// System.ComponentModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.IO.Ports, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
// System.Memory, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
// System.Net.NetworkInformation, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.Net.Primitives, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
#nullable enable annotations | ||
|
||
using System; | ||
using System.IO; | ||
using System.Net; | ||
using System.Net.NetworkInformation; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Smdn.Devices.BP35XX; | ||
using Smdn.Net.SkStackIP; | ||
|
||
namespace Smdn.Devices.BP35XX { | ||
public interface IBP35Configurations { | ||
BP35UartBaudRate BaudRate { get; } | ||
SkStackERXUDPDataFormat ERXUDPDataFormat { get; } | ||
string? SerialPortName { get; } | ||
bool TryLoadFlashMemory { get; } | ||
} | ||
|
||
public interface IBP35SerialPortStreamFactory { | ||
Stream CreateSerialPortStream(IBP35Configurations configurations); | ||
} | ||
|
||
public enum BP35UartBaudRate : byte { | ||
Baud115200 = 0, | ||
Baud19200 = 4, | ||
Baud2400 = 1, | ||
Baud38400 = 5, | ||
Baud4800 = 2, | ||
Baud57600 = 6, | ||
Baud9600 = 3, | ||
} | ||
|
||
public enum BP35UartCharacterInterval : byte { | ||
Microseconds100 = 16, | ||
Microseconds200 = 32, | ||
Microseconds300 = 48, | ||
Microseconds400 = 64, | ||
Microseconds50 = 80, | ||
None = 0, | ||
} | ||
|
||
public enum BP35UartFlowControl : byte { | ||
Disabled = 0, | ||
Enabled = 128, | ||
} | ||
|
||
public enum BP35UdpReceiveDataFormat : byte { | ||
Binary = 0, | ||
HexAscii = 1, | ||
} | ||
|
||
public class BP35A1 : BP35Base { | ||
public static ValueTask<BP35A1> CreateAsync(BP35A1Configurations configurations, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
public static ValueTask<BP35A1> CreateAsync(string? serialPortName, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public sealed class BP35A1Configurations : IBP35Configurations { | ||
public BP35A1Configurations() {} | ||
|
||
public BP35UartBaudRate BaudRate { get; set; } | ||
public string? SerialPortName { get; set; } | ||
SkStackERXUDPDataFormat IBP35Configurations.ERXUDPDataFormat { get; } | ||
public bool TryLoadFlashMemory { get; set; } | ||
} | ||
|
||
public abstract class BP35Base : SkStackClient { | ||
public IPAddress LinkLocalAddress { get; } | ||
public PhysicalAddress MacAddress { get; } | ||
public string RohmPassword { get; } | ||
public string RohmUserId { get; } | ||
public string SkStackAppVersion { get; } | ||
public Version SkStackVersion { get; } | ||
|
||
public async ValueTask<BP35UartConfigurations> GetUartOptionsAsync(CancellationToken cancellationToken = default) {} | ||
public async ValueTask<BP35UdpReceiveDataFormat> GetUdpDataFormatAsync(CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval = BP35UartCharacterInterval.None, BP35UartFlowControl flowControl = BP35UartFlowControl.Disabled, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartConfigurations uartConfigurations, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUdpDataFormatAsync(BP35UdpReceiveDataFormat format, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public readonly struct BP35UartConfigurations { | ||
public BP35UartConfigurations(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval, BP35UartFlowControl flowControl) {} | ||
|
||
public BP35UartBaudRate BaudRate { get; } | ||
public BP35UartCharacterInterval CharacterInterval { get; } | ||
public BP35UartFlowControl FlowControl { get; } | ||
|
||
public void Deconstruct(out BP35UartBaudRate baudRate, out BP35UartCharacterInterval characterInterval, out BP35UartFlowControl flowControl) {} | ||
} | ||
} | ||
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.4.1.0. | ||
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.3.1.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating) |
110 changes: 110 additions & 0 deletions
110
doc/api-list/Smdn.Devices.BP35XX/Smdn.Devices.BP35XX-net8.0.apilist.cs
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,110 @@ | ||
// Smdn.Devices.BP35XX.dll (Smdn.Devices.BP35XX-1.0.0) | ||
// Name: Smdn.Devices.BP35XX | ||
// AssemblyVersion: 1.0.0.0 | ||
// InformationalVersion: 1.0.0+e4163ada5b034b45c5cc0dac179b412cf54198cd | ||
// TargetFramework: .NETCoreApp,Version=v8.0 | ||
// Configuration: Release | ||
// Referenced assemblies: | ||
// Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Smdn.Fundamental.PrintableEncoding.Hexadecimal, Version=3.0.0.0, Culture=neutral | ||
// Smdn.Net.SkStackIP, Version=1.0.0.0, Culture=neutral | ||
// System.ComponentModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.IO.Ports, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
// System.Memory, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
// System.Net.NetworkInformation, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.Net.Primitives, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
// System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | ||
#nullable enable annotations | ||
|
||
using System; | ||
using System.IO; | ||
using System.Net; | ||
using System.Net.NetworkInformation; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Smdn.Devices.BP35XX; | ||
using Smdn.Net.SkStackIP; | ||
|
||
namespace Smdn.Devices.BP35XX { | ||
public interface IBP35Configurations { | ||
BP35UartBaudRate BaudRate { get; } | ||
SkStackERXUDPDataFormat ERXUDPDataFormat { get; } | ||
string? SerialPortName { get; } | ||
bool TryLoadFlashMemory { get; } | ||
} | ||
|
||
public interface IBP35SerialPortStreamFactory { | ||
Stream CreateSerialPortStream(IBP35Configurations configurations); | ||
} | ||
|
||
public enum BP35UartBaudRate : byte { | ||
Baud115200 = 0, | ||
Baud19200 = 4, | ||
Baud2400 = 1, | ||
Baud38400 = 5, | ||
Baud4800 = 2, | ||
Baud57600 = 6, | ||
Baud9600 = 3, | ||
} | ||
|
||
public enum BP35UartCharacterInterval : byte { | ||
Microseconds100 = 16, | ||
Microseconds200 = 32, | ||
Microseconds300 = 48, | ||
Microseconds400 = 64, | ||
Microseconds50 = 80, | ||
None = 0, | ||
} | ||
|
||
public enum BP35UartFlowControl : byte { | ||
Disabled = 0, | ||
Enabled = 128, | ||
} | ||
|
||
public enum BP35UdpReceiveDataFormat : byte { | ||
Binary = 0, | ||
HexAscii = 1, | ||
} | ||
|
||
public class BP35A1 : BP35Base { | ||
public static ValueTask<BP35A1> CreateAsync(BP35A1Configurations configurations, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
public static ValueTask<BP35A1> CreateAsync(string? serialPortName, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public sealed class BP35A1Configurations : IBP35Configurations { | ||
public BP35A1Configurations() {} | ||
|
||
public BP35UartBaudRate BaudRate { get; set; } | ||
public string? SerialPortName { get; set; } | ||
SkStackERXUDPDataFormat IBP35Configurations.ERXUDPDataFormat { get; } | ||
public bool TryLoadFlashMemory { get; set; } | ||
} | ||
|
||
public abstract class BP35Base : SkStackClient { | ||
public IPAddress LinkLocalAddress { get; } | ||
public PhysicalAddress MacAddress { get; } | ||
public string RohmPassword { get; } | ||
public string RohmUserId { get; } | ||
public string SkStackAppVersion { get; } | ||
public Version SkStackVersion { get; } | ||
|
||
public async ValueTask<BP35UartConfigurations> GetUartOptionsAsync(CancellationToken cancellationToken = default) {} | ||
public async ValueTask<BP35UdpReceiveDataFormat> GetUdpDataFormatAsync(CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval = BP35UartCharacterInterval.None, BP35UartFlowControl flowControl = BP35UartFlowControl.Disabled, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartConfigurations uartConfigurations, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUdpDataFormatAsync(BP35UdpReceiveDataFormat format, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public readonly struct BP35UartConfigurations { | ||
public BP35UartConfigurations(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval, BP35UartFlowControl flowControl) {} | ||
|
||
public BP35UartBaudRate BaudRate { get; } | ||
public BP35UartCharacterInterval CharacterInterval { get; } | ||
public BP35UartFlowControl FlowControl { get; } | ||
|
||
public void Deconstruct(out BP35UartBaudRate baudRate, out BP35UartCharacterInterval characterInterval, out BP35UartFlowControl flowControl) {} | ||
} | ||
} | ||
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.4.1.0. | ||
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.3.1.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating) |
106 changes: 106 additions & 0 deletions
106
doc/api-list/Smdn.Devices.BP35XX/Smdn.Devices.BP35XX-netstandard2.1.apilist.cs
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,106 @@ | ||
// Smdn.Devices.BP35XX.dll (Smdn.Devices.BP35XX-1.0.0) | ||
// Name: Smdn.Devices.BP35XX | ||
// AssemblyVersion: 1.0.0.0 | ||
// InformationalVersion: 1.0.0+e4163ada5b034b45c5cc0dac179b412cf54198cd | ||
// TargetFramework: .NETStandard,Version=v2.1 | ||
// Configuration: Release | ||
// Referenced assemblies: | ||
// Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 | ||
// Smdn.Fundamental.PrintableEncoding.Hexadecimal, Version=3.0.0.0, Culture=neutral | ||
// Smdn.Net.SkStackIP, Version=1.0.0.0, Culture=neutral | ||
// System.IO.Ports, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
// netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 | ||
#nullable enable annotations | ||
|
||
using System; | ||
using System.IO; | ||
using System.Net; | ||
using System.Net.NetworkInformation; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Smdn.Devices.BP35XX; | ||
using Smdn.Net.SkStackIP; | ||
|
||
namespace Smdn.Devices.BP35XX { | ||
public interface IBP35Configurations { | ||
BP35UartBaudRate BaudRate { get; } | ||
SkStackERXUDPDataFormat ERXUDPDataFormat { get; } | ||
string? SerialPortName { get; } | ||
bool TryLoadFlashMemory { get; } | ||
} | ||
|
||
public interface IBP35SerialPortStreamFactory { | ||
Stream CreateSerialPortStream(IBP35Configurations configurations); | ||
} | ||
|
||
public enum BP35UartBaudRate : byte { | ||
Baud115200 = 0, | ||
Baud19200 = 4, | ||
Baud2400 = 1, | ||
Baud38400 = 5, | ||
Baud4800 = 2, | ||
Baud57600 = 6, | ||
Baud9600 = 3, | ||
} | ||
|
||
public enum BP35UartCharacterInterval : byte { | ||
Microseconds100 = 16, | ||
Microseconds200 = 32, | ||
Microseconds300 = 48, | ||
Microseconds400 = 64, | ||
Microseconds50 = 80, | ||
None = 0, | ||
} | ||
|
||
public enum BP35UartFlowControl : byte { | ||
Disabled = 0, | ||
Enabled = 128, | ||
} | ||
|
||
public enum BP35UdpReceiveDataFormat : byte { | ||
Binary = 0, | ||
HexAscii = 1, | ||
} | ||
|
||
public class BP35A1 : BP35Base { | ||
public static ValueTask<BP35A1> CreateAsync(BP35A1Configurations configurations, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
public static ValueTask<BP35A1> CreateAsync(string? serialPortName, IServiceProvider? serviceProvider = null, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public sealed class BP35A1Configurations : IBP35Configurations { | ||
public BP35A1Configurations() {} | ||
|
||
public BP35UartBaudRate BaudRate { get; set; } | ||
public string? SerialPortName { get; set; } | ||
SkStackERXUDPDataFormat IBP35Configurations.ERXUDPDataFormat { get; } | ||
public bool TryLoadFlashMemory { get; set; } | ||
} | ||
|
||
public abstract class BP35Base : SkStackClient { | ||
public IPAddress LinkLocalAddress { get; } | ||
public PhysicalAddress MacAddress { get; } | ||
public string RohmPassword { get; } | ||
public string RohmUserId { get; } | ||
public string SkStackAppVersion { get; } | ||
public Version SkStackVersion { get; } | ||
|
||
public async ValueTask<BP35UartConfigurations> GetUartOptionsAsync(CancellationToken cancellationToken = default) {} | ||
public async ValueTask<BP35UdpReceiveDataFormat> GetUdpDataFormatAsync(CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval = BP35UartCharacterInterval.None, BP35UartFlowControl flowControl = BP35UartFlowControl.Disabled, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUartOptionsAsync(BP35UartConfigurations uartConfigurations, CancellationToken cancellationToken = default) {} | ||
public ValueTask SetUdpDataFormatAsync(BP35UdpReceiveDataFormat format, CancellationToken cancellationToken = default) {} | ||
} | ||
|
||
public readonly struct BP35UartConfigurations { | ||
public BP35UartConfigurations(BP35UartBaudRate baudRate, BP35UartCharacterInterval characterInterval, BP35UartFlowControl flowControl) {} | ||
|
||
public BP35UartBaudRate BaudRate { get; } | ||
public BP35UartCharacterInterval CharacterInterval { get; } | ||
public BP35UartFlowControl FlowControl { get; } | ||
|
||
public void Deconstruct(out BP35UartBaudRate baudRate, out BP35UartCharacterInterval characterInterval, out BP35UartFlowControl flowControl) {} | ||
} | ||
} | ||
// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.4.1.0. | ||
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.3.1.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating) |