NXP Reader Library  v17.1.0.2535

SAM commands used for reader IC communication. More...

Collaboration diagram for Reader Chips:

Functions

phStatus_t phhalHw_SamAV3_Cmd_RC_ReadRegister (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t *pRegAddr, uint8_t bRegAddrLen, uint8_t *pValue)
 Read the content of one or more register(s) of the connected reader chip. More...
 
phStatus_t phhalHw_SamAV3_Cmd_RC_WriteRegister (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t *pData, uint8_t bDataLen)
 Write the content of one or more register(s) of the connected reader chip. More...
 
phStatus_t phhalHw_SamAV3_Cmd_RC_RFControl (phhalHw_SamAV3_DataParams_t *pDataParams, uint16_t wTime)
 Turn the radio frequency field On or Off. More...
 
phStatus_t phhalHw_SamAV3_Cmd_RC_Init (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bLoadReg)
 Initializes the reader chip. More...
 
phStatus_t phhalHw_SamAV3_Cmd_RC_LoadRegisterValueSet (phhalHw_SamAV3_DataParams_t *pDataParams, uint8_t bStoreReg, uint8_t *pData, uint8_t bDataLen)
 Stores a customer defined register value set. More...
 

Sam AV3 command code for Sam Reader Chips feature.

#define PHHAL_HW_SAMAV3_CMD_RC_READ_REGISTER_INS   0xEE
 Sam AV3 Insturction code for RC_ReadRegister command.
 
#define PHHAL_HW_SAMAV3_CMD_RC_WRITE_REGISTER_INS   0x1E
 Sam AV3 Insturction code for RC_WriteRegister command.
 
#define PHHAL_HW_SAMAV3_CMD_RC_RF_CONTROL_INS   0xCF
 Sam AV3 Insturction code for RC_RFControl command.
 
#define PHHAL_HW_SAMAV3_CMD_RC_INIT_INS   0xE5
 Sam AV3 Insturction code for RC_Int command.
 
#define PHHAL_HW_SAMAV3_CMD_RC_LOAD_REGISTER_VALUE_SET_INS   0x2E
 Sam AV3 Insturction code for RC_LoadRegisterValueSet command.
 

Detailed Description

SAM commands used for reader IC communication.

Function Documentation

◆ phhalHw_SamAV3_Cmd_RC_ReadRegister()

phStatus_t phhalHw_SamAV3_Cmd_RC_ReadRegister ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t pRegAddr,
uint8_t  bRegAddrLen,
uint8_t pValue 
)

Read the content of one or more register(s) of the connected reader chip.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pRegAddr[In] Address for the registers to be read.
[in]bRegAddrLen[In] The length of bytes available in RegAddr buffer.
[out]pValue[Out] Register(s) content in the same order as the command data field address(es).

◆ phhalHw_SamAV3_Cmd_RC_WriteRegister()

phStatus_t phhalHw_SamAV3_Cmd_RC_WriteRegister ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t pData,
uint8_t  bDataLen 
)

Write the content of one or more register(s) of the connected reader chip.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]pData[In] The registers to tbe updated. This buffer should contain register address followed by value.
The format should be as mentioned below.
RegAdd + Value + RegAdd + Value + ... + RegAdd + Value
[in]bDataLen[In] The length of bytes available in Data buffer.

◆ phhalHw_SamAV3_Cmd_RC_RFControl()

phStatus_t phhalHw_SamAV3_Cmd_RC_RFControl ( phhalHw_SamAV3_DataParams_t pDataParams,
uint16_t  wTime 
)

Turn the radio frequency field On or Off.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]wTime[In] Shut-down time for the RF field, zero turns the field off.

◆ phhalHw_SamAV3_Cmd_RC_Init()

phStatus_t phhalHw_SamAV3_Cmd_RC_Init ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bLoadReg 
)

Initializes the reader chip.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bLoadReg[In] The Load register information.

◆ phhalHw_SamAV3_Cmd_RC_LoadRegisterValueSet()

phStatus_t phhalHw_SamAV3_Cmd_RC_LoadRegisterValueSet ( phhalHw_SamAV3_DataParams_t pDataParams,
uint8_t  bStoreReg,
uint8_t pData,
uint8_t  bDataLen 
)

Stores a customer defined register value set.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pDataParams[In] Pointer to this layer's parameter structure.
[in]bStoreReg[In] Number of register value set to be used for storing the values.
[in]pData[In] List of Register descriptions. This buffer should be as meniotned below.
If TD1AR1070: SpeedID + ItemCount + RegAddr + RegValue
If TD1AR2060: RegAddr + RegValue
[in]bDataLen[In] The length of bytes available in Data buffer.