nanoFramework.Iot.Device.CardRfid 1.0.259
前缀已预留
dotnet add package nanoFramework.Iot.Device.CardRfid --version 1.0.259
NuGet\Install-Package nanoFramework.Iot.Device.CardRfid -Version 1.0.259
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.CardRfid" Version="1.0.259" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Iot.Device.CardRfid --version 1.0.259
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.CardRfid, 1.0.259"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install nanoFramework.Iot.Device.CardRfid as a Cake Addin #addin nuget:?package=nanoFramework.Iot.Device.CardRfid&version=1.0.259 // Install nanoFramework.Iot.Device.CardRfid as a Cake Tool #tool nuget:?package=nanoFramework.Iot.Device.CardRfid&version=1.0.259
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RFID共享元素
所有RFID和NFC读卡器(如14443类型A、类型B、Innovision Jewel)的共同元素。
This also includes an abstract class that must be implemented by readers to have a transparent way of managing Mifare, Ultralight cards and other high-level cards.
namespace Iot.Device.Card
{
/// <summary>
/// Abstract class implementing a specific Write and Read function
/// This class allow to transceive information with the card
/// This class has to be implemented in all RFID/NFC/Card readers
/// So Mifare cards can be used the same way independent of any reader
/// </summary>
public abstract class CardTransceiver
{
/// <summary>
/// This function has to be implemented by all NFC/RFID/Card readers. This function is used in exchange of data with
/// the reader and the cards.
/// </summary>
/// <param name="targetNumber">Some readers have a notion of target number for the cards as they can read multiple ones</param>
/// <param name="dataToSend">A standardized raw buffer with the command at the position 0 in the array</param>
/// <param name="dataFromCard">If any data are read from the card, they will be put into this array</param>
/// <returns>-1 in case of error, otherwise the number of bytes read and copied into the <paramref name="dataFromCard"/> array</returns>
public abstract int Transceive(byte targetNumber, SpanByte dataToSend, SpanByte dataFromCard);
/// <summary>
/// Once you have an authentication operation failing with Mifare cards or a read/write, the card stop.
/// TYhe only way to have it back is to send the unselect and anti collision.
/// This function provides this feature
/// </summary>
/// <param name="targetNumber">The target number to reselect</param>
/// <returns>True if success</returns>
public abstract bool ReselectTarget(byte targetNumber);
}
}
产品 | 版本 兼容的和额外的计算目标框架版本。 |
---|---|
.NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (≥1.11.7)
- nanoFramework.Logging (≥1.0.0)
- nanoFramework.System.Text (≥1.1.2)
NuGet包
此包未由任何NuGet包使用。
GitHub仓库
此包未由任何流行GitHub仓库使用。