Files
NxpNfcRdLib/.svn/pristine/4a/4ace315e3bcf227641c6b574f4e9b232a5e47555.svn-base
2024-07-08 21:03:06 +08:00

131 lines
5.2 KiB
Plaintext

/*
* Copyright (c), NXP Semiconductors Gratkorn / Austria
*
* (C)NXP Semiconductors
* All rights are reserved. Reproduction in whole or in part is
* prohibited without the written consent of the copyright owner.
* NXP reserves the right to make changes without notice at any time.
* NXP makes no warranty, expressed, implied or statutory, including but
* not limited to any implied warranty of merchantability or fitness for any
*particular purpose, or that the use will not infringe any third party patent,
* copyright or trademark. NXP must not be liable for any loss or damage
* arising from its use.
*/
/** \file
* RC663 functions of Reader Library Framework.
* $Author$
* $Revision$ (v07.10.00)
* $Date$
*
* History:
* RSn: Generated 5. March 2010
*
*/
#ifndef PHKEYSTORE_RC663_H
#define PHKEYSTORE_RC663_H
#include <ph_Status.h>
#include <phhalHw.h>
#include <phKeyStore.h>
phStatus_t phKeyStore_Rc663_FormatKeyEntry(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wNewKeyType
);
phStatus_t phKeyStore_Rc663_SetKey(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wKeyVersion,
uint16_t wKeyType,
uint8_t * pNewKey,
uint16_t wNewKeyVersion
);
phStatus_t phKeyStore_Rc663_SetKeyAtPos(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wPos,
uint16_t wKeyType,
uint8_t * pNewKey,
uint16_t wNewKeyVersion
);
phStatus_t phKeyStore_Rc663_SetKUC(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wRefNoKUC
);
phStatus_t phKeyStore_Rc663_SetFullKeyEntry(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wNoOfKeys,
uint16_t wKeyNo,
uint16_t wNewRefNoKUC,
uint16_t wNewKeyType,
uint8_t * pNewKeys,
uint16_t * pNewKeyVersionList
);
phStatus_t phKeyStore_Rc663_GetKeyEntry(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wKeyVersionBufSize,
uint16_t * wKeyVersion,
uint16_t * wKeyVersionLength,
uint16_t * pKeyType
);
phStatus_t phKeyStore_Rc663_GetKey(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wKeyNo,
uint16_t wKeyVersion,
uint8_t bKeyBufSize,
uint8_t * pKey,
uint16_t * pKeyType
);
phStatus_t phKeyStore_Rc663_SetConfig(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wConfig,
uint16_t wValue
);
phStatus_t phKeyStore_Rc663_SetConfigStr(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wConfig,
uint8_t *pBuffer,
uint16_t wBufferLength
);
phStatus_t phKeyStore_Rc663_GetConfig(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wConfig,
uint16_t * pValue
);
phStatus_t phKeyStore_Rc663_GetConfigStr(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wConfig,
uint8_t ** ppBuffer,
uint16_t * pBufferLength
);
phStatus_t phKeyStore_Rc663_ChangeKUC(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wRefNoKUC,
uint32_t dwLimit
);
phStatus_t phKeyStore_Rc663_GetKUC(
phKeyStore_Rc663_DataParams_t * pDataParams,
uint16_t wRefNoKUC,
uint32_t * pdwLimit,
uint32_t * pdwCurVal
);
#endif /* PHKEYSTORE_RC663_H */