#include <nitro/wbt.h>#define WBT_PACKET_BITMAP_SIZE(block_size, packet_size) \
(((((block_size) + ((packet_size) - WBT_PACKET_SIZE_MIN) - 1)/((packet_size) - WBT_PACKET_SIZE_MIN)) + 31 )/sizeof(u32)) * sizeof(u32)Calculates the size of the bitmap buffer for receive history records. This buffer must be of a certain size required for the reception processing done by the WBT_GetBlock function. Use this function when securing a static buffer during compile.
The size needed for the bitmap buffer for receive history records depends on the communication packet size, so use the WBT_CalcPacketbitmapSize function to return the size dynamically at run time.
The details of each argument are as follows.
block_size |
Data block size to receive. |
packet_size |
MP communication packet size allocated to WBT during execution. |
WBT_CalcPacketbitmapSize
WBT_GetBlock
2005/02/18 Changed description of packet bitmap to "receive archive record bitmap buffer."
2004/09/21 Initial version.
CONFIDENTIAL