#include <nitro/wbt.h>
typedef struct { WBTCommandType command; WBTCommandType event; u16 target_bmp; u16 peer_bmp; WBTCommandCounter my_cmd_counter; WBTCommandCounter peer_cmd_counter; /* For debugging */ WBTResult result; WBTCallback callback; union { WBTRequestSyncCallback sync; WBTGetBlockDoneCallback blockdone; WBTPrepareSendDataCallback prepare_send_data; WBTRecvUserDataCallback user_data; WBTGetBlockCallback get; }; } WBTCommand;
A structure passed by all WBT callbacks.
The details of each member are as follows.
command | The WBTCommandType command type shows the direct cause of the callback. |
|
event | The WBTCommandType event type shows the concrete cause of the callback. |
|
target_bmp | The AID bitmap designates the unprocessed target in the callback of the command. Zero indicates the command ended for all targets. |
|
peer_bmp | The AID bitmap designates the target that caused the current callback. Only the specified bit becomes 1. |
|
result | The WBTResult value indicates the current results. |
|
my_cmd_counter | Used internally. | |
peer_cmd_counter | ||
callback | ||
The following members are valid only with suitable callbacks. | ||
sync | Stores the WBTRequestSyncCallback result information. |
|
blockdone | Stores the WBTGetBlockDoneCallback result information. |
|
prepare_send_data | Stores the WBTPrepareSendDataCallback result information. |
|
user_data | Stores the WBTRecvUserDataCallback result information. |
|
get | Stores the WBTGetBlockCallback result information. |
09/21/2004 Initial version