refactoring meterbus

This commit is contained in:
2020-11-24 14:47:21 +01:00
parent 0397d61e56
commit a9b71f481a
3 changed files with 21 additions and 8 deletions

View File

@ -16,6 +16,7 @@ void ringbufferInit(ringbuffer_t *handle, uint32_t bufferSize);
void ringbufferFree(ringbuffer_t *handle);
int ringbufferPut(ringbuffer_t *handle, uint8_t *data, uint32_t dataLen);
int ringbufferPutOne(ringbuffer_t *handle, uint8_t data);
bool ringbufferEmpty(ringbuffer_t *handle);
int ringbufferGetOne(ringbuffer_t *handle); // if positive, cast to uint8_t and be happy, if negative error