NXP Reader Library  v17.1.0.2535
Collaboration diagram for Utils:

Functions

phStatus_t phhalHw_SamAV2_HcUtils_GetCheckLcLe (uint8_t *pCmd, uint16_t wCmdLength, uint8_t *isLcPresent, uint8_t *LcLength, uint8_t *isLePresent)
 
phStatus_t phhalHw_SamAV2_HcUtils_TruncateMacBuffer (uint8_t *pIoBuffer, uint8_t *MacLength)
 Truncate a 16-Bytes MAC buffer into a 8-Bytes Buffer. More...
 
phStatus_t phhalHw_SamAV2_HcUtils_Cmd_ResolveErrorCode (uint8_t *pSw1Sw2, uint16_t wComponentID)
 Parse Status Word Sw1Sw2 from the SAM. More...
 

Detailed Description

Function Documentation

◆ phhalHw_SamAV2_HcUtils_GetCheckLcLe()

phStatus_t phhalHw_SamAV2_HcUtils_GetCheckLcLe ( uint8_t pCmd,
uint16_t  wCmdLength,
uint8_t isLcPresent,
uint8_t LcLength,
uint8_t isLePresent 
)
Parameters
[in]pCmd[In]: address of buffer that contains the command.
[in]wCmdLength[In]: length of the command.
[out]isLcPresent[Out]: LC byte presence indicator .
[out]LcLength[Out]: length of the payload of the command .
[out]isLePresent[Out]: LE byte presence indicator .

◆ phhalHw_SamAV2_HcUtils_TruncateMacBuffer()

phStatus_t phhalHw_SamAV2_HcUtils_TruncateMacBuffer ( uint8_t pIoBuffer,
uint8_t MacLength 
)

Truncate a 16-Bytes MAC buffer into a 8-Bytes Buffer.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
OtherDepending on implementation and underlaying component.
Parameters
[in]pIoBuffer[In]: The 16 bytes MAC input which should be truncated.
[out]MacLength[Out]: Truncated MAC which is 8 bytes.

◆ phhalHw_SamAV2_HcUtils_Cmd_ResolveErrorCode()

phStatus_t phhalHw_SamAV2_HcUtils_Cmd_ResolveErrorCode ( uint8_t pSw1Sw2,
uint16_t  wComponentID 
)

Parse Status Word Sw1Sw2 from the SAM.

Returns
Status code
Return values
PH_ERR_SUCCESSOperation successful.
Parameters
[in]pSw1Sw2[In] Pointer to the status code sent by the SAM.
[in]wComponentID[In] ID of the component to be added.