CNfcType3Connection Class Reference

#include <mw/nfctype3connection.h>

Link against: nfctagextension.lib

class CNfcType3Connection : public CActive, public MNfcConnection

Inherits from

Detailed Description

This interface provides access to a NFC Forum Type 3 tag.

Constructor & Destructor Documentation

~CNfcType3Connection ( )

IMPORT_C~CNfcType3Connection()

Destructor.

Member Function Documentation

Activate ( TInt )

IMPORT_C TIntActivate(TIntaHandle)[virtual]

Reimplemented from MNfcConnection::Activate(TInt)

See also: MNfcConnection

CancelRawModeAccess ( )

IMPORT_C voidCancelRawModeAccess()[virtual]

See also: MNfcConnection

Check ( TRequestStatus &, TDes8 &, TUint, const TNfcType3Address & )

IMPORT_C voidCheck(TRequestStatus &aStatus,
TDes8 &aBuffer,
TUintaAmount,
const TNfcType3Address &aAddress
)

Check memory blocks from the Type 3 tag.

Only one update/check command can be requested at a time.

Parameters
aStatusThe client's request status.
aBufferDescriptor for data.
aAmountLength of data to be checked.
aAddressAddress where the check operation will start.
Return Value
Return values for aStatus:

Return Values

KErrArgument aBuffer size was too small.
KErrDisconnected No tag in field.
KErrInUse The request is issued before the previous one is completed.
KErrNone The operation is successfully completed.
KErrServerTerminated Server connection is terminated.

CheckCancel ( )

IMPORT_C voidCheckCancel()

Cancels check request.

ConnectionMode ( )

IMPORT_C TNfcConnectionInfo::TNfcConnectionModeConnectionMode()[virtual]

See also: MNfcConnection

Deactivate ( )

IMPORT_C voidDeactivate()[virtual]

Reimplemented from MNfcConnection::Deactivate()

See also: MNfcConnection

GetICCode ( TInt & )

IMPORT_C TIntGetICCode(TInt &aIcCode)

Returns the IC code of the current Type 3 tag.

Parameters
aIcCodeThe ICCode of the Type 3 tag.

Return Values

KErrDisconnected No tag in field. Or block is locked and cannot be written.
KErrNone The operation is successfully completed.
KErrServerTerminated Server connection is terminated.

GetIDm ( TDes8 & )

IMPORT_C TIntGetIDm(TDes8 &aIdm)

Returns the IDm (manufacturer ID) of the Type 3 tag. The lenght of the IDm is 8 bytes.

Parameters
aIdmThe IDm of the Type 3 tag.

Return Values

KErrArgument If aIdm length is smaller than 8.
KErrDisconnected No tag in field. Or block is locked and cannot be written.
KErrNone The operation is successfully completed.
KErrServerTerminated Server connection is terminated.

IsActivated ( )

IMPORT_C TBoolIsActivated()[virtual]

See also: MNfcConnection

NewL ( RNfcServer & )

IMPORT_C CNfcType3Connection *NewL(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

May leave with one of the system wide error codes.

Return Value
Pointer to the newly created instance.

NewLC ( RNfcServer & )

IMPORT_C CNfcType3Connection *NewLC(RNfcServer &aNfcServer)[static]

Creates a new instance of this class.

May leave with one of the system wide error codes.

Return Value
Pointer to the newly created instance.

RawModeAccess ( TRequestStatus &, const TDesC8 &, TDes8 &, TTimeIntervalMicroSeconds32 & )

IMPORT_C voidRawModeAccess(TRequestStatus &aStatus,
const TDesC8 &aCommand,
TDes8 &aResponse,
TTimeIntervalMicroSeconds32 &aTimeout
)[virtual]

See also: MNfcConnection

Select ( TRequestStatus &, TUint16 )

IMPORT_C voidSelect(TRequestStatus &aStatus,
TUint16aSystemCode
)

Asynchronous request to select a partition matching the specified system code.

A Type 3 tag may have different partitions each having a distinct system code. The partition selected by default is the first partition of the Type 3 tag (the primary partition). This method can be used to select another partition.

Return Value
aStatus returns the request completion value

Return Values

KErrCancel The request was cancelled.
KErrInUse Another request is pending.
KErrNone when select is completed and partition matching to aSystemCode has been found.
KErrNotFound Matching partition has not been found.
KErrNotSupported Several matching partitions have been found. For example several tags with matching partition in the field. Or other systemwide error codes.

SelectCancel ( )

IMPORT_C voidSelectCancel()

Cancels asynchronous Select request.

Update ( TRequestStatus &, const TDes8 &, const TNfcType3Address & )

IMPORT_C voidUpdate(TRequestStatus &aStatus,
const TDes8 &aBuffer,
const TNfcType3Address &aAddress
)

Updates data to the Type 3 tag. The data is updated to adjacent memory addresses belonging to a single service.

Only one update/check command can be requested at a time.

Parameters
aStatusThe client's request status.
aBufferDescriptor which contains data to be written. Length of the descriptor must be multiple of Type 3 block size in bytes
aAddressThe address where the update operation will start. See NFC Forum Type 3 specification for restrictions.
Return Value
Return values for aStatus:

Return Values

KErrArgument Writing failed due to tag type specific restrictions
KErrDisconnected No tag in field.
KErrInUse The request is issued before the previous one is completed.
KErrNone The operation is successfully completed.
KErrServerTerminated Server connection is terminated.

UpdateCancel ( )

IMPORT_C voidUpdateCancel()

Cancels update request.