Package: android.hardware.nfc@1.1

types

Properties

NfcEvent

enum NfcEvent: @1.0::NfcEvent
Details
Members
HCI_NETWORK_RESET = 7
In case of an error, HCI network needs to be re-initialized

Constant

enum Constant: uint8_t
Details
Members
UNSUPPORTED_CONFIG = 0xFF

PresenceCheckAlgorithm

enum PresenceCheckAlgorithm: uint8_t
Details
Members
DEFAULT = 0
Lets the stack select an algorithm
I_BLOCK = 1
ISO-DEP protocol's empty I-block
ISO_DEP_NAK = 2
Type - 4 tag protocol iso-dep nak presence check command is sent waiting for response and notification.

ProtocolDiscoveryConfig

struct ProtocolDiscoveryConfig {uint8_t protocol18092Active; uint8_t protocolBPrime; uint8_t protocolDual; uint8_t protocol15693; uint8_t protocolKovio; uint8_t protocolMifare; uint8_t discoveryPollKovio; uint8_t discoveryPollBPrime; uint8_t discoveryListenBPrime}

Vendor Specific Proprietary Protocol & Discovery Configuration.Set to UNSUPPORTED_CONFIG if not supported.discovery* fields map to "RF Technology and Mode" in NCI Spec protocol* fields map to "RF protocols" in NCI Spec

Details
Members
protocol18092Active
protocolBPrime
protocolDual
protocol15693
protocolKovio
protocolMifare
discoveryPollKovio
discoveryPollBPrime
discoveryListenBPrime

NfcConfig

struct NfcConfig {bool nfaPollBailOutMode; PresenceCheckAlgorithm presenceCheckAlgorithm; ProtocolDiscoveryConfig nfaProprietaryCfg; uint8_t defaultOffHostRoute; uint8_t defaultOffHostRouteFelica; uint8_t defaultSystemCodeRoute; uint8_t defaultSystemCodePowerState; uint8_t defaultRoute; uint8_t offHostESEPipeId; uint8_t offHostSIMPipeId; uint32_t maxIsoDepTransceiveLength; vec hostWhitelist}
Details
Members
nfaPollBailOutMode
If true, NFCC is using bail out mode for either Type A or Type B poll.
presenceCheckAlgorithm
nfaProprietaryCfg
defaultOffHostRoute
Default off-host route.0x00 if there aren't any.Refer to NCI spec.
defaultOffHostRouteFelica
Default off-host route for Felica.0x00 if there aren't any.Refer to NCI spec.
defaultSystemCodeRoute
Default system code route.0x00 if there aren't any.Refer NCI spec
defaultSystemCodePowerState
Default power state for system code route.0x00 if there aren't any.Refer NCI spec
defaultRoute
Default route for all remaining protocols and technology which haven't been configured.Device Host(0x00)is the default.Refer to NCI spec.
offHostESEPipeId
Pipe ID for eSE.0x00 if there aren't any.
offHostSIMPipeId
Pipe ID for UICC.0x00 if there aren't any.
maxIsoDepTransceiveLength
Extended APDU length for ISO_DEP.If not supported default length is 261
hostWhitelist
list of white listed host ids, as per ETSI TS 102 622