Hardware Abstraction Layer for FreeRTOS
buffer.h File Reference
#include <FreeRTOS.h>
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for buffer.h:

Go to the source code of this file.

Macros

#define SHARED_MAGIC   0x42424343
 
#define BUFFER_OPERATION_NOT_SUPPORTED   -1
 
#define BUFFER_NO_SPACE_LEFT   -2
 
#define BUFFER_EINVAL   -3
 

Functions

struct buffer * buffer_init (struct buffer_base *base, uint32_t len, uint32_t sizeOfEntry, bool readOnly, uint32_t irqnr)
 
int32_t buffer_deinit (struct buffer *buffer)
 
int32_t buffer_is_full (struct buffer *buffer)
 
bool buffer_empty (struct buffer *buffer)
 
int32_t buffer_write (struct buffer *buffer, uint8_t *data, int32_t size)
 
int32_t buffer_read (struct buffer *buffer, uint8_t *data, int32_t size, TickType_t waittime)