WM Block Transfer Protocol API Function List (WBT)

Initialization

WBT_InitParent Initializes the library as a wireless parent device.
WBT_InitChild Initializes the library as a wireless child device.
WBT_End Ends the library.

Common

WBT_AidbitmapToAid Converts the lowest bit of an AID bitmap to an AID.
WBT_AidToAidbitmap Converts an AID to an AID bitmap.
WBT_GetOwnAid Gets the AID set in self.
WBT_CalcPacketbitmapSize Gets the bitmap buffer size necessary to receive data.
WBT_GetCurrentDownloadProgress Gets the progress status of the current reception.
WBT_NumOfRegisteredBlock Gets the total number of data blocks currently registered.
WBT_RegisterBlock Registers data blocks.
WBT_UnregisterBlock Releases registered data blocks.
WBT_PrintBTList Debug outputs the current WBT internal status.

Parent Device Settings

WBT_SetPacketSize Resets the MP communication packet size that can be used with WBT.
WBT_MpParentSendHook Generates the WBT protocol packet data that should be sent with MP communication.
WBT_MpParentRecvHook Notifies the WBT of WBT protocol packet data received with MP communication.

Child Device Settings

WBT_SetOwnAid Notifies the WBT of its own AID.
WBT_MpChildSendHook Generates the WBT protocol packet data that should be sent with MP communication.
WBT_MpChildRecvHook Notifies the WBT of WBT protocol packet data received with MP communication.

Commands

WBT_RequestSync Synchronizes the communication status.
WBT_GetBlockInfo Gets the data block information registered by the other party.
WBT_GetBlock Gets the data block registered by the other party.
WBT_PutUserData Sends optional small-sized data to the other party.
WBT_CancelCurrentCommand Stops the WBT command that is being issued.

Constants and Macros

WBT_NUM_MAX_BLOCK_INFO_ID The maximum number of data blocks that can be registered at the same time.
WBT_BLOCK_ID_MIN The minimum value for IDs that can be registered as data blocks.
WBT_PACKET_SIZE_MIN The minimum value for MP communication packet sizes to be set in the WBT library.
WBT_USER_ID_LEN The maximum size of user-specific information that can be given to the registered block information.
WBT_SIZE_USER_DATA The maximum size of data that can be sent with the WBT_PutUserData function.
WBTResult The enumerated type that expresses the WBT library command result.
WBTCommandType The enumerated type that expresses the command type that notifies the WBT callback.
WBT_PACKET_BITMAP_SIZE Calculates the necessary reception bitmap buffer size from the packet size and data size.
WBT_AID_* Macro group for the AID.

Structure

WBTCallback Format for WBT library callback functions.
WBTCommand Structure for information passed to WBT library callbacks.
WBTBlockInfo Structure that expresses registered block information.
WBTBlockInfoList Structure that expresses list elements used in data block registration.
WBTBlockInfoTable Table that manages pointers to where registered block information requested by other parties is stored.
WBTPacketBitmapTable Table that manages the pointers to bitmap buffers to manage the reception progress of data requested by other parties.
WBTRecvBufTable Table that manages pointers to where data reception requested by other parties is stored.
WBTRequestSyncCallback Structure passed when the callback completes.
See the WBTCommandType function for details.
WBTGetBlockDoneCallback
WBTPrepareSendDataCallback
WBTRecvUserDataCallback
WBTGetBlockCallback