hci_dump: support iso packets via stdout

This commit is contained in:
Matthias Ringwald 2022-03-10 10:02:18 +01:00
parent 1c1afb4d65
commit 5a831baef6
3 changed files with 21 additions and 0 deletions

View File

@ -89,6 +89,13 @@ static void hci_dump_embedded_stdout_packet(uint8_t packet_type, uint8_t in, uin
printf("SCO => ");
}
break;
case HCI_ISO_DATA_PACKET:
if (in) {
printf("ISO <= ");
} else {
printf("ISO => ");
}
break;
case LOG_MESSAGE_PACKET:
printf("LOG -- %s\n", (char*) packet);
return;

View File

@ -140,6 +140,13 @@ static void hci_dump_segger_rtt_stdout_packet(uint8_t packet_type, uint8_t in, u
SEGGER_RTT_printf(0, "SCO => ");
}
break;
case HCI_ISO_DATA_PACKET:
if (in) {
SEGGER_RTT_printf(0, "ISO <= ");
} else {
SEGGER_RTT_printf(0, "ISO => ");
}
break;
default:
return;
}

View File

@ -95,6 +95,13 @@ static void hci_dump_posix_stdout_packet(uint8_t packet_type, uint8_t in, uint8_
printf("SCO => ");
}
break;
case HCI_ISO_DATA_PACKET:
if (in) {
printf("ISO <= ");
} else {
printf("ISO => ");
}
break;
case LOG_MESSAGE_PACKET:
printf("LOG -- %s\n", (char*) packet);
return;