#include <mw/nfctype2connection.h>
Link against: nfctagextension.lib
| class CNfcType2Connection : public CActive, public MNfcConnection |
| Public Member Functions | |
|---|---|
| ~CNfcType2Connection() | |
| virtual IMPORT_C TInt | Activate(TInt) |
| virtual IMPORT_C void | CancelRawModeAccess() |
| virtual IMPORT_C TNfcConnectionInfo::TNfcConnectionMode | ConnectionMode() |
| virtual IMPORT_C void | Deactivate() |
| virtual IMPORT_C TBool | IsActivated() |
| IMPORT_C TInt | IsWritable(const TInt, TBool &) |
| IMPORT_C TInt | LockBlock(TInt) |
| IMPORT_C TInt | LockTag() |
| IMPORT_C CNfcType2Connection * | NewL(RNfcServer &) |
| IMPORT_C CNfcType2Connection * | NewLC(RNfcServer &) |
| virtual IMPORT_C void | RawModeAccess(TRequestStatus &, const TDesC8 &, TDes8 &, TTimeIntervalMicroSeconds32 &) |
| IMPORT_C void | Read(TRequestStatus &, TDes8 &, TUint, const TNfcType2Address &) |
| IMPORT_C void | ReadCancel() |
| IMPORT_C void | Write(TRequestStatus &, const TDesC8 &, TUint32) |
| IMPORT_C void | WriteCancel() |
| Inherited Attributes | |
|---|---|
| CActive::iStatus | |
| Inherited Enumerations | |
|---|---|
| CActive:TPriority | |
This interface provides access to a NFC Forum Type 2 tag.
| IMPORT_C void | CancelRawModeAccess | ( | ) | [virtual] |
Reimplemented from MNfcConnection::CancelRawModeAccess()
See also: MNfcConnection
| IMPORT_C TNfcConnectionInfo::TNfcConnectionMode | ConnectionMode | ( | ) | [virtual] |
Reimplemented from MNfcConnection::ConnectionMode()
See also: MNfcConnection
| IMPORT_C void | Deactivate | ( | ) | [virtual] |
Reimplemented from MNfcConnection::Deactivate()
See also: MNfcConnection
| IMPORT_C TBool | IsActivated | ( | ) | [virtual] |
Reimplemented from MNfcConnection::IsActivated()
See also: MNfcConnection
Checks whether a given block is writable. Currently no support for dynamic memory area.
| Parameters | |
|---|---|
| aBlockNumber | Blocknumber to block which writable status will be checked. |
| aWritable | Return value. ETrue when the block is writable. EFalse The block is not writable. |
| KErrDisconnected | No tag in field. |
| KErrNone | The operation is successfully completed. |
| KErrNotSupported | aBlock parameter is invalid |
| KErrServerTerminated | Server connection is terminated. |
Locks a single block on a NFC Forum Type 2 tag so that the contents of the block cannot be changed anymore. Currently no support for dynamic memory area.
| Parameters | |
|---|---|
| aBlockNumber | Block number to be locked. |
| KErrDisconnected | No tag in field. |
| KErrNone | The operation is successfully completed. |
| KErrNotSupported | aBlockNumber parameter is invalid. |
| KErrServerTerminated | Server connection is terminated. |
| IMPORT_C TInt | LockTag | ( | ) |
Locks the entire tag. Currently no support for dynamic memory area.
| KErrDisconnected | No tag in field. |
| KErrNone | The operation is successfully completed. |
| KErrNotSupported | aBlockNumber parameter is invalid. |
| KErrServerTerminated | Server connection is terminated. |
| IMPORT_C CNfcType2Connection * | NewL | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
May leave with one of the system wide error codes.
| IMPORT_C CNfcType2Connection * | NewLC | ( | RNfcServer & | aNfcServer | ) | [static] |
Creates a new instance of this class.
May leave with one of the system wide error codes.
| IMPORT_C void | RawModeAccess | ( | TRequestStatus & | aStatus, |
| const TDesC8 & | aCommand, | |||
| TDes8 & | aResponse, | |||
| TTimeIntervalMicroSeconds32 & | aTimeout | |||
| ) | [virtual] | |||
Reimplemented from MNfcConnection::RawModeAccess(TRequestStatus &,const TDesC8 &,TDes8 &,TTimeIntervalMicroSeconds32 &)
See also: MNfcConnection
| IMPORT_C void | Read | ( | TRequestStatus & | aStatus, |
| TDes8 & | aBuffer, | |||
| TUint | aAmount, | |||
| const TNfcType2Address & | aAddress | |||
| ) | ||||
Reads data from the target NFC Forum Type 2 tag. The read address is specified by aBlock parameter.
Only one write/read command can be requested at a time.
| Parameters | |
|---|---|
| aStatus | The client's request status. |
| aBuffer | Descriptor for data. |
| aAmount | Length of data to be read. |
| aAddress | Address where the read operation will start. |
| 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. |
| IMPORT_C void | Write | ( | TRequestStatus & | aStatus, |
| const TDesC8 & | aBuffer, | |||
| TUint32 | aBlock | |||
| ) | ||||
Writes data to the target NFC Forum Type 2 tag. Only one write/read command can be requested at a time.
| Parameters | |
|---|---|
| aStatus | The client's request status. |
| aBuffer | Descriptor which contains data to be written. The length of the descriptor must be multiple of four bytes. |
| KErrArgument | Writing failed due to tag type specific restrictions |
| KErrDisconnected | No tag in field. Or block is locked and cannot be written. |
| KErrInUse | The request is issued before the previous one is completed. |
| KErrNone | The operation is successfully completed. |
| KErrServerTerminated | Server connection is terminated. |