libnfc  1.7.1
Functions
Properties accessors

The functionnality documented below allow to configure parameters and registers. More...

Functions

int nfc_device_set_property_int (nfc_device *pnd, const nfc_property property, const int value)
 Set a device's integer-property value. More...
 
int nfc_device_set_property_bool (nfc_device *pnd, const nfc_property property, const bool bEnable)
 Set a device's boolean-property value. More...
 

Detailed Description

The functionnality documented below allow to configure parameters and registers.

Function Documentation

◆ nfc_device_set_property_bool()

int nfc_device_set_property_bool ( nfc_device pnd,
const nfc_property  property,
const bool  bEnable 
)

Set a device's boolean-property value.

Returns
Returns 0 on success, otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
propertynfc_property which will be set
bEnableboolean to activate/disactivate the property

Configures parameters and registers that control for example timing, modulation, frame and error handling. There are different categories for configuring the PN53X chip features (handle, activate, infinite and accept).

Definition at line 426 of file nfc.c.

◆ nfc_device_set_property_int()

int nfc_device_set_property_int ( nfc_device pnd,
const nfc_property  property,
const int  value 
)

Set a device's integer-property value.

Returns
Returns 0 on success, otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
propertynfc_property which will be set
valueinteger value

Sets integer property.

See also
nfc_property enum values

Definition at line 407 of file nfc.c.