Read buffer command (0x3A command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A NFCISO15693TagResponseErrorKey in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. Successfully command response will be return as Data object excluding the 8 bits response flag.
Read buffer command (0x3A command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- Returns:
A `(NFCISO15693ResponseFlag, Data)` tuple; data consists of Parameters and Data field per "Response Format" definition from the specification.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A NFCISO15693TagResponseErrorKey in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Get system information command (0x2B command code) as defined in ISO15693-3 specification. Address flag is automatically enforced by default and the
tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- Returns:
A `NFCISO15693SystemInfo` object. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Send a command according to the ISO15693-3 specification. The request data frame is concatenation of 8 bits request flag, 8 bits command code, and optional data.
The 8 bits response flag and the data are returned in the completion handler.
- Parameters:
- flags: Request flags.
- commandCode: 8 bis command code.
- data: Data follows after the command code.
- resultHandler: Returns a `(NFCISO15693ResponseFlag, Data)` tuple; data consists of Parameters and Data field per "Response Format" definition from the specification.
Send a command according to the ISO15693-3 specification. The request data frame is concatenation of 8 bits request flag, 8 bits command code, and optional data.
- Parameters:
- flags: Request flags.
- commandCode: 8 bis command code.
- data: Data follows after the command code.
- Returns:
Returns a `(NFCISO15693ResponseFlag, Data)` tuple; data consists of Parameters and Data field per "Response Format" definition from the specification.
Authenticate command (0x35 command code) as defined in ISO15693-3 specification. Please note that in-process reply is returned to the caller without any processing.
- Parameters:
- flags: Request flags.
- cryptoSuiteIdentifier: 8 bits Crypto Suite Indicator as defined in ISO/IEC 29167 specification.
- message: Content of the Authenticate command as dictated by the Crypto Suite Indicator.
- resultHandler: Completion handler called when the operation is completed. A `(NFCISO15693ResponseFlag, Data)` tuple is returned on success;
data consists of Parameters and Data field per "Response Format" definition from the specification.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Authenticate command (0x35 command code) as defined in ISO15693-3 specification. Please note that in-process reply is returned to the caller without any processing.
- Parameters:
- flags: Request flags.
- cryptoSuiteIdentifier: 8 bits Crypto Suite Indicator as defined in ISO/IEC 29167 specification.
- message: Content of the Authenticate command as dictated by the Crypto Suite Indicator.
- Returns:
A `(NFCISO15693ResponseFlag, Data)` tuple; data consists of Parameters and Data field per "Response Format" definition from the specification.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Custom command (0xA0 to 0xDF command code) as defined in ISO15693-3 specification. IC manufacturer code from the tag is automatically inserted after the command byte
before appending the custom request parameters in forming the packet.
- Parameters:
- flags: Request flags.
- customCommandCode: Custom command code defined by the IC manufacturer. Valid range is 0xA0 to 0xDF inclusively.
- customRequestParameters: Custom request parameters defined by the command.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. The custom response parameters are returned on success.
Get system information command (0x2B command code) as defined in ISO15693-3 specification. Address flag is automatically enforced by default and the
tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. `blockSize` returns the actual block size in bytes ranged from 1 to 32.
`totalBlocks` returns the actual number of blocks ranged from 1 to 256 blocks.
Read single block command (0x20 command code) as defined in ISO15693-3 specification. Address flag is automatically
enforced by default and the tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- blockNumber: Block number. Blocks are numbered from 0 to 255 inclusively.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. Successfully read data blocks will be returned from Data object.
If Option flag in the request flags is set, then first byte of data block will contain the associated block security status.
Read multiple blocks command (0x23 command code) as defined in ISO15693-3 specification. Address flag is automatically
enforced by default and the tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 255 inclusively. Valid length is 1 to 256 inclusively.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. Successfully read data blocks will be returned from an array of Data object.
If Option flag in the request flags is set, then first byte of each returned data block will contain the associated block security status.
Each data block element would have identical size.
Fast read multiple blocks command (0x2D command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 255 inclusively. Valid length is 1 to 256 inclusively.
- resultHandler: Returns an array of Data or an Error when the operation is completed.
Fast read multiple blocks command (0x2D command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 255 inclusively. Valid length is 1 to 256 inclusively.
- Returns
An array of Data blocks.
Extended read single block command (0x30 command code) as defined in ISO15693-3 specification. Address flag is automatically enforced by default
and the tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- blockNumber: 2 bytes block number, valid range from 0 to 65535 inclusively.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification. If Option flag in the request flags is set,
then first byte of the returned data block will contain the associated block security status.
Extended write multiple block command (0x34 command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 65535 inclusively. Valid length is 1 to 65536 inclusively.
- dataBlocks: Blocks of data represented in array of Data. The number of blocks shall match the length value of the blockRange parameter.
Each block element should have identical size and should match the physical block size of the tag.
- completionHandler: Completion handler called when the operation is completed. error is nil if operation succeeds.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Extended write multiple block command (0x34 command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 65535 inclusively. Valid length is 1 to 65536 inclusively.
- dataBlocks: Blocks of data represented in array of Data. The number of blocks shall match the length value of the blockRange parameter.
Each block element should have identical size and should match the physical block size of the tag.
- Returns:
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Fast read multiple blocks command (0x3D command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- resultHandler: Returns an array of Data or an Error when the operation is completed.
Fast read multiple blocks command (0x3D command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- Returns:
Returns an array of Data or an Error when the operation is completed.
Get multiple block security status command (0x3C command code) as defined in ISO15693-3 specification. Address flag is automatically
enforced by default and the tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 255 inclusively. Valid length is 1 to 256 inclusively.
- resultHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Get multiple block security status command (0x3C command code) as defined in ISO15693-3 specification. Address flag is automatically
enforced by default and the tag's UID is sent with the command; setting RequestFlagSelect to flags will disable the Address flag.
- Parameters:
- flags: Request flags.
- blockRange: The range of blocks. Valid start index range is 0 to 255 inclusively. Valid length is 1 to 256 inclusively.
- Returns:
Array of status on the requested block range. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Challenge command (0x39 command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- cryptoSuiteIdentifier: 8 bits Crypto Suite Indicator as defined in ISO/IEC 29167 specification.
- message: Content of the Key Update command as dictated by the Crypto Suite Indicator used in Authenticate.
- completionHandler: Completion handler called when the operation is completed. A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Challenge command (0x39 command code) as defined in ISO15693-3 specification.
- Parameters:
- flags: Request flags.
- cryptoSuiteIdentifier: 8 bits Crypto Suite Indicator as defined in ISO/IEC 29167 specification.
- message: Content of the Key Update command as dictated by the Crypto Suite Indicator used in Authenticate.
- Returns:
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Key update command (0x36 command code) as defined in ISO15693-3 specification. Please note that in-process reply is returned to the caller without any processing.
- Parameters:
- flags: Request flags.
- keyIdentifier: 8 bits key identifier
- message: Content of the Key Update command as dictated by the Crypto Suite Indicator used in Authenticate.
- resultHandler: Completion handler called when the operation is completed. A `(NFCISO15693ResponseFlag, Data)` tuple is returned on success;
data consists of Parameters and Data field per "Response Format" definition from the specification.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.
Key update command (0x36 command code) as defined in ISO15693-3 specification. Please note that in-process reply is returned to the caller without any processing.
- Parameters:
- flags: Request flags.
- keyIdentifier: 8 bits key identifier
- message: Content of the Key Update command as dictated by the Crypto Suite Indicator used in Authenticate.
- Returns:
A `(NFCISO15693ResponseFlag, Data)` tuple; data consists of Parameters and Data field per "Response Format" definition from the specification.
A `NFCErrorDomain` error is returned when there is a communication issue with the tag.
A `NFCISO15693TagResponseErrorKey` in NSError `userInfo` dictionary is returned when the tag responded to the command with an error,
and the error code value is defined in ISO15693-3 specification.