3.1.4.14 ICM_GetTransferSize Function

C

uint32_t ICM_GetTransferSize(size_t bytes);

Summary

Gets the transfer size in blocks of 512 bits.

Description

Converts the bytes parameter in blocks of 512 bits. This transfer size value helps to configure secondary lists.

Precondition

None.

Parameters

ParametersDescription
bytesTransfer size in bytes of the data to process

Returns

Transfer Size in blocks of 512 bits.

Example

ICM_REGION_DESCRIPTOR *pRegionDescriptor;
ICM_SECONDARY_LIST icmSecList;

pRegionDescriptor = ICM_GetRegionDescriptor (ICM_REGION_0);
pRegionDescriptor->secondaryList = &icmSecList;
icmSecList.startAddress = (uint32_t)appMessageSHA1Sec;
icmSecList.transferSize = ICM_GetTransferSize(sizeof(appMessageSHA1Sec));
icmSecList.nextAddress = 0;

Remarks

None.