CommandType
public protocol CommandType
                  SmartCard Application Protocol Data Unit - Command
- 
                    
                    
Returns bytes in the command body. If this APDU has no body, this property should return nil
Declaration
Swift
var data: Data? { get } - 
                    
                    
Returns the maximum number of expected data bytes in a response APDU (Ne/Le). 0 = unlimited/unknown, nil = no output expected
Declaration
Swift
var ne: Int? { get } - 
                    
                    
Returns the number of data bytes in the command body (Nc) or 0 if this APDU has no body. This call should be equivalent to
self.data.count.Declaration
Swift
var nc: Int { get } - 
                    
                    
Returns the value of the class byte CLA.
Declaration
Swift
var cla: UInt8 { get } - 
                    
                    
Returns the value of the instruction byte INS.
Declaration
Swift
var ins: UInt8 { get } - 
                    
                    
Returns the value of the parameter byte P1.
Declaration
Swift
var p1: UInt8 { get } - 
                    
                    
Returns the value of the parameter byte P2.
Declaration
Swift
var p2: UInt8 { get } - 
                    
                    
Serialized APDU message
Declaration
Swift
var bytes: Data { get } 
- 
                    
toLogicalChannel(channelNo:)Extension methodConvert a Command to be send on a given channel No
Declaration
Swift
public func toLogicalChannel(channelNo: UInt8) throws -> CommandTypeParameters
channelNoThe channel number. Must be < 20.
Return Value
Command for channel