Input data to a BasicCard command call.
Namespace: BasicCard.BasicCardsAssembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)
Syntax
C# |
---|
[SerializableAttribute] [CLSCompliantAttribute(true)] public class BasicCardCommand : CommandApdu |
Visual Basic |
---|
<SerializableAttribute> <CLSCompliantAttribute(true)> Public Class BasicCardCommand Inherits CommandApdu |
Visual C++ |
---|
[SerializableAttribute] [CLSCompliantAttribute(true)] public ref class BasicCardCommand : public CommandApdu |
F# |
---|
[<SerializableAttribute>] [<CLSCompliantAttribute(true)>] type BasicCardCommand = class inherit CommandApdu end |
Examples
BasicCard command declaration:
![]() | |
---|---|
Declare Command &H60 &H04 TestOne(Value1 as Byte, Value2 as Integer, Value3 as Long, _ Value4 as String*5, Value5 as String) |
Calling this command using the BasicCard BASIC compiler:
![]() | |
---|---|
Call TestOne(5, 100, 7003, "Test", "MoreTest") : CheckSW1SW2 |
Calling this command using C# and this library:
![]() | |
---|---|
BasicCardCommand cmd=new BasicCardCommand(0x60, 0x04); cmd.AppendBasicByte(5); cmd.AppendBasicInteger(100); cmd.AppendBasicLong(7003); cmd.AppendBasicStringN(new BasicCardStringN(5, "Test", BasicCardString.CharsetIdAscii)); cmd.AppendBasicString(new BasicCardString("MoreTest", BasicCardString.CharsetIdAscii)); cmd.SetDefaultLE(); BasicCardResponse rsp=DoCommandAndResponse(cmd); rsp.CheckSW1SW2(); |
Calling this command using Visual Basic and this library:
![]() | |
---|---|
Dim cmd as BasicCardCommand cmd = New BasicCardCommand(&H60, &H04) cmd.AppendBasicByte(5) cmd.AppendBasicInteger(100) cmd.AppendBasicLong(7003) cmd.AppendBasicStringN(new BasicCardStringN(5, "Test", BasicCardString.CharsetIdAscii)) cmd.AppendBasicString(new BasicCardString("MoreTest", BasicCardString.CharsetIdAscii)) cmd.SetDefaultLE() Dim rsp as BasicCardResponse rsp=DoCommandAndResponse(cmd) rsp.CheckSW1SW2() |
Inheritance Hierarchy
System..::..Object
BasicCard.ProcessorCards..::..CommandApdu
BasicCard.BasicCards..::..BasicCardCommand
BasicCard.ProcessorCards..::..CommandApdu
BasicCard.BasicCards..::..BasicCardCommand
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.