Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Packet drawings, allow bit count as well as start-end #5978

Open
BryanCrotazGivEnergy opened this issue Oct 18, 2024 · 0 comments
Open

In Packet drawings, allow bit count as well as start-end #5978

BryanCrotazGivEnergy opened this issue Oct 18, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@BryanCrotazGivEnergy
Copy link

BryanCrotazGivEnergy commented Oct 18, 2024

Proposal

Mermaid packet format insists on bit start -> bit end. This makes it very difficult to change your mind while generating a packet diagram, eg increasing one field from 16-32 bit.

As well as supporting
<s>-<e>: "name"
where s is the start bit and e is the end bit

Also support
<s>-<b>bits: "name"
<s>-1bit: "name"
where s is the start bit, b is a bit count

Short form is the most valuable
<b>bits: "name" follows on automatically from the previous bit. If this is the first field, it's assumed to start at bit 0.

Example

```mermaid
8bits: "Message Id"
16bits: "From Id"
32bits: "Command Data"
1bit: "write flag"
7bits: "reserved"
64-8bits: "new data"
```

Screenshots

No response

@BryanCrotazGivEnergy BryanCrotazGivEnergy added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant