|
|
@@ -1168,6 +1168,7 @@ TOOLKIT_API int bus_endpt_poll(bus_endpt_t* endpt, int timeout)
|
|
|
if (rc > 0) {
|
|
|
if (result == BUS_RESULT_DATA) {
|
|
|
bus_endpt_recv_pkt(endpt, &epid, &type, &pkt);
|
|
|
+ WLog_INFO(TAG, "bus_endpt_recv_pkt BUS_RESULT_DATA, epid:%d, type:0x%08X", epid, type);
|
|
|
if (endpt->callback.on_pkt)
|
|
|
endpt->callback.on_pkt(endpt, epid, type, &pkt, endpt->callback.user_data);
|
|
|
if (pkt)
|
|
|
@@ -1175,6 +1176,7 @@ TOOLKIT_API int bus_endpt_poll(bus_endpt_t* endpt, int timeout)
|
|
|
}
|
|
|
else if (result == BUS_RESULT_INFO) {
|
|
|
bus_endpt_recv_pkt(endpt, &epid, &type, &pkt);
|
|
|
+ WLog_INFO(TAG, "bus_endpt_recv_pkt BUS_RESULT_INFO, epid:%d, type:0x%08X", epid, type);
|
|
|
if (endpt->callback.on_inf)
|
|
|
endpt->callback.on_inf(endpt, epid, type, &pkt, endpt->callback.user_data);
|
|
|
if (pkt)
|
|
|
@@ -1182,6 +1184,7 @@ TOOLKIT_API int bus_endpt_poll(bus_endpt_t* endpt, int timeout)
|
|
|
}
|
|
|
else if (result == BUS_RESULT_EVENT) {
|
|
|
bus_endpt_recv_evt(endpt, &epid, &type, &pkt);
|
|
|
+ WLog_INFO(TAG, "bus_endpt_recv_pkt BUS_RESULT_EVENT, epid:%d, type:0x%08X", epid, type);
|
|
|
if (endpt->callback.on_evt)
|
|
|
endpt->callback.on_evt(endpt, epid, type, &pkt, endpt->callback.user_data);
|
|
|
if (pkt)
|
|
|
@@ -1189,12 +1192,14 @@ TOOLKIT_API int bus_endpt_poll(bus_endpt_t* endpt, int timeout)
|
|
|
}
|
|
|
else if (result == BUS_RESULT_SYSTEM) {
|
|
|
bus_endpt_recv_sys(endpt, &epid, &state);
|
|
|
+ WLog_INFO(TAG, "bus_endpt_recv_pkt BUS_RESULT_SYSTEM, epid:%d, state:%d", epid, state);
|
|
|
if (endpt->callback.on_sys)
|
|
|
endpt->callback.on_sys(endpt, epid, state, endpt->callback.user_data);
|
|
|
}
|
|
|
else if (result == BUS_RESULT_MSG) {
|
|
|
msg_t* msg = NULL;
|
|
|
bus_endpt_recv_msg(endpt, &msg);
|
|
|
+ WLog_INFO(TAG, "bus_endpt_recv_pkt BUS_RESULT_MSG, type:0x%08X", msg->type);
|
|
|
if (endpt->callback.on_msg) {
|
|
|
endpt->callback.on_msg(endpt, msg->type, msg->nparam, msg->params,
|
|
|
msg->evt ? &msg->evt_result : NULL,
|