41#ifndef __CAPTURE_BUFFER_H_
42#define __CAPTURE_BUFFER_H_
76 buffer->
buffer = malloc(size);
78 rtems_capture_buffer_flush (buffer);
84 rtems_capture_buffer_flush (buffer);
92 return buffer->
count == 0;
113 if (rtems_capture_buffer_is_empty (buffer))
120 *size = buffer->
end - buffer->
tail;
122 *size = buffer->
head - buffer->
tail;
Definition: capture_buffer.h:54
size_t head
Definition: capture_buffer.h:58
size_t max_rec
Definition: capture_buffer.h:61
size_t tail
Definition: capture_buffer.h:59
size_t count
Definition: capture_buffer.h:57
size_t size
Definition: capture_buffer.h:56
uint8_t * buffer
Definition: capture_buffer.h:55
size_t end
Definition: capture_buffer.h:60