STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
virtio_buffer_t Struct Reference

Ring buffer of bytes, filled by the rx callback and consumed by the application. More...

#include <virtio_buffer.h>

Public Attributes

uint8_t buffer [VIRTIO_BUFFER_SIZE]
 
volatile uint16_t write_index
 
volatile uint16_t read_index
 

Detailed Description

Ring buffer of bytes, filled by the rx callback and consumed by the application.

Warning
No protection against race conditions on write_index and read_index when used in interrupt.

The documentation for this struct was generated from the following file: