GitHunt

Multitype Ring Buffer (Circular Buffer) Library for STM32


Please Do not Forget to get STAR, DONATE and support me on social networks. Thank you. ๐Ÿ’–



Caution

This Library using malloc(), Please increase the Heap Size.



Watch the Video:

Video

#include "rbuf.h"
.
.
.
int main(void)
{
  .
  .
  .
  uint8_t wdata = 5, rdata;
  RBUF_HandleTypeDef* rbuf = RBUF_Init(sizeof(uint8_t), 16);
  RBUF_Push(&rbuf, &wdata);
  RBUF_Pop(&rbuf, &rdata);
}