Supported ReaderIC commands. More...

Functions | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdConfig (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function performs hardware configuration of the PCD - the hardware is reset, send and receive buffers are intialized and basic register configuration is set. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdGetAttrib (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *FSCImax, uint8_t *FSDImax, uint8_t *DSsupp, uint8_t *DRsupp, uint8_t *DREQDS) |
| The function outputs the parameters after the RATS-ATS exchange: FSDI, FSCI, DR, DS, 'equal/different divisior flag'. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdSetAttrib (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t DSI, uint8_t DRI) |
| The function initializes the of DSI and DRI values with provided parameters. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdEnableHighBaudRates (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *cryptogram) |
| The function initializes the baud rate PCD->PICC to the same value as for PICC->PCD, if the serial number of the IC is equal to the cryptogram parameter. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdSetDefaultAttrib (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function switches the PCD-PICC baud-rate to the default of 106 kB, if the last reader receive or transmit baud rate has been different from the default one. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccRequest (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t req_code, uint8_t *atq) |
| The function initiates an ISO14443-3A short frame command-response exchange with the PICC using the provided command code - REQA or WUPA. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccCommonRequest (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t req_code, uint8_t *atq) |
| The function initiates an ISO14443-3A short frame command-response exchange with the PICC using the provided command code - REQA or WUPA. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccAnticoll (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bcnt, uint8_t *snr) |
| The function initates the first cascade level of the ISO14443-3A anticollision procedure. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccCascAnticoll (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t select_code, uint8_t bcnt, uint8_t *snr) |
| The function initiates the specified cascade level of the ISO14443-3A anticollision. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccSelect (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *snr, uint8_t *sak) |
| The function starts the ISO14443-3A 'Select' command at the first cascade level(command code 0x93). More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccCascSelect (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t select_code, uint8_t *snr, uint8_t *sak) |
| The function starts the ISO14443-3A 'Select' command at the specified cascade level. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccAuth (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t keyAB, uint8_t key_addr, uint8_t block) |
| The function authenticates one sector of the last selected PICC using the master key stored in the PCD's EEPROM. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccAuthE2 (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t auth_mode, uint8_t *snr, uint8_t key_sector, uint8_t block) |
| The function authenticates one sector of the defined by the UID PICC using the master key stored in the PCD's EEPROM. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_HostCodeKey (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *uncoded, uint8_t *coded) |
| The function performs a proprietary coding over 6 bytes of key source uncoded data and stores the coded result at the destination address. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdLoadKeyE2 (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t auth_mode, uint8_t key_sector, uint8_t *keys) |
| The function performs a proprietary coding of the provided key (6 bytes) and stores it coded (12 bytes) into the defined PCD internal EEPROM sector. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccAuthKey (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t auth_mode, uint8_t *snr, uint8_t *keys, uint8_t block) |
| The function authenticates one PICC's sector using keys stored in the PCD. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccRead (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t addr, uint8_t *data) |
| The function reads from PICC 16 byte data block from the defined address and stores it into the data buffer. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccCommonRead (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t cmd, uint8_t addr, uint8_t datalen, uint8_t *data) |
| The function reads from the PICC data with specified length and stores it into destination data buffer. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccWrite (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t addr, uint8_t *data) |
| The function writes 16 byte data block at the defined block address in the PICC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccWrite4 (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t addr, uint8_t *data) |
| The function writes a 4 byte data block at the defined block address in the PICC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccCommonWrite (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t cmd, uint8_t addr, uint8_t datalen, uint8_t *data) |
| The function writes data with the defined length at the destination block address in the PICC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccValue (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t dd_mode, uint8_t addr, uint8_t *value, uint8_t trans_addr) |
| The function performs PICC value block manipulation using an increment, decrement or restore operation. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccValueDebit (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t dd_mode, uint8_t addr, uint8_t *value) |
| The function performs PICC value block decrement operation. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_MfPiccHalt (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function transmits ISO14443-3A two bytes standard frame containing HALT command and sets the PICC into halted state. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccActivation (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t ctrl_flag, uint8_t req_code, uint8_t *br, uint8_t *atq, uint8_t *sak, uint8_t *uid, uint8_t *uid_len, uint8_t *script, uint16_t script_len, uint8_t *resp, uint16_t *resp_len, uint8_t sec) |
| The function starts with the common request command REAQ/WUPA and stores the returned ATQA in the provided buffer. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccActivateIdle (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t br, uint8_t *atq, uint8_t *sak, uint8_t *uid, uint8_t *uid_len) |
| The function performs PICC activation. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccActivateIdleLoop (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t br, uint8_t *atq, uint8_t *sak, uint8_t *uid, uint8_t *uid_len, uint8_t sec) |
| The function performs PICC activation. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccActivateWakeup (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t br, uint8_t *atq, uint8_t *sak, uint8_t *uid, uint8_t uid_len) |
| The function performs PICC activation. More... | |
Exchange Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccExchangeBlock (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t **rec_data, uint16_t *rec_bytelen, uint8_t append_crc, uint32_t timeout) |
| The function initiates a block exchange between the PCD and PICC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccExchangeBlockRfCycle (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t **rec_data, uint16_t *rec_bytelen, uint8_t append_crc, uint32_t timeout) |
| The function executes a block exchange between the PCD and PICC and initiates a reset procedure in case of timeout. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccExchgBitByte (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t send_validbits, uint8_t **rec_data, uint16_t *rec_bytelen, uint8_t *rec_validbits, uint8_t flags, uint32_t timeout) |
| The function performs a bitwise data exchange between the PCD and PICC, where the send and/or receive data does not end at a byte boundary. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PiccExchgBitByteRfCycle (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t send_validbits, uint8_t **rec_data, uint16_t *rec_bytelen, uint8_t *rec_validbits, uint8_t flags, uint32_t timeout) |
| The function performs a bitwise data exchange between the PCD and PICC, where the send and/or receive data does not end at a byte boundary. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Exchange (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t **rec_data, uint16_t *rec_bytelen) |
| The function performs transparent VCD to VICC data exchange according to ISO15693-3 standard. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_EPCUID_Exchange (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bOption, uint8_t *send_buffer, uint16_t send_bytelen, uint8_t bTxLastBits, uint8_t **rec_data, uint16_t *rec_bytelen) |
| The function performs transparent 'read/write device'(RWD) to EPC/UID data exchange. More... | |
Shared Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdSetTmo (phhalHw_Rd70x_DataParams_t *pDataParams, uint32_t tmoLength) |
| The function initializes the RF communication timeout. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdReset (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function performs a reset of reader IC's hardware, if the MF RC500 reset pin is connected to a dedicated uController port pin. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdRfReset (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t ms) |
| The function turns-off the HF field of the reader for a specified time in milliseconds. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_HostTransTmrStart (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function starts a transaction timer on the microcontroller, which counts every microsecond until the corresponding stop-function is called. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_HostTransTmrStop (phhalHw_Rd70x_DataParams_t *pDataParams, uint32_t *us) |
| The function stops the transaction timer on the microcontroller, which has been counting every microsecond from the moment the start-function phhalHw_Rd70x_Cmd_HostTransTmrStart has been called. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_HostTransTmrSetCMDCount (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t lvtime) |
| The function initializes a counter for command execution. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_HostGetExecutionTime (phhalHw_Rd70x_DataParams_t *pDataParams, uint32_t *us) |
| The function outputs the result of the last execution time. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_WriteRC (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t addr, uint8_t value) |
| This function writes one byte to the reader IC address space. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ReadRC (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t addr, uint8_t *value) |
| This function reads one byte from the reader IC address space. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_WriteMultiple (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *addr_value, uint16_t len) |
| The function writes multiple registers. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ReadMultiple (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *addr_value, uint16_t len) |
| The function reads multiple registers. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdReadE2 (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t startaddr, uint8_t length, uint8_t *data) |
| The function reads out data stored in the reader IC's EERPOM beginning at address startaddr. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdWriteE2 (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t startaddr, uint8_t length, uint8_t *data) |
| The function writes a given length of data bytes stored in the data buffer to the reader IC's EEPROM beginning at address startaddr. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdSetIdleMode (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function sets the reader IC in idle mode. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdClearIdleMode (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function changes the reader IC mode from idle back to operating mode. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdGetFwVersion (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *version, uint16_t *versionLen) |
| The function outputs a firmware version string and its length in the specified buffers. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdGetRicVersion (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *version) |
| The function outputs the product ID of the reader IC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdInitializeE2 (phhalHw_Rd70x_DataParams_t *pDataParams) |
| This function initializes the reader IC EEPROM with factory values. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ReadWord (phhalHw_Rd70x_DataParams_t *pDataParams, uint32_t address, uint16_t *value) |
| The function reads data from memory address space word aligned. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_PcdGetSnr (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *snr) |
| The function reads out a 4 bytes serial number of the used reader IC. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_SwitchLED (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t onoff) |
| The function controls the 5 LEDs situated in the middle of the antenna. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_DbgTrigger (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t enableTrigger) |
| The function initializes port pin for a trigger(debug) or a release mode. More... | |
ICode1 Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_I1PcdConfig (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function configures the reader IC for ICode mode. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_I1PcdRfReset (phhalHw_Rd70x_DataParams_t *pDataParams, uint16_t ms) |
| The function performs a HF reset. More... | |
ISO15693 Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_I2init_StdMode_15693 (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function initializes the reader IC to ISO15693 standard mode "1 out of 256 coding". More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_I2init_FastMode_15693 (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function initializes reader IC to fast mode "1 out of 256 coding". More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Read_Sm (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t blnr, uint8_t nbl, uint16_t *resplen, uint8_t *resp) |
| The function executes the READ SINGLE BLOCK and READ MULTIPLE BLOCK commands. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Inventory (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t AFI, uint8_t masklengh, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 INVENTORY command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Write_Sm (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t blnr, uint8_t nbl, uint8_t *data, uint16_t *resplen, uint8_t *resp) |
| The function executes the WRITE SINGLE BLOCK and WRITE MULTIPLE BLOCK commands. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Stay_Quiet (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 STAY QUIET command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Lock_Block (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t blnr, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 LOCK BLOCK command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Select (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 SELECT command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Reset_To_Ready (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 RESET TO READY command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Write_AFI (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t AFI, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 WRITE_AFI command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Lock_AFI (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 LOCK_AFI command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Write_DSFID (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t DSFID, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 WRITE DSFID command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Lock_DSFID (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 LOCK DSFID command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Get_System_Information (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 GET SYSTEM INFORMATION command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Get_Multiple_Block_Security (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t *uid, uint8_t blnr, uint8_t nbl, uint16_t *resplen, uint8_t *resp) |
| The function executes the ISO15693-3 GET MULTIPLE BLOCK SECURITY STATUS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Inventory_Read (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t AFI, uint8_t masklengh, uint8_t *uid, uint8_t blnr, uint8_t nbl, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom INVENTORY READ command for VICCs with SLI tiype. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Fast_Inventory_Read (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t AFI, uint8_t masklengh, uint8_t *uid, uint8_t blnr, uint8_t nbl, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom FAST INVENTORY READ command for VICCs with SLI tiype. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Set_Eas (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom SET EAS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Reset_Eas (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom RESET EAS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Lock_Eas (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t *uid, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom LOCK EAS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_Eas_Alarm (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t flags, uint8_t ManCode, uint8_t *uid, uint8_t bEAS_ID_MaskLength, uint8_t *pbEAS_ID, uint16_t *resplen, uint8_t *resp) |
| The function executes the custom EAS ALARM command. More... | |
ICode EPC Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_EPCPcdConfig (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function configures the reader IC for EPC mode. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_EPCBeginRound (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *mask, uint8_t masklength, uint8_t nbrslots, uint8_t hash, uint16_t *resplen, uint8_t *resp) |
| The function executes the EPC BEGIN ROUND command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_EPCWrite (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t blnr, uint8_t data) |
| The function executes the EPC WRITE command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_EPCDestroy (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *epc, uint8_t *destroy_code) |
| The function executes the EPC DESTROY command. More... | |
ICode UID Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_UIDPcdConfig (phhalHw_Rd70x_DataParams_t *pDataParams) |
| The function configures the reader IC for UID mode. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_UIDBeginRound (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *mask, uint8_t masklength, uint8_t nbrslots, uint16_t *resplen, uint8_t *resp) |
| The function executes the UID BEGIN ROUND command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_UIDWrite (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t blnr, uint8_t data) |
| The function executes the EPC WRITE command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_UIDDestroy (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t *idd, uint8_t *destroy_code) |
| The function executes the UID DESTROY command. More... | |
ICode SLI Commands | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_PwdProtectEAS (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom PASSWORD PROTECT EAS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_WriteEAS_ID (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t wEAS_ID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom WRITE EAS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_ReadEPC (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom READ EPC command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_GetRandomNumber (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom GET RANDOM NUMBER command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_SetPwd (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bPwdID, uint8_t *pbPwd, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom GET PASSWORD command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_WritePwd (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bPwdID, uint8_t *pbPwd, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom WRITE PASSWORD command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_LockPWD (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bPWD_ID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom LOCK PASSWORD command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_64BitPWDProtection (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom 64 BIT PASSWORD PROTECTION command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_ProtectPage (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bPageNo, uint8_t bProtectionStatus, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom PROTECT PAGE command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_LockPageProtectionCondition (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bPageNo, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom LOCK PAGE PROTECTION CONDITIONS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_DestroyS (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom DESTROY SLI-S command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_InventoryReadS (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t bAFI, uint8_t bMaskLen, uint8_t *pbUID, uint8_t bBlockNo, uint8_t bNoOfBlocks, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom INVENTORY PAGE READ command for VICCs with SLI-S tiype. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_FastInventoryReadS (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t bAFI, uint8_t bMaskLen, uint8_t *pbUID, uint8_t bBlockNo, uint8_t bNoOfBlocks, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom FAST INVENTORY PAGE READ command for VICCs with SLI-S tiype. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_GetMultipleBlockProtStatus (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint8_t bFirstBlock, uint8_t bNoOfBlocks, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom GET MULTIPLE BLOCK PROTECTION CONDITIONS command. More... | |
| phStatus_t | phhalHw_Rd70x_Cmd_ISO15693_EnablePrivacy (phhalHw_Rd70x_DataParams_t *pDataParams, uint8_t bFlags, uint8_t bManCode, uint8_t *pbUID, uint16_t *pwRespLen, uint8_t *pbResp) |
| The function executes the custom ENABLE PRIVACY command. More... | |
Supported ReaderIC commands.
| phStatus_t phhalHw_Rd70x_Cmd_PcdConfig | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function performs hardware configuration of the PCD - the hardware is reset, send and receive buffers are intialized and basic register configuration is set.
Finally the HF is also reset.
| PH_ERR_SUCCESS | Command successfully executed |
| Other | Invalid parameters or conditions - the error status is returned by the underlayed functions. If the parameters are correct the function returns the command execution status of the PCD. The PCD command execution status is mapped to a library status codes. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdGetAttrib | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | FSCImax, | ||
| uint8_t * | FSDImax, | ||
| uint8_t * | DSsupp, | ||
| uint8_t * | DRsupp, | ||
| uint8_t * | DREQDS | ||
| ) |
The function outputs the parameters after the RATS-ATS exchange: FSDI, FSCI, DR, DS, 'equal/different divisior flag'.
| PH_ERR_SUCCESS | Command successfully executed |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | FSCImax | [Out] Pointer to maximum size of a frame accepted by the PICC. |
| [out] | FSDImax | [Out] Pointer to maximum size of a frame accepted by the PCD. |
| [out] | DSsupp | [Out] Pointer to the supported baudrate divider PICC to PCD. |
| [out] | DRsupp | [Out] Pointer to the supported baudrate divider PCD to PICC. |
| [out] | DREQDS | [Out] Pointer to equal/different (1/0) dividers in each direction. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdSetAttrib | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | DSI, | ||
| uint8_t | DRI | ||
| ) |
The function initializes the of DSI and DRI values with provided parameters.
| PH_ERR_SUCCESS | Command successfully executed |
| PH_ERR_INTERNAL_ERROR | Invalid SDI or DRI parameter i.e. the parameter is bigger than the maximum baudrate divider supported by the PCD. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | DSI | [In] PPS division integer PICC to PCD. |
| [in] | DRI | [In] PPS division integer PCD to PICC. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdEnableHighBaudRates | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | cryptogram | ||
| ) |
The function initializes the baud rate PCD->PICC to the same value as for PICC->PCD, if the serial number of the IC is equal to the cryptogram parameter.
| PH_ERR_SUCCESS | Command successfully executed |
| PH_ERR_INTERNAL_ERROR | Invalid parameter, the four bytes of cryptogram paramter are not equal to the PCD's serial numner. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | cryptogram | [In] Pointer to a cryptogram of 4 bytes, corresponding to the serial number of the reader IC. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdSetDefaultAttrib | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function switches the PCD-PICC baud-rate to the default of 106 kB, if the last reader receive or transmit baud rate has been different from the default one.
| PH_ERR_SUCCESS | Command successfully executed |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccRequest | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | req_code, | ||
| uint8_t * | atq | ||
| ) |
The function initiates an ISO14443-3A short frame command-response exchange with the PICC using the provided command code - REQA or WUPA.
Two bytes of the PICC response ATQA are stored at the provided address.
| PH_ERR_SUCCESS | Command is successfully executed. Any PICC response collision, that might happen is also considered a successful command execution. |
| PH_ERR_PROTOCOL_ERROR | The PICC does not return the expected number of bytes. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | req_code | [In] Command to be executed REQA or WUPA |
| [out] | atq | [Out] Pointer to a location where two bytes of the response ATQA will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccCommonRequest | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | req_code, | ||
| uint8_t * | atq | ||
| ) |
The function initiates an ISO14443-3A short frame command-response exchange with the PICC using the provided command code - REQA or WUPA.
Two bytes of the PICC response ATQA are stored at the provided address. This function has an identical functionallity to phhalHw_Rd70x_Cmd_MfPiccRequest function.
| PH_ERR_SUCCESS | Command is successfully executed. Any PICC response collision, that might happen is still a successful command execution. |
| PH_ERR_PROTOCOL_ERROR | The PICC does not return the expected number of bytes. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | req_code | [In] Command to be executed REQA or WUPA. |
| [out] | atq | [Out] Pointer to a location where two bytes of the response ATQA will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccAnticoll | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bcnt, | ||
| uint8_t * | snr | ||
| ) |
The function initates the first cascade level of the ISO14443-3A anticollision procedure.
The UID bytes returned by the PICC are stored at the provided address.
| PH_ERR_SUCCESS | Command is successfully executed. In case of collision the function exits also with success. |
| PH_ERR_PROTOCOL_ERROR | Inconsistent CRC |
| PH_ERR_INTERNAL_ERROR | Wrong parameter - number of valid bits NVB. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bcnt | [In] Number of valid bits (NVB) |
| [out] | snr | [Out] Pointer to a location where the UID of the first collision-free detected PICC will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccCascAnticoll | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | select_code, | ||
| uint8_t | bcnt, | ||
| uint8_t * | snr | ||
| ) |
The function initiates the specified cascade level of the ISO14443-3A anticollision.
The UID bytes returned by the PICC are stored at the provided address.
| PH_ERR_SUCCESS | Command is successfully executed. In case of collision the function exits also with success. |
| PH_ERR_PROTOCOL_ERROR | Inconsistent CRC |
| PH_ERR_INTERNAL_ERROR | Wrong parameter - number of valid bits NVB. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | select_code | [In] Select command code |
| [in] | bcnt | [In] Number of valid bits (NVB) |
| [out] | snr | [Out] Pointer to a location where the UID of the first collision-free detected PICC will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccSelect | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | snr, | ||
| uint8_t * | sak | ||
| ) |
The function starts the ISO14443-3A 'Select' command at the first cascade level(command code 0x93).
The SAK byte returned by the PICC is stored at the provided address.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | snr | [Out] UID, 4 bytes serial number of the PICC to be selected. |
| [out] | sak | [Out] Pointer to a location where the SAK byte returned from the PICC will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccCascSelect | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | select_code, | ||
| uint8_t * | snr, | ||
| uint8_t * | sak | ||
| ) |
The function starts the ISO14443-3A 'Select' command at the specified cascade level.
The SAK byte returned by the PICC is stored at the provided address.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | select_code | [In] 'Select' command code according to ISO14443-3A for the required cascade level |
| [out] | snr | [Out] UID, 4 bytes serial number of the PICC to be selected. |
| [out] | sak | [Out] Pointer to a location where the SAK byte returned from the PICC will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccAuth | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | keyAB, | ||
| uint8_t | key_addr, | ||
| uint8_t | block | ||
| ) |
The function authenticates one sector of the last selected PICC using the master key stored in the PCD's EEPROM.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_AUTH_ERROR | Protocol or integrity error. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | keyAB | [In] Selects master key PICC_AUTHENT1A or PICC_AUTHENT1B. |
| [in] | key_addr | [In] EEPROM address where the keys are stored in the PCD, range [0,15] |
| [in] | block | [In] Number of PICC block defining the sector that should be authenticated. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccAuthE2 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | auth_mode, | ||
| uint8_t * | snr, | ||
| uint8_t | key_sector, | ||
| uint8_t | block | ||
| ) |
The function authenticates one sector of the defined by the UID PICC using the master key stored in the PCD's EEPROM.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by the an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | auth_mode | [In] Selects master key PICC_AUTHENT1A or PICC_AUTHENT1B. |
| [in] | snr | [In] UID, 4 bytes serial number of the PICC to be authenticated. |
| [in] | key_sector | [In] EEPROM address where the keys are stored in the PCD, range [0,15] |
| [in] | block | [In] Number of PICC block defining the sector that should be authenticated. |
| phStatus_t phhalHw_Rd70x_Cmd_HostCodeKey | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | uncoded, | ||
| uint8_t * | coded | ||
| ) |
The function performs a proprietary coding over 6 bytes of key source uncoded data and stores the coded result at the destination address.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_AUTH_ERROR | Protocol or integrity error. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | uncoded | [In] Pointer to a 6-byte buffer holding the source of uncoded data. |
| [in] | coded | [In] Pointer to a 12-byte buffer for the destination coded data. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdLoadKeyE2 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | auth_mode, | ||
| uint8_t | key_sector, | ||
| uint8_t * | keys | ||
| ) |
The function performs a proprietary coding of the provided key (6 bytes) and stores it coded (12 bytes) into the defined PCD internal EEPROM sector.
If key B is specified, then it is stored with an additional offset 12 bytes.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | auth_mode | [In] Key PICC_AUTHENT1A or PICC_AUTHENT1B. |
| [in] | key_sector | [In] Sector in the PCD internal EEPROM, where to store the key |
| [in] | keys | [In] Pointer to a 6-byte buffer uncoded key |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccAuthKey | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | auth_mode, | ||
| uint8_t * | snr, | ||
| uint8_t * | keys, | ||
| uint8_t | block | ||
| ) |
The function authenticates one PICC's sector using keys stored in the PCD.
The key needed for authentication is first loaded by this function into PCD's EEPROM in a coded form. The proprietary coding of the key shall be done first by phhalHw_Rd70x_Cmd_HostCodeKey function.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_AUTH_ERROR | Protocol or integrity error. |
| Other | Invalid parameters or conditions - the error status is returned by the an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | auth_mode | [In] Key PICC_AUTHENT1A or PICC_AUTHENT1B. |
| [in] | snr | [In] Pointer to a 4-byte buffer of the PICC's serial numner(UID) |
| [in] | keys | [In] Pointer to a 12-byte buffer of coded key |
| [in] | block | [In] Number of the block to be authenticated |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccRead | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | addr, | ||
| uint8_t * | data | ||
| ) |
The function reads from PICC 16 byte data block from the defined address and stores it into the data buffer.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr | [In] Block address to read from. |
| [out] | data | [Out] Pointer to 16-byte destination data buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccCommonRead | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | cmd, | ||
| uint8_t | addr, | ||
| uint8_t | datalen, | ||
| uint8_t * | data | ||
| ) |
The function reads from the PICC data with specified length and stores it into destination data buffer.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | cmd | [In] Read command. |
| [in] | addr | [In] Block address to read from. |
| [in] | datalen | [In] Length of data to read. |
| [out] | data | [Out] Pointer to destination data buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccWrite | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | addr, | ||
| uint8_t * | data | ||
| ) |
The function writes 16 byte data block at the defined block address in the PICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr | [In] PICC block destination address. |
| [in] | data | [In] Pointer to 16-byte source data buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccWrite4 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | addr, | ||
| uint8_t * | data | ||
| ) |
The function writes a 4 byte data block at the defined block address in the PICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr | [In] Destination block address in the PICC. |
| [in] | data | [In] Pointer to 4-byte source data buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccCommonWrite | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | cmd, | ||
| uint8_t | addr, | ||
| uint8_t | datalen, | ||
| uint8_t * | data | ||
| ) |
The function writes data with the defined length at the destination block address in the PICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | The number of received bits is not equal to the expected. |
| PH_ERR_INTERNAL_ERROR | Write error. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | cmd | [In] Write command |
| [in] | addr | [In] Destination block address in the PICC |
| [in] | datalen | [In] Length of data to be written. |
| [in] | data | [In] Pointer to source data buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccValue | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | dd_mode, | ||
| uint8_t | addr, | ||
| uint8_t * | value, | ||
| uint8_t | trans_addr | ||
| ) |
The function performs PICC value block manipulation using an increment, decrement or restore operation.
The PICC internally reads the stored value block and takes it as initial value for the calculation. The other operand is the value parameter from this function. Finally the result is transferred at the defined in the parameter PICC's block address.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | The number of received bits is not equal to the expected. |
| PH_ERR_INTERNAL_ERROR | Value error or the command isn't authenticated for this sector |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | dd_mode | [In] Operation code - increment, decrement or restore. |
| [in] | addr | [In] Address of PICC's value block to be manipulated. |
| [in] | value | [In] Pointer to 4-byte buffer holding a positive value, which will be involved in the operation. |
| [in] | trans_addr | [In] PICC's block address, to which the result of the calculation shall be transferred. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccValueDebit | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | dd_mode, | ||
| uint8_t | addr, | ||
| uint8_t * | value | ||
| ) |
The function performs PICC value block decrement operation.
The PICC internally reads the stored value block and takes it as initial value for the calculation. The other operand is the value parameter from this function. Finally the result is transferred to the initial value block address.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | The number of received bits is not equal to the expected. |
| PH_ERR_INTERNAL_ERROR | Value error or the command isn't authenticated for this sector |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | dd_mode | [In] Operation code - only decrement operation is allowed |
| [in] | addr | [In] Address of PICC's value block to be decremented. |
| [in] | value | [In] Pointer to 4-byte buffer holding a positive value, which will be involved in the operation. |
| phStatus_t phhalHw_Rd70x_Cmd_MfPiccHalt | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function transmits ISO14443-3A two bytes standard frame containing HALT command and sets the PICC into halted state.
Having send the command to the PICC, the function does not expect a response.
| PH_ERR_SUCCESS | Command is successfully executed. Timeout of the PICC response. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccActivation | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | ctrl_flag, | ||
| uint8_t | req_code, | ||
| uint8_t * | br, | ||
| uint8_t * | atq, | ||
| uint8_t * | sak, | ||
| uint8_t * | uid, | ||
| uint8_t * | uid_len, | ||
| uint8_t * | script, | ||
| uint16_t | script_len, | ||
| uint8_t * | resp, | ||
| uint16_t * | resp_len, | ||
| uint8_t | sec | ||
| ) |
The function starts with the common request command REAQ/WUPA and stores the returned ATQA in the provided buffer.
Further it performs ISO14443-3A anticollisiion sending the select commands according to the casade level and stores the UID, the UID length and the SAK response in the provided locations. According to the passed baudrate parameter, both PCD and PICC are switched to the new transfer rate by this function.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | Invalid UID CLn check byte(BCC). |
| PH_ERR_INTERNAL_ERROR | Selected baudrate is not supported or no PICC supports bitwise anticollision or wrong parameter value. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | ctrl_flag | [In] Dummy |
| [in] | req_code | [In] Common request command code ISO14443-3A REQA/WUPA |
| [in] | br | [In] Baudrate for PICC communication.
|
| [out] | atq | [Out] Pointer to 2-byte buffer for the ATQA. |
| [out] | sak | [Out] Pointer to a byte holding the SAK returned by the PICC. |
| [out] | uid | [Out] Pointer to 10-byte byffer holding the PICC's UID. |
| [out] | uid_len | [Out] Pointer to the UID length. |
| [in] | script | [In] Additional bytes to send directly after activation (for debugging) |
| [in] | script_len | [In] length of additional bytes to send (0 if not used). |
| [out] | resp | [Out] Full response (used for debugging) |
| [out] | resp_len | [Out] Length of full response |
| [in] | sec | [In] Timeout in seconds |
| phStatus_t phhalHw_Rd70x_Cmd_PiccActivateIdle | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | br, | ||
| uint8_t * | atq, | ||
| uint8_t * | sak, | ||
| uint8_t * | uid, | ||
| uint8_t * | uid_len | ||
| ) |
The function performs PICC activation.
It is similar to 'Picc Activation' with the difference, that the request code is fixed to the ISO14443-3A command REQA.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | Invalid UID CLn check byte(BCC). |
| PH_ERR_INTERNAL_ERROR | Selected baudrate is not supported or no PICC supports bitwise anticollision or wrong parameter value. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | br | [In] Baudrate for PICC communication. |
| [out] | atq | [Out] Pointer to 2-byte buffer for the ATQA. |
| [out] | sak | [Out] Pointer to a byte holding the SAK returned by the PICC. |
| [out] | uid | [Out] Pointer to 10-byte byffer holding the PICC's UID. |
| [out] | uid_len | [Out] Pointer to the UID length. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccActivateIdleLoop | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | br, | ||
| uint8_t * | atq, | ||
| uint8_t * | sak, | ||
| uint8_t * | uid, | ||
| uint8_t * | uid_len, | ||
| uint8_t | sec | ||
| ) |
The function performs PICC activation.
It is similar to 'Picc Activate Idle' with the difference that it has an additional timeout parameter that is considered. This function returns with either a selected PICC's UID or a status if timeout occured.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | Invalid UID CLn check byte(BCC). |
| PH_ERR_INTERNAL_ERROR | Selected baudrate is not supported or no PICC supports bitwise anticollision or wrong parameter value sec. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | br | [In] Baudrate for PICC communication. |
| [out] | atq | [Out] Pointer to 2-byte buffer for the ATQA. |
| [out] | sak | [Out] Pointer to a byte holding the SAK returned by the PICC. |
| [out] | uid | [Out] Pointer to 10-byte byffer holding the PICC's UID. |
| [out] | uid_len | [Out] Pointer to the UID length. |
| [in] | sec | [In] Time-out value in seconds. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccActivateWakeup | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | br, | ||
| uint8_t * | atq, | ||
| uint8_t * | sak, | ||
| uint8_t * | uid, | ||
| uint8_t | uid_len | ||
| ) |
The function performs PICC activation.
It is similar to 'Picc Activation' with the difference that the request code is fixed to the ISO14443-3A command WUPA.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_PROTOCOL_ERROR | Invalid UID CLn check byte(BCC). |
| PH_ERR_INTERNAL_ERROR | Selected baudrate is not supported or no PICC supports bitwise anticollision or wrong parameter value. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | br | [In] Baudrate for PICC communication. |
| [out] | atq | [Out] Pointer to 2-byte buffer for the ATQA. |
| [out] | sak | [Out] Pointer to a byte holding the SAK returned by the PICC. |
| [out] | uid | [Out] Pointer to 10-byte byffer holding the PICC's UID. |
| [out] | uid_len | [Out] Pointer to the selected PICC's UID length. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccExchangeBlock | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen, | ||
| uint8_t | append_crc, | ||
| uint32_t | timeout | ||
| ) |
The function initiates a block exchange between the PCD and PICC.
If append_crc is not equal to 0, the last two CRC bytes of the send data block are replaced by internally generatated CRC bytes. The same value causes also the last two (CRC)bytes of the received data block to be set both to 0.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Invalid parameter send_bytelen |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC |
| [in] | send_bytelen | [In] Length of the data block to be sent to the PICC |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. |
| [out] | rec_bytelen | [Out] Pointer to received data length. |
| [in] | append_crc | [In] Append internally generated CRC bytes if not equal to 0. |
| [in] | timeout | [In] Timeout for the exchnge |
| phStatus_t phhalHw_Rd70x_Cmd_PiccExchangeBlockRfCycle | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen, | ||
| uint8_t | append_crc, | ||
| uint32_t | timeout | ||
| ) |
The function executes a block exchange between the PCD and PICC and initiates a reset procedure in case of timeout.
If append_crc is not equal to 0, the last two CRC bytes of the send data block are replaced by internally generatated CRC bytes. The same value causes also the last two (CRC)bytes of the received data block to be set both to 0.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Invalid parameter send_bytelen |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC |
| [in] | send_bytelen | [In] Length of the data block to be sent to the PICC |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. |
| [out] | rec_bytelen | [Out] Pointer to received data length. |
| [in] | append_crc | [In] Append internally generated CRC bytes if not equal to 0. |
| [in] | timeout | [In] Timeout for the PICC answer |
| phStatus_t phhalHw_Rd70x_Cmd_PiccExchgBitByte | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t | send_validbits, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen, | ||
| uint8_t * | rec_validbits, | ||
| uint8_t | flags, | ||
| uint32_t | timeout | ||
| ) |
The function performs a bitwise data exchange between the PCD and PICC, where the send and/or receive data does not end at a byte boundary.
Note that it is not needed to increment send_bytelen by two if TxCRC is enabled. Further, no CRC bytes are appended to the receive buffer. This behaviour is different to phhalHw_Rd70x_Cmd_PiccExchangeBlock function.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_BUFFER_OVERFLOW | send_bytelen it too long and crosses the boundary of the available transmit buffer in the library. |
| PH_ERR_INTERNAL_ERROR | send_bytelen is 0 or it's too long and crosses the boundary of the available buffer in the PCD. |
| PH_ERR_COLLISION_ERROR | Collision in SOF. Received lengts variables rec_bytelen and rec_validbits are set to 0. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC |
| [in] | send_bytelen | [In] Length of the data block to be sent to the PICC. In the last byte only its first send_validbits are valid. |
| [in] | send_validbits | [In] Length of the additional valid bits to be sent. |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. In the last byte only its first rec_validbits are valid. |
| [out] | rec_bytelen | [Out] Pointer to received data length in bytes. |
| [out] | rec_validbits | [Out] Pointer to received number of valid bits in the last byte. |
| [in] | flags | [In] Disables the settings of regModify [b0..b3]. b7, if 1, enables the EMD Suppression. |
| [in] | timeout | [In] Timeout for the PICC answer. |
| phStatus_t phhalHw_Rd70x_Cmd_PiccExchgBitByteRfCycle | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t | send_validbits, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen, | ||
| uint8_t * | rec_validbits, | ||
| uint8_t | flags, | ||
| uint32_t | timeout | ||
| ) |
The function performs a bitwise data exchange between the PCD and PICC, where the send and/or receive data does not end at a byte boundary.
The exchange command is to proceed with RfReset in case of Timeout.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_BUFFER_OVERFLOW | send_bytelen it too long and crosses the boundary of the available transmit buffer in the library. |
| PH_ERR_INTERNAL_ERROR | send_bytelen is 0 or it's too long and crosses the boundary of the available buffer in the PCD. |
| PH_ERR_COLLISION_ERROR | Collision in SOF. Received lengts variables rec_bytelen and rec_validbits are set to 0. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC |
| [in] | send_bytelen | [In] Length of the data in bytes to be sent to the PICC. In the last byte only its first send_validbits are valid. |
| [in] | send_validbits | [In] Length of the additional valid bits in the last byte. |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. In the last byte only its first rec_validbits are valid. |
| [out] | rec_bytelen | [Out] Pointer to received data length in bytes. |
| [out] | rec_validbits | [Out] Pointer to received number of valid bits in the last byte. |
| [in] | flags | [In] Disables the settings of regModify [b0..b3]. b7, if 1, enables the EMD Suppression. |
| [in] | timeout | [In] Timeout for the PICC answer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Exchange | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen | ||
| ) |
The function performs transparent VCD to VICC data exchange according to ISO15693-3 standard.
The SOF, EOF and two CRC bytes are added by the reader. The returned data contains a flags byte followed by a command response data.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_BUFFER_OVERFLOW | send_bytelen it too long and crosses the boundary of the available transmit buffer in the library. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC. |
| [in] | send_bytelen | [In] Length of the data to be sent to the VICC. |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. |
| [out] | rec_bytelen | [Out] Pointer to received data length. |
| phStatus_t phhalHw_Rd70x_Cmd_EPCUID_Exchange | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bOption, | ||
| uint8_t * | send_buffer, | ||
| uint16_t | send_bytelen, | ||
| uint8_t | bTxLastBits, | ||
| uint8_t ** | rec_data, | ||
| uint16_t * | rec_bytelen | ||
| ) |
The function performs transparent 'read/write device'(RWD) to EPC/UID data exchange.
The different 'start/end of frame' symbols: SSOF, LSOF, CEOF and the 'close slot sequence'(CS) are added by the RWD according to the bOption parameter:
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_BUFFER_OVERFLOW | send_bytelen it too long and crosses the boundary of the available transmit buffer in the library. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bOption | [In] Defines the type of SOF |
| [in] | send_buffer | [In] Pointer to a buffer holding the data block to be sent to the PICC. |
| [in] | send_bytelen | [In] Length of the data to be sent to the VICC. |
| [in] | bTxLastBits | [In] Number of the last bits within the last byte in the send buffer, which are not part of the exchange data. |
| [in] | rec_data | [In] Pointer to pointer to received data buffer. |
| [out] | rec_bytelen | [Out] Pointer to received data length. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdSetTmo | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint32_t | tmoLength | ||
| ) |
The function initializes the RF communication timeout.
The timeout value is measured between the last bit sent to the tag and the first bit received from the tag.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | tmoLength | [In] Timeout period calculated in etu's of 9.44 us |
| phStatus_t phhalHw_Rd70x_Cmd_PcdReset | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function performs a reset of reader IC's hardware, if the MF RC500 reset pin is connected to a dedicated uController port pin.
The reset is triggered with a delay of 500 [ms], the reader reset pin is set active for 100[ms]. After each reset, the automatic interface recognition of the reader IC is activated. Both, resetting the reader IC and determining the interface is done by this function.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Interface error while resetting the reader IC |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdRfReset | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint16_t | ms | ||
| ) |
The function turns-off the HF field of the reader for a specified time in milliseconds.
Elapsing this time the HF-field is turned-on again with a delay of 1[ms].
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | ms | [In] Defines the switch-OFF time of the reader's HF-field in milliseconds. |
| phStatus_t phhalHw_Rd70x_Cmd_HostTransTmrStart | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function starts a transaction timer on the microcontroller, which counts every microsecond until the corresponding stop-function is called.
The measured microseconds count is returned by the stop-function phhalHw_Rd70x_Cmd_HostTransTmrStop.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_HostTransTmrStop | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint32_t * | us | ||
| ) |
The function stops the transaction timer on the microcontroller, which has been counting every microsecond from the moment the start-function phhalHw_Rd70x_Cmd_HostTransTmrStart has been called.
The timer period can cover a couple of Mifare commands, but in this case the processing time also includes the communication time between the host and the microcontroller.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | us | [Out] Time period between the start function call and this function call in microseconds. |
| phStatus_t phhalHw_Rd70x_Cmd_HostTransTmrSetCMDCount | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint16_t | lvtime | ||
| ) |
The function initializes a counter for command execution.
When enabled, the command execution counter is decremented after each command executi0n. Reaching value 0 the execution of the current command is disabled.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | lvtime | [In] Initial value of the command execution counter. |
| phStatus_t phhalHw_Rd70x_Cmd_HostGetExecutionTime | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint32_t * | us | ||
| ) |
The function outputs the result of the last execution time.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | us | [Out] Execution time in microseconds. |
| phStatus_t phhalHw_Rd70x_Cmd_WriteRC | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | addr, | ||
| uint8_t | value | ||
| ) |
This function writes one byte to the reader IC address space.
It sets the necessary register page address in the page register. After that it writes a byte value into the specified register.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr | [In] Reader's IC register address to be written |
| [in] | value | [In] Value to write into the speified register |
| phStatus_t phhalHw_Rd70x_Cmd_ReadRC | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | addr, | ||
| uint8_t * | value | ||
| ) |
This function reads one byte from the reader IC address space.
It sets the necessary register page address in the page register. After that it reads a byte value from the specified register.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr | [In] Reader's IC register address to read from. |
| [out] | value | [Out] Value read from the specified register |
| phStatus_t phhalHw_Rd70x_Cmd_WriteMultiple | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | addr_value, | ||
| uint16_t | len | ||
| ) |
The function writes multiple registers.
The register addresses and their corresponding values to be written with this command are stored in pairs in addr_value buffer so that the value appears as second.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | addr_value | [In] Pointer to buffer holding the required register addresses and the values to be written. |
| [in] | len | [In] Number of register to write. |
| phStatus_t phhalHw_Rd70x_Cmd_ReadMultiple | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | addr_value, | ||
| uint16_t | len | ||
| ) |
The function reads multiple registers.
In the addr_value buffer the register addresses and their corresponding values are stored in pairs, so that the value appears immediately after the address it has been read from.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in,out] | addr_value | [In/Out] Pointer to buffer holding the required register addresses and the values to be written. |
| [in] | len | [In] Number of register to be read. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdReadE2 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint16_t | startaddr, | ||
| uint8_t | length, | ||
| uint8_t * | data | ||
| ) |
The function reads out data stored in the reader IC's EERPOM beginning at address startaddr.
The number of bytes to be read are given by the variable length and the read out data are stored in the provided data buffer
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | startaddr | [In] Start address to read from in the EEPROM. |
| [in] | length | [In] Lenght in bytes of data to read. |
| [out] | data | [Out] Pointer to buffer where the data read shall be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdWriteE2 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint16_t | startaddr, | ||
| uint8_t | length, | ||
| uint8_t * | data | ||
| ) |
The function writes a given length of data bytes stored in the data buffer to the reader IC's EEPROM beginning at address startaddr.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | startaddr | [In] Start address to write within the EEPROM. |
| [in] | length | [In] Lenght in bytes of data to written. |
| [in] | data | [In] Pointer to buffer holdin the write data. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdSetIdleMode | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function sets the reader IC in idle mode.
This turns-off all internal current sinks including the oscillator. The digital input buffers are not separated from the input pads but keep their functionality. The digital output pins don't change.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdClearIdleMode | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function changes the reader IC mode from idle back to operating mode.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdGetFwVersion | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | version, | ||
| uint16_t * | versionLen | ||
| ) |
The function outputs a firmware version string and its length in the specified buffers.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | version | [Out] Pointer to null terminated version string, max.length 128 bytes. |
| [out] | versionLen | [Out] Pointer to the length of the version string. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdGetRicVersion | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | version | ||
| ) |
The function outputs the product ID of the reader IC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | version | [Out] Pointer to null terminated version string length 5 bytes. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdInitializeE2 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
This function initializes the reader IC EEPROM with factory values.
First the function initializes the registers of the reader IC with RC500 factory default values. After reading back the product ID of the reader IC, all factory default values are written to the EEPROM.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_ReadWord | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint32_t | address, | ||
| uint16_t * | value | ||
| ) |
The function reads data from memory address space word aligned.
If an odd address is passed to this function, the address will be converted to the next lower even address and the two byte data will be returned.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | address | [In] Address to read from. |
| [out] | value | [Out] Pointer to a variable, where the 16 bit word read data will be stored. |
| phStatus_t phhalHw_Rd70x_Cmd_PcdGetSnr | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | snr | ||
| ) |
The function reads out a 4 bytes serial number of the used reader IC.
The serial number is unique for all delivered reader ICs.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [out] | snr | [Out] Pointer to 4-byte buffer, where the serian number will stored. |
| phStatus_t phhalHw_Rd70x_Cmd_SwitchLED | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | onoff | ||
| ) |
The function controls the 5 LEDs situated in the middle of the antenna.
The onoff parameter defines the state of the LEDs. 0 - All LEDs are Off != 0 - All LEDs are On 255 - LEDs are ON and flash during command execution.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | onoff | [In] LEDs control |
| phStatus_t phhalHw_Rd70x_Cmd_DbgTrigger | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | enableTrigger | ||
| ) |
The function initializes port pin for a trigger(debug) or a release mode.
In trigger(debug) mode two ports are served - Port P2.1 is high during ISR execution and port P6.3 is high during the command processing.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | enableTrigger | [In] The ports P2.1 and P6.3 are triggered high according to the program execution. |
| phStatus_t phhalHw_Rd70x_Cmd_I1PcdConfig | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function configures the reader IC for ICode mode.
It performs also reader IC reset and 10[ms] reset of the HF.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Interface error. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_I1PcdRfReset | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint16_t | ms | ||
| ) |
The function performs a HF reset.
The HF is kept-off for the indicated time of miliseconds.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | ms | [In] miliseconds to keep the HF-off. |
| phStatus_t phhalHw_Rd70x_Cmd_I2init_StdMode_15693 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function initializes the reader IC to ISO15693 standard mode "1 out of 256 coding".
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_I2init_FastMode_15693 | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function initializes reader IC to fast mode "1 out of 256 coding".
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Read_Sm | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint8_t | nbl, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the READ SINGLE BLOCK and READ MULTIPLE BLOCK commands.
If the number of blocks is equal 0 or 1, the READ SINGLE BLOCK command is used, otherwise the READ MULTIPLE BLOCK one. The first byte in the response buffer contains the status byte followed by the read block data.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] UID of the VICC to read from. |
| [in] | blnr | [In] Block address, where the read operation starts. |
| [in] | nbl | [In] Number of blocks to read. This value is decreased by 1 in the FW in order to comply with the ISO15683-3 standard. |
| [out] | resplen | [Out] Pointer to the length of the response buffer |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Inventory | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | AFI, | ||
| uint8_t | masklengh, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 INVENTORY command.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | AFI | [In] Application family identifier, optional and dependent on flags settings |
| [in] | masklengh | [In] Length of mask in number of valid bits. |
| [in] | uid | [In] Pointer to a buffer holding an UID inventory operation mask. |
| [out] | resplen | [Out] Pointer to the length of the response buffer |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Write_Sm | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint8_t | nbl, | ||
| uint8_t * | data, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the WRITE SINGLE BLOCK and WRITE MULTIPLE BLOCK commands.
The number of blocks parameter nbl decides if a WRITE SINGLE BLOCK or WRITE MULTIPLE BLOCK command is used. If the command is successful the response buffer contains the FW function exit status and the 'flags' byte returned by the VICC. Otherwise the response buffer contains the FW function exit status only. return Status code
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | blnr | [In] Block address, where the write operation starts. |
| [in] | nbl | [In] Number of blocks to write. This value is decreased by 1 in the FW in order to comply with the ISO15683-3 standard. |
| [in] | data | [In] Pointer to a buffer holding the write data. |
| [out] | resplen | [Out] Pointer to the length of the response buffer |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Stay_Quiet | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 STAY QUIET command.
| PH_ERR_IO_TIMEOUT | The command is successfully executed. The VICC is in quite state. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte including the OPTION_flag according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Lock_Block | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 LOCK BLOCK command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No VICC is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | blnr | [In] Block address, of the block to be locked. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Select | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 SELECT command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No VICC is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3, 'Address_flag'=1 and 'Select_flag'=0. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Reset_To_Ready | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 RESET TO READY command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Write_AFI | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | AFI, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 WRITE_AFI command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | AFI | [In] Application Family ID that shall be written in the VICC::S memory. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Lock_AFI | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 LOCK_AFI command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Write_DSFID | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | DSFID, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 WRITE DSFID command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | DSFID | [In] 'Data storage format identifier' byte to be writen. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Lock_DSFID | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 LOCK DSFID command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Get_System_Information | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 GET SYSTEM INFORMATION command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Get_Multiple_Block_Security | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint8_t | nbl, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the ISO15693-3 GET MULTIPLE BLOCK SECURITY STATUS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | blnr | [In] Block address, where the operation starts. |
| [in] | nbl | [In] Number of blocks. This value is decreased by 1 in the FW |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Inventory_Read | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t | AFI, | ||
| uint8_t | masklengh, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint8_t | nbl, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom INVENTORY READ command for VICCs with SLI tiype.
Dependent on 'Number of time slots' flag, in the 'Flags' byte the command is executed for 1 or 16 time slots.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to VICC specification. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | AFI | [In] Application Family ID byte,which is available only if 'AFI_flag' is set in the 'Flags' byte. |
| [in] | masklengh | [In] Length of UID mask in number of valid bits. |
| [in] | uid | [In] Pointer to a buffer holding an UID mask. |
| [in] | blnr | [In] Block address, where the read operation starts. |
| [in] | nbl | [In] Number of blocks to read from the inventorized VICCs. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Fast_Inventory_Read | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t | AFI, | ||
| uint8_t | masklengh, | ||
| uint8_t * | uid, | ||
| uint8_t | blnr, | ||
| uint8_t | nbl, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom FAST INVENTORY READ command for VICCs with SLI tiype.
Dependent on 'Number of time slots' flag, in the 'Flags' byte the command is executed for 1 or 16 time slots.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | AFI | [In] Application Family ID byte,which is available only if 'AFI_flag' is set in the 'Flags' byte. |
| [in] | masklengh | [In] Length of UID mask in number of valid bits. |
| [in] | uid | [In] Pointer to a buffer holding an mask UID. |
| [in] | blnr | [In] Block address, where the read operation starts. |
| [in] | nbl | [In] Number of blocks to read from the inventorized VICCs. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Set_Eas | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom SET EAS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Reset_Eas | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom RESET EAS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Lock_Eas | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t * | uid, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom LOCK EAS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_Eas_Alarm | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | flags, | ||
| uint8_t | ManCode, | ||
| uint8_t * | uid, | ||
| uint8_t | bEAS_ID_MaskLength, | ||
| uint8_t * | pbEAS_ID, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the custom EAS ALARM command.
After a successful command execution the response buffer containd the EAS sequence or the EAS ID, depending on the 'Option_flag' and the EAS ID length.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | flags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | ManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | uid | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bEAS_ID_MaskLength | [In] EAS ID length - indicates how many bits of the following EAS ID data are valid. Multiple of 8, i.e. 0, 8 or 16. |
| [in] | pbEAS_ID | [In] Pointer to a buffer holding the EAS ID used to select the VICCs, which are to response with the EAS sequence. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_EPCPcdConfig | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function configures the reader IC for EPC mode.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_EPCBeginRound | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | mask, | ||
| uint8_t | masklength, | ||
| uint8_t | nbrslots, | ||
| uint8_t | hash, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the EPC BEGIN ROUND command.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | mask | [In] Pointer to a buffer holding a selction mask. Specifies the bits to be compared with ICODE EPC data in the selection process. |
| [in] | masklength | [In] Number of valid bits in the selection mask. |
| [in] | nbrslots | [In] Number of slots coded according the ICODE EPC specification. |
| [in] | hash | [In] Hash value used by the ICODE EPC to generate random time slot positions. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_EPCWrite | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | blnr, | ||
| uint8_t | data | ||
| ) |
The function executes the EPC WRITE command.
It writes a byte data into the ICODE EPC memory. The ICODE EPC specified CRC8 parameter for this command is calculated by the RWD.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Invalid parameter. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | blnr | [In] Address, where the write operation starts. |
| [in] | data | [In] Data to be written at the indicated write address. |
| phStatus_t phhalHw_Rd70x_Cmd_EPCDestroy | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | epc, | ||
| uint8_t * | destroy_code | ||
| ) |
The function executes the EPC DESTROY command.
When executed it renders the ICODE EPC label permanently unable to give any replies. The ICODE EPC specified CRC8 parameter for this command is calculated by the RWD.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | epc | [In] Pointer to a buffer holding a 12 bytes of EPC data. |
| [in] | destroy_code | [In] Pointer to a buffer holding a 3 bytes of destroy code. |
| phStatus_t phhalHw_Rd70x_Cmd_UIDPcdConfig | ( | phhalHw_Rd70x_DataParams_t * | pDataParams | ) |
The function configures the reader IC for UID mode.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| phStatus_t phhalHw_Rd70x_Cmd_UIDBeginRound | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | mask, | ||
| uint8_t | masklength, | ||
| uint8_t | nbrslots, | ||
| uint16_t * | resplen, | ||
| uint8_t * | resp | ||
| ) |
The function executes the UID BEGIN ROUND command.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | mask | [In] Pointer to a buffer holding a selction mask. Specifies the bits to be compared with ICODE EPC data in the selection process. |
| [in] | masklength | [In] Number of valid bits in the selection mask. |
| [in] | nbrslots | [In] Number of slots coded according the ICODE UID specification. |
| [out] | resplen | [Out] Pointer to the length of the response buffer. |
| [out] | resp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_UIDWrite | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | blnr, | ||
| uint8_t | data | ||
| ) |
The function executes the EPC WRITE command.
It writes a byte data into the ICODE UID memory. The ICODE UID specified CRC8 parameter for this command is calculated by the RWD.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTERNAL_ERROR | Invalid parameter. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | blnr | [In] Address, where the write operation starts. |
| [in] | data | [In] Data to be written at the indicated write address. |
| phStatus_t phhalHw_Rd70x_Cmd_UIDDestroy | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t * | idd, | ||
| uint8_t * | destroy_code | ||
| ) |
The function executes the UID DESTROY command.
When executed it renders the ICODE UID label permanently unable to give any replies. The ICODE UID specified CRC8 parameter for this command is calculated by the RWD.
| PH_ERR_SUCCESS | Command is successfully executed. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | idd | [In] Pointer to a buffer holding a 19 bytes of Identifier data(IDD) data. |
| [in] | destroy_code | [In] Pointer to a buffer holding a 3 bytes of destroy code. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_PwdProtectEAS | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom PASSWORD PROTECT EAS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_WriteEAS_ID | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t | wEAS_ID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom WRITE EAS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | wEAS_ID | [In] 16 bits of the EAS ID to be written to the VICC' memory. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_ReadEPC | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom READ EPC command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. EPC data |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_GetRandomNumber | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom GET RANDOM NUMBER command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_SetPwd | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bPwdID, | ||
| uint8_t * | pbPwd, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom GET PASSWORD command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bPwdID | [In] Rassword ID. Indicates the type of the password to be set. |
| [in] | pbPwd | [In] Pointer to a buffer holding 4 bytes of XOR password |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_WritePwd | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bPwdID, | ||
| uint8_t * | pbPwd, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom WRITE PASSWORD command.
It writes in the VICC's memory the submitted password. The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bPwdID | [In] Rassword ID. Indicates the type of the password to be written. |
| [in] | pbPwd | [In] Pointer to a buffer holding 4 bytes of password to be written. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_LockPWD | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bPWD_ID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom LOCK PASSWORD command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bPWD_ID | [In] Rassword ID. Indicates the type of the password to be locked. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_64BitPWDProtection | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom 64 BIT PASSWORD PROTECTION command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_ProtectPage | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bPageNo, | ||
| uint8_t | bProtectionStatus, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom PROTECT PAGE command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bPageNo | [In] Page number from the VICC's memory that shall be protected. |
| [in] | bProtectionStatus | [In] Protection status that shall be set. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_LockPageProtectionCondition | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bPageNo, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom LOCK PAGE PROTECTION CONDITIONS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bPageNo | [In] Page number from the VICC's memory, whose protection coditions shall be locked. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_DestroyS | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom DESTROY SLI-S command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_InventoryReadS | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t | bAFI, | ||
| uint8_t | bMaskLen, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bBlockNo, | ||
| uint8_t | bNoOfBlocks, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom INVENTORY PAGE READ command for VICCs with SLI-S tiype.
Dependent on 'Number of time slots' flag, in the 'Flags' byte the command is executed for 1 or 16 time slots.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | bAFI | [In] Application Family ID byte,which is available only if 'AFI_flag' is set in the 'Flags' byte. |
| [in] | bMaskLen | [In] Length of UID mask in number of valid bits. |
| [in] | pbUID | [In] Pointer to a buffer holding an UID mask. |
| [in] | bBlockNo | [In] Address of the first pages, where the reading operation shall start. |
| [in] | bNoOfBlocks | [In] Number of pages that shall be read from the inventorized VICCs |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_FastInventoryReadS | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t | bAFI, | ||
| uint8_t | bMaskLen, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bBlockNo, | ||
| uint8_t | bNoOfBlocks, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom FAST INVENTORY PAGE READ command for VICCs with SLI-S tiype.
Dependent on 'Number of time slots' flag, in the 'Flags' byte the command is executed for 1 or 16 time slots.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | bAFI | [In] Application Family ID byte,which is available only if 'AFI_flag' is set in the 'Flags' byte. |
| [in] | bMaskLen | [In] Length of UID mask in number of valid bits. |
| [in] | pbUID | [In] Pointer to a buffer holding an UID mask. |
| [in] | bBlockNo | [In] Page address, where the read operation starts. |
| [in] | bNoOfBlocks | [In] Number of pages to read from the inventorized VICCs. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_GetMultipleBlockProtStatus | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint8_t | bFirstBlock, | ||
| uint8_t | bNoOfBlocks, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom GET MULTIPLE BLOCK PROTECTION CONDITIONS command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [in] | bFirstBlock | [In] Block address, where the write operation starts. |
| [in] | bNoOfBlocks | [In] Number of blocks, which protection status shall be returned. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |
| phStatus_t phhalHw_Rd70x_Cmd_ISO15693_EnablePrivacy | ( | phhalHw_Rd70x_DataParams_t * | pDataParams, |
| uint8_t | bFlags, | ||
| uint8_t | bManCode, | ||
| uint8_t * | pbUID, | ||
| uint16_t * | pwRespLen, | ||
| uint8_t * | pbResp | ||
| ) |
The function executes the custom ENABLE PRIVACY command.
The response buffer contains the return status byte of the FW fuction followed by the bytes received from VICC.
| PH_ERR_SUCCESS | Command is successfully executed. |
| PH_ERR_INTEGRITY_ERROR | CRC or parity error. |
| PH_ERR_FRAMING_ERROR | Framing error occured during the transmit/recive operation. |
| PH_ERR_IO_TIMEOUT | No tag is present in the HF of the reader. |
| Other | Invalid parameters or conditions - the error status is returned by an underlayed function. |
| [in] | pDataParams | [In] Pointer to an initialized HAL parameter structure. |
| [in] | bFlags | [In] Command 'Flags' byte according to ISO15693-3. |
| [in] | bManCode | [In] 'IC Manufacturer code' of the VICC. |
| [in] | pbUID | [In] Pointer to a buffer holding the UID of the referenced VICC. |
| [out] | pwRespLen | [Out] Pointer to the length of the response buffer. |
| [out] | pbResp | [Out] Pointer to the response buffer. |