SamAV3 Reader HAL.
More...
|
| phStatus_t | phhalHw_SamAV3_Init (phhalHw_SamAV3_DataParams_t *pDataParams, uint16_t wSizeOfDataParams, void *pBalDataParams, void *pReaderHalDataParams, void *pKeyStoreDataParams, void *pCryptoENCDataParams, void *pCryptoMACDataParams, void *pCryptoRngDataParams, void *pPLUpload_CryptoENCDataParams, void *pPLUpload_CryptoMACDataParams, uint8_t bOpMode, uint8_t bLogicalChannel, uint8_t *pTxBuffer, uint16_t wTxBufSize, uint8_t *pRxBuffer, uint16_t wRxBufSize, uint8_t *pPLUploadBuf) |
| | Initialise the HAL component. More...
|
| |
| phStatus_t | phhalHw_SamAV3_DetectMode (phhalHw_SamAV3_DataParams_t *pDataParams) |
| | Detect UID, AV2/AV3 mode and HostAuth settings. More...
|
| |
SamAV3 Reader HAL.
Also supports AV2 backwards compatibility mode.
◆ PHHAL_HW_SAMAV3_CONFIG_HOSTMODE
◆ phhalHw_SamAV3_Init()
| phStatus_t phhalHw_SamAV3_Init |
( |
phhalHw_SamAV3_DataParams_t * |
pDataParams, |
|
|
uint16_t |
wSizeOfDataParams, |
|
|
void * |
pBalDataParams, |
|
|
void * |
pReaderHalDataParams, |
|
|
void * |
pKeyStoreDataParams, |
|
|
void * |
pCryptoENCDataParams, |
|
|
void * |
pCryptoMACDataParams, |
|
|
void * |
pCryptoRngDataParams, |
|
|
void * |
pPLUpload_CryptoENCDataParams, |
|
|
void * |
pPLUpload_CryptoMACDataParams, |
|
|
uint8_t |
bOpMode, |
|
|
uint8_t |
bLogicalChannel, |
|
|
uint8_t * |
pTxBuffer, |
|
|
uint16_t |
wTxBufSize, |
|
|
uint8_t * |
pRxBuffer, |
|
|
uint16_t |
wRxBufSize, |
|
|
uint8_t * |
pPLUploadBuf |
|
) |
| |
Initialise the HAL component.
The operation mode used is only dependend on the pReaderHalDataParams parameter.
If it's value is NULL X-Mode operation is performed, otherwise the HAL operates in Non-X Mode.
Non-X Mode Specific: It is not neccessary to do any (non-specific) calls to the linked Reader-HAL except an Init(),
the SamAV3 HAL will take over complete control of the linked Reader.
Specific initialisation like PHHAL_HW_CONFIG_BAL_CONNECTION or PHHAL_HW_CONFIG_SERIAL_BITRATE etc. though may be neccessary depending on the used HAL.
- Returns
- Status code
- Return values
-
| PH_ERR_SUCCESS | Operation successful. |
| Other | Depending on implementation and underlaying component. |
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |
| [in] | wSizeOfDataParams | [In] Specifies the size of the data parameter structure. |
| [in] | pBalDataParams | [In] Pointer to the lower layers parameter structure. |
| [in] | pReaderHalDataParams | [In] Pointer to a Reader-HAL in Non-X Mode. Can be NULL if X-Mode is intended. |
| [in] | pKeyStoreDataParams | [In] Pointer to the KeyStore used for Host Authentication. |
| [in] | pCryptoENCDataParams | [In] Pointer to the ENC crypto layers parameter structure. |
| [in] | pCryptoMACDataParams | [In] Pointer to the MAC crypto layers parameter structure. |
| [in] | pCryptoRngDataParams | [In] Pointer to the parameter structure of the CryptoRng layer. |
| pPLUpload_CryptoENCDataParams | Pointer to the ENC crypto layers parameter structure. This will be used for ProgrammableLogic feature only. |
| pPLUpload_CryptoMACDataParams | Pointer to the MAC crypto layers parameter structure. This will be used for ProgrammableLogic feature only. |
| [in] | bOpMode | [In] The desired operation mode
|
| [in] | bLogicalChannel | [In] The desired logical channel for this HAL. |
| [in] | pTxBuffer | [In] Pointer to global transmit buffer. |
| [in] | wTxBufSize | [In] Size of the global transmit buffer. |
| [in] | pRxBuffer | [In] Pointer to global receive buffer. |
| [in] | wRxBufSize | [In] Size of the global receive buffer. |
| [in] | pPLUploadBuf | [In] Pointer to global PLUpload buffer. |
◆ phhalHw_SamAV3_DetectMode()
Detect UID, AV2/AV3 mode and HostAuth settings.
- Returns
- Status code
- Return values
-
- Parameters
-
| [in] | pDataParams | [In] Pointer to this layer's parameter structure. |