| Crates.io | pingpong |
| lib.rs | pingpong |
| version | 0.0.1 |
| created_at | 2021-05-23 13:42:40.365978+00 |
| updated_at | 2021-05-23 13:42:40.365978+00 |
| description | A pingpong double buffer for embedded and no_std applications |
| homepage | |
| repository | https://github.com/ostenning/pingpong |
| max_upload_size | |
| id | 401111 |
| size | 9,412 |
A ping-pong buffer implementation for embedded Rust applications
Ping-pong or double buffering is a mechanism for allowing a data stream to be written to one buffer whilst data is read from the other in a fashion that the read and write operations do not collide. This library is a simple implementation of this idea and is a work in progress. I am currently using it for buffering data streams originating from SDMMC controllers on embedded platforms, but it could be used for other things.