These Components implement the Felica commands.
More...
|
phStatus_t | phalFelica_RequestResponse (void *pDataParams, uint8_t *pMode) |
| When receiving the RequestResponse command, the VICC shall respond. More...
|
|
phStatus_t | phalFelica_RequestService (void *pDataParams, uint8_t bTxNumServices, uint8_t *pTxServiceList, uint8_t *pRxNumServices, uint8_t *pRxServiceList) |
| When receiving the RequestService command, the VICC shall respond. More...
|
|
phStatus_t | phalFelica_Read (void *pDataParams, uint8_t bNumServices, uint8_t *pServiceList, uint8_t bTxNumBlocks, uint8_t *pBlockList, uint8_t bBlockListLength, uint8_t *pRxNumBlocks, uint8_t *pBlockData) |
| When receiving the Read command, the VICC shall respond. More...
|
|
phStatus_t | phalFelica_Write (void *pDataParams, uint8_t bNumServices, uint8_t *pServiceList, uint8_t bNumBlocks, uint8_t *pBlockList, uint8_t bBlockListLength, uint8_t *pBlockData) |
| When receiving the Write command, the VICC shall respond. More...
|
|
phStatus_t | phalFelica_GetConfig (void *pDataParams, uint16_t wConfig, uint16_t *pValue) |
| Perform a GetConfig command. More...
|
|
phStatus_t | phalFelica_ActivateCard (void *pDataParams, uint8_t *pSystemCode, uint8_t bNumTimeSlots, uint8_t *pRxBuffer, uint8_t *pRxLength, uint8_t *pMoreCardsAvailable) |
| This command activates a Felica card. More...
|
|
These Components implement the Felica commands.
§ PHAL_FELICA_CONFIG_ADD_INFO
#define PHAL_FELICA_CONFIG_ADD_INFO 0x0000U |
Set or get the additional info word.
§ PHAL_FELICA_ERR_FELICA
§ PHAL_FELICA_MAX_SERVICES
#define PHAL_FELICA_MAX_SERVICES 121U |
Maximum number of services.
§ phalFelica_RequestResponse()
phStatus_t phalFelica_RequestResponse |
( |
void * |
pDataParams, |
|
|
uint8_t * |
pMode |
|
) |
| |
When receiving the RequestResponse command, the VICC shall respond.
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layers parameter structure. |
[out] | pMode | Current Card Mode. (0, 1, 2). |
§ phalFelica_RequestService()
phStatus_t phalFelica_RequestService |
( |
void * |
pDataParams, |
|
|
uint8_t |
bTxNumServices, |
|
|
uint8_t * |
pTxServiceList, |
|
|
uint8_t * |
pRxNumServices, |
|
|
uint8_t * |
pRxServiceList |
|
) |
| |
When receiving the RequestService command, the VICC shall respond.
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bTxNumServices | Number of services or areas within the command message. |
[in] | pTxServiceList | Service code or area code list within the command message. |
[out] | pRxNumServices | Number of received services or areas. |
[out] | pRxServiceList | Received Service Key version or area version list, max 64 bytes. |
§ phalFelica_Read()
When receiving the Read command, the VICC shall respond.
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bNumServices | Number of Services. |
[in] | pServiceList | List of Services. |
[in] | bTxNumBlocks | Number of Blocks to send. |
[in] | pBlockList | List of Blocks to read. |
[in] | bBlockListLength | Number of Blocks to read. |
[out] | pRxNumBlocks | Number of received blocks. |
[out] | pBlockData | Received Block data. |
§ phalFelica_Write()
When receiving the Write command, the VICC shall respond.
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | bNumServices | Number of Services. |
[in] | pServiceList | List of Services. |
[in] | bNumBlocks | Number of Blocks to send. |
[in] | pBlockList | List of Blocks to write. |
[in] | bBlockListLength | Number of Blocks to write. |
[in] | pBlockData | Block data to write. |
§ phalFelica_GetConfig()
phStatus_t phalFelica_GetConfig |
( |
void * |
pDataParams, |
|
|
uint16_t |
wConfig, |
|
|
uint16_t * |
pValue |
|
) |
| |
Perform a GetConfig command.
wConfig
can be one of:
- Returns
- Status code
- Return values
-
- Parameters
-
[in] | pDataParams | Pointer to this layers parameter structure. |
[in] | wConfig | Configuration Identifier. |
[out] | pValue | Configuration Value. |
§ phalFelica_ActivateCard()
phStatus_t phalFelica_ActivateCard |
( |
void * |
pDataParams, |
|
|
uint8_t * |
pSystemCode, |
|
|
uint8_t |
bNumTimeSlots, |
|
|
uint8_t * |
pRxBuffer, |
|
|
uint8_t * |
pRxLength, |
|
|
uint8_t * |
pMoreCardsAvailable |
|
) |
| |
This command activates a Felica card.
Note: SystemCode 0xFFFF is passed to poll for all Felica Tags irrespective of the SystemCode. If SystemCode is specified then only corresponding Tag will be Polled and Activated.
- Returns
- Status code
- Return values
-
PH_ERR_SUCCESS | Operation successful. |
Other | Depending on implementation and underlying component. |
- Parameters
-
[in] | pDataParams | Pointer to this layer's parameter structure. |
[in] | pSystemCode | System-Code; uint8_t[2]. |
[in] | bNumTimeSlots | Number of timeslots to use. Refer to e.g. PHPAL_FELICA_NUMSLOTS_1 for valid values. |
[out] | pRxBuffer | 8 bytes NFCID2 + 8 bytes PAD; uint8_t[16]. |
[out] | pRxLength | Length of received data. 0 or 16. |
[out] | pMoreCardsAvailable | Whether there are more cards in the field or not; uint8_t. |