NXP NFC Reader Library v4.040.05.011646

Modules | Macros | Functions
Cid Manager
Common

Eases Multiple-Card-Management by providing and locking CIDs. More...

Collaboration diagram for Cid Manager:

## Modules
| Component : Software
| Software implementation.

## Macros
#define | PH_CIDMANAGER_LAST_CID 14
| The last managable CID. More...

## Functions
phStatus_t | phCidManager_GetFreeCid (void *pDataParams, uint8_t *pCid)
| Retrieve the lowest free Card Identifier. More...
phStatus_t | phCidManager_FreeCid (void *pDataParams, uint8_t bCid)
| Free an occupied Cid. More...

## Detailed Description

Eases Multiple-Card-Management by providing and locking CIDs.

## Macro Definition Documentation

## § PH_CIDMANAGER_LAST_CID

#define PH_CIDMANAGER_LAST_CID 14

The last managable CID.

## Function Documentation

## § phCidManager_GetFreeCid()

phStatus_t phCidManager_GetFreeCid | ( | void * | pDataParams,
|  | uint8_t * | pCid
| ) |  |

Retrieve the lowest free Card Identifier.

Returns
  Status code

Return values

  PH_ERR_SUCCESS | Operation successful.
  PH_ERR_USE_CONDITION | No free Cid available.

Parameters

  [in] | pDataParams | Pointer to this layer's parameter structure.
  [out] | pCid | Card Identifier

## § phCidManager_FreeCid()

phStatus_t phCidManager_FreeCid | ( | void * | pDataParams,
|  | uint8_t | bCid
| ) |  |

Free an occupied Cid.

Note: This should be called after discarding a card.

Returns
  Status code

Return values

  PH_ERR_SUCCESS | Operation successful.
  PH_ERR_INVALID_PARAMETER | Invalid or unoccupied Cid supplied.

Parameters

  [in] | pDataParams | Pointer to this layer's parameter structure.
  [in] | bCid | Card Identifier