Commit 4eea74c
committed
zephyr: device: uart: irq: Add accessors for async read
The result from the async_write holds the buffer, but the fields are
private. Provide two accessors to make this result useful:
- as_slice: returns a slice of the useful part of the buffer
- into_inner: Transforms into the buffer, so it can be reused.
Signed-off-by: David Brown <[email protected]>1 parent d745eb8 commit 4eea74c
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
| |||
0 commit comments