fix mptp packet graphic, fix formatting

This commit is contained in:
ngn 2024-06-21 01:39:53 +03:00
parent 82cbd147b2
commit e773ff7f09
2 changed files with 33 additions and 29 deletions

View File

@ -1,18 +1,20 @@
#pragma once #pragma once
#include <stdint.h>
#include "types.h" #include "types.h"
#include <stdint.h>
// clang-format off
/* /*
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7
##################################### ###############
# FLAGS # # FLAGS #
##################################### ###############
# SIZE # # SIZE #
# # # #
##################################### ###############
# DATA # # DATA #
#...................................# #.............#
[8 bits] FLAGS [8 bits] FLAGS
--------------------------------------------------------- ---------------------------------------------------------
@ -57,6 +59,8 @@
*/ */
// clang-format on
#define MPTP_VERSION_SUPPORTED 0 #define MPTP_VERSION_SUPPORTED 0
#define MPTP_VERSION_MAX 15 // 4 bits #define MPTP_VERSION_MAX 15 // 4 bits
#define MPTP_CODE_MAX 4 // 2 bits #define MPTP_CODE_MAX 4 // 2 bits