Skip to content

Use a little bit of type state to reduce overhead and panics - #5

Merged
felipebalbi merged 1 commit into
felipebalbi:mcxa/i2cfrom
jamesmunns:mcxa/i2c
Feb 13, 2026
Merged

felipebalbi merged 1 commit into
felipebalbi:mcxa/i2cfrom
jamesmunns:mcxa/i2c

Conversation

@jamesmunns

Copy link
Copy Markdown

Use type state to put the "extra" DMA fields directly in the type state variable.

This allows the fields to be elided when used in blocking/async modes, and exist as non-options when used in DMA mode. This removes some size and panic overhead.

@felipebalbi
felipebalbi merged commit 7913038 into felipebalbi:mcxa/i2c Feb 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants