NXP Reader Library  v17.1.0.2535

SAM commands used for RC52xa nd RC663 reader IC communication. More...

Collaboration diagram for RC52x and RC663 configuration:

Macros

#define PHHAL_HW_SAMAV2_CMD_RC_READREGISTER_MAX_DATA_LENGTH   0xFF
 CMD length of RC_ReadRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_READREGISTER_RESPONSE_LENGTH   0xFF
 Response length for RC_ReadRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_WRITEREGISTER_MAX_DATA_LENGTH   0xFE
 CMD length of RC_WriteRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_WRITEREGISTER_RESPONSE_LENGTH   0x00
 Response length for RC_WriteRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_RFCONTROL_DATA_LENGTH   0x02
 CMD length of RC_RFControl command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_RFCONTROL_RESPONSE_LENGTH   0x00
 Response length for RC_RFControl command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_INIT_RESPONSE_LENGTH   0x00
 Response length for RC_Init command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_LOAD_REG_VALUE_SET_MAX_DATA_LENGTH   0x3E
 CMD length of RC_WriteRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_LOAD_REG_VALUE_SET_RESPONSE_LENGTH   0x00
 Response length for RC_WriteRegister command.
 

Functions

phStatus_t phhalHw_SamAV2_Cmd_RC_ReadRegister (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pRegAddress, uint8_t bRegAddressLength, uint8_t *pValue)
 Read one or more registers of the RC522. More...
 
phStatus_t phhalHw_SamAV2_Cmd_RC_WriteRegister (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t *pData, uint8_t bDataLength)
 Write one or more registers of the RC522. More...
 
phStatus_t phhalHw_SamAV2_Cmd_RC_RFControl (phhalHw_SamAV2_DataParams_t *pDataParams, uint16_t wTime)
 Turn the RF-field of the RC522 on and/or off. More...
 
phStatus_t phhalHw_SamAV2_Cmd_RC_Init (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bLoadReg)
 Initialize the RC522 with a given register value set. More...
 
phStatus_t phhalHw_SamAV2_Cmd_RC_LoadRegisterValueSet (phhalHw_SamAV2_DataParams_t *pDataParams, uint8_t bStoreReg, uint8_t *pData, uint8_t bDataLength)
 Update a register value set in the SAM. More...
 

Sam AV2 command code for RC52x and RC663 configuration feature.

#define PHHAL_HW_SAMAV2_CMD_RC_READREGISTER   0xEE
 CMD Byte for RC_ReadRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_WRITEREGISTER   0x1E
 CMD Byte for RC_WriteRegister command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_RFCONTROL   0xCF
 CMD Byte for RC_RFControl command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_INIT   0xE5
 CMD Byte for RC_Init command.
 
#define PHHAL_HW_SAMAV2_CMD_RC_LOAD_REG_VALUE_SET   0x2E
 CMD Byte for RC_LoadRegisterVlaueSet command.
 

Detailed Description

SAM commands used for RC52xa nd RC663 reader IC communication.

Function Documentation

◆ phhalHw_SamAV2_Cmd_RC_ReadRegister()

phStatus_t phhalHw_SamAV2_Cmd_RC_ReadRegister ( phhalHw_SamAV2_DataParams_t pDataParams,
uint8_t pRegAddress,
uint8_t  bRegAddressLength,
uint8_t pValue 
)

Read one or more registers of the RC522.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pRegAddress[In] Buffer containing the addresses of registers to be read.
[in]bRegAddressLength[In] Length of pRegAddress.
[out]pValue[Out] Buffer containing the read values. The buffer has to be bRegAddressLength long.

◆ phhalHw_SamAV2_Cmd_RC_WriteRegister()

phStatus_t phhalHw_SamAV2_Cmd_RC_WriteRegister ( phhalHw_SamAV2_DataParams_t pDataParams,
uint8_t pData,
uint8_t  bDataLength 
)

Write one or more registers of the RC522.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pData[In] Buffer containing address - value duos.
[in]bDataLength[In] Amount of valid data bytes in the pData buffer. It has to be a multiple of 2.

◆ phhalHw_SamAV2_Cmd_RC_RFControl()

phStatus_t phhalHw_SamAV2_Cmd_RC_RFControl ( phhalHw_SamAV2_DataParams_t pDataParams,
uint16_t  wTime 
)

Turn the RF-field of the RC522 on and/or off.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wTime[In] Shut down time for HF Field

◆ phhalHw_SamAV2_Cmd_RC_Init()

phStatus_t phhalHw_SamAV2_Cmd_RC_Init ( phhalHw_SamAV2_DataParams_t pDataParams,
uint8_t  bLoadReg 
)

Initialize the RC522 with a given register value set.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bLoadReg[In] Number of register value set to be used for initialization (00h to 07h).

◆ phhalHw_SamAV2_Cmd_RC_LoadRegisterValueSet()

phStatus_t phhalHw_SamAV2_Cmd_RC_LoadRegisterValueSet ( phhalHw_SamAV2_DataParams_t pDataParams,
uint8_t  bStoreReg,
uint8_t pData,
uint8_t  bDataLength 
)

Update a register value set in the SAM.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bStoreReg[In] Number of register value set to be used for storing (00h to 07h).
[in]pData[In] Buffer containing address - value duos.
[in]bDataLength[In] Amount of valid data bytes in the pData buffer. It has to be a multiple of 2.