Releases: smdn/Smdn.Devices.MCP2221
Releases · smdn/Smdn.Devices.MCP2221
Smdn.Devices.MCP2221.GpioAdapter version 0.9.1
Smdn.Devices.MCP2221.GpioAdapter version 0.9.0
Initial release.
Smdn.Devices.MCP2221 version 0.9.3
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2022-03-15 update assembly version
- 2022-03-15 use init accessor on all target framework
- 2022-03-15 add IsExternalInit
- 2022-03-15 use Smdn.MSBuild.DefineConstants.NETSdkApi
- 2022-03-14 fix warning CA2253
- 2022-03-14 suppress warning CA2254
- 2022-03-14 suppress warning CA1848
- 2022-03-14 add comment for PackageValidationBaselineVersion
- 2022-03-14 use Smdn.MSBuild.ProjectAssets.*
- 2021-12-30 use Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.GenerateApiList to generate API list
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Devices.MCP2221/Smdn.Devices.MCP2221-net5.0.apilist.cs b/doc/api-list/Smdn.Devices.MCP2221/Smdn.Devices.MCP2221-net5.0.apilist.cs
index a8b3a54..d067e69 100644
--- a/doc/api-list/Smdn.Devices.MCP2221/Smdn.Devices.MCP2221-net5.0.apilist.cs
+++ b/doc/api-list/Smdn.Devices.MCP2221/Smdn.Devices.MCP2221-net5.0.apilist.cs
@@ -1,271 +1,271 @@
-// Smdn.Devices.MCP2221.dll (Smdn.Devices.MCP2221-0.9.2 (net5.0))
+// Smdn.Devices.MCP2221.dll (Smdn.Devices.MCP2221-0.9.3)
// Name: Smdn.Devices.MCP2221
-// AssemblyVersion: 0.9.2.0
-// InformationalVersion: 0.9.2 (net5.0)
+// AssemblyVersion: 0.9.3.0
+// InformationalVersion: 0.9.3+3968a13d13f49f54dd615bc0a80ddf4bd9d3ef84
// TargetFramework: .NETCoreApp,Version=v5.0
// Configuration: Release
using System;
using System.Collections.Generic;
using System.Device.Gpio;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Smdn.Devices.MCP2221;
using Smdn.Devices.UsbHid;
namespace Smdn.Devices.MCP2221 {
public enum I2CBusSpeed : int {
Default = 0,
FastMode = 2,
LowSpeedMode = 1,
Speed100kBitsPerSec = 0,
Speed10kBitsPerSec = 1,
Speed400kBitsPerSec = 2,
StandardMode = 0,
}
public class CommandException : InvalidOperationException {
public CommandException(string message) {}
public CommandException(string message, Exception innerException) {}
}
public class DeviceNotFoundException : InvalidOperationException {
public DeviceNotFoundException() {}
public DeviceNotFoundException(string message) {}
}
public class I2CCommandException : CommandException {
public I2CCommandException(I2CAddress address, string message) {}
public I2CCommandException(I2CAddress address, string message, Exception innerException) {}
public I2CCommandException(string message) {}
public I2CCommandException(string message, Exception innerException) {}
public I2CAddress Address { get; }
}
public class I2CNAckException : I2CCommandException {
public I2CNAckException(I2CAddress address) {}
public I2CNAckException(I2CAddress address, Exception innerException) {}
public I2CNAckException(string message) {}
public I2CNAckException(string message, Exception innerException) {}
}
public class I2CReadException : I2CCommandException {
public I2CReadException(I2CAddress address, string message) {}
public I2CReadException(I2CAddress address, string message, Exception innerException) {}
public I2CReadException(string message) {}
public I2CReadException(string message, Exception innerException) {}
}
[Nullable(byte.MinValue)]
[NullableContext(1)]
public class MCP2221 :
IAsyncDisposable,
IDisposable
{
[NullableContext(byte.MinValue)]
public sealed class GP0Functionality : GPFunctionality {
public void ConfigureAsLEDURX(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsLEDURXAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsSSPND(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsSSPNDAsync(CancellationToken cancellationToken = default) {}
}
[NullableContext(byte.MinValue)]
public sealed class GP1Functionality : GPFunctionality {
public void ConfigureAsADC(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsADCAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsClockOutput(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsClockOutputAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsInterruptDetection(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsInterruptDetectionAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsLEDUTX(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsLEDUTXAsync(CancellationToken cancellationToken = default) {}
}
[NullableContext(byte.MinValue)]
public sealed class GP2Functionality : GPFunctionality {
public void ConfigureAsADC(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsADCAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsDAC(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsDACAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsUSBCFG(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsUSBCFGAsync(CancellationToken cancellationToken = default) {}
}
[NullableContext(byte.MinValue)]
public sealed class GP3Functionality : GPFunctionality {
public void ConfigureAsADC(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsADCAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsDAC(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsDACAsync(CancellationToken cancellationToken = default) {}
public void ConfigureAsLEDI2C(CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsLEDI2CAsync(CancellationToken cancellationToken = default) {}
}
[NullableContext(byte.MinValue)]
public abstract class GPFunctionality {
public string PinDesignation { get; }
public string PinName { get; }
public void ConfigureAsGPIO(PinMode initialDirection = PinMode.Output, PinValue initialValue = default, CancellationToken cancellationToken = default) {}
public ValueTask ConfigureAsGPIOAsync(PinMode initialDirection = PinMode.Output, PinValue initialValue = default, CancellationToken cancellationToken = default) {}
public PinMode GetDirection(CancellationToken cancellationToken = default) {}
public ValueTask<PinMode> GetDirectionAsync(CancellationToken cancellationToken = default) {}
public PinValue GetValue(CancellationToken cancellationToken = default) {}
public ValueTask<PinValue> GetValueAsync(CancellationToken cancellationToken = default) {}
public void SetDirection(PinMode newDirection, CancellationToken cancellationToken = default) {}
public ValueTask SetDirectionAsync(PinMode newDirection, CancellationToken cancellationToken = default) {}
public void SetValue(PinValue newValue, CancellationToken cancellationToken = default) {}
public ValueTask SetValueAsync(PinValue newValue, CancellationToken cancellationToken = default) {}
}
[NullableContext(byte.MinValue)]
public sealed class I2CFunctionality {
public const int MaxBlockLength = 65535;
public I2CBusSpeed BusSpeed { get; set; }
public int Read(I2CAddress address, Span<byte> buffer, CancellationToken cancellationToken = default) {}
public int Read(I2CAddress address, byte[] buffer, int offset, int count, CancellationToken cancellationToken = default) {}
[AsyncStateMachine]
public ValueTask<int> ReadAsync(I2CAddress address, Memory<byte> buffer, CancellationToken cancellationToken = default) {}
public ValueTask<int> ReadAsync(I2CAddress address, byte[] buffer, int offset, int count, CancellationToken cancellationToken = default) {}
public int ReadByte(I2CAddress address, CancellationToken cancellationToken = default) {}
[AsyncStateMachine]
public ValueTask<int> ReadByteAsync(I2CAddress address, CancellationToken cancellationToken = default) {}
public (IReadOnlySet<I2CAddress> WriteAddressSet, IReadOnlySet<I2CAddress> ReadAddressSet) ScanBus(I2CAddress addressRangeMin = default, I2CAddress addressRangeMax = default, IProgress<I2CScanBusProgress> progress = null, CancellationToken cancellationToken = default) {}
[AsyncStateMachine]
public ValueTask<(I...
Smdn.Devices.MCP2221 version 0.9.2
- MCP2221.I2C.ScanBus()/ScanBusAsync() fix returning tuple element name casing
- I2CAddress overload relational operators
Smdn.Devices.MCP2221 version 0.9.1
Smdn.Devices.MCP2221 version 0.9.0
Initial release.