Hi All, A lot of devices have little internal fifos that are often implemented as circular buffers in the device state. Any reason to not factor that out into a helper module? Was thinkin just a struct defintion containing the key elements (the uint8_t *data buffer, head/tail pointers, capacity). and helper functions to create/destroy, put/get, test for full/empty etc. And VMSD support - which will make devices a lot cleaner if theres just one VM_STATE_FIFO instead of all these little bits of implementation detail in the device state.
Regards, Peter