@@ -64,7 +64,7 @@ typedef struct {
64
64
/* **** Function Declarations **** */
65
65
66
66
/**
67
- * @breif Initializes the circular buffer context.
67
+ * @brief Initializes the circular buffer context.
68
68
*
69
69
* The max number of elements in the circular buffer is
70
70
* (buf_size / element_size) - 1.
@@ -85,7 +85,7 @@ void CircularBufferInit(CircularBufferContext *ctx, void *buf, size_t buf_size,
85
85
size_t element_size );
86
86
87
87
/**
88
- * @breif Removes all elements from the circular buffer.
88
+ * @brief Removes all elements from the circular buffer.
89
89
*
90
90
* Asserts if:
91
91
* 'ctx' is NULL.
@@ -95,7 +95,7 @@ void CircularBufferInit(CircularBufferContext *ctx, void *buf, size_t buf_size,
95
95
void CircularBufferClear (CircularBufferContext * ctx );
96
96
97
97
/**
98
- * @breif Adds an new element to the end of the buffer. The "val" content is
98
+ * @brief Adds an new element to the end of the buffer. The "val" content is
99
99
* copied to the element.
100
100
*
101
101
* Asserts if:
@@ -109,7 +109,7 @@ void CircularBufferClear(CircularBufferContext *ctx);
109
109
int32_t CircularBufferPushBack (CircularBufferContext * ctx , const void * val );
110
110
111
111
/**
112
- * @breif Removes the first element from the buffer. Copies the element content
112
+ * @brief Removes the first element from the buffer. Copies the element content
113
113
* to the "val" destination.
114
114
*
115
115
* Asserts if:
@@ -125,7 +125,7 @@ int32_t CircularBufferPushBack(CircularBufferContext *ctx, const void *val);
125
125
int32_t CircularBufferPopFront (CircularBufferContext * ctx , void * val );
126
126
127
127
/**
128
- * @breif Peeks the "num" element from the buffer.
128
+ * @brief Peeks the "num" element from the buffer.
129
129
*
130
130
* The "num" argument shall be less than the number of elements added to the
131
131
* buffer.
@@ -139,11 +139,10 @@ int32_t CircularBufferPopFront(CircularBufferContext *ctx, void *val);
139
139
* @return 0 if success, -1 or NULL buffer is empty or the
140
140
* 'num' is out of bounds.
141
141
*/
142
- int32_t CircularBufferPeek (const CircularBufferContext * ctx , size_t num ,
143
- void * * elem );
142
+ int32_t CircularBufferPeek (const CircularBufferContext * ctx , size_t num , void * * elem );
144
143
145
144
/**
146
- * @breif Gets the number of added elements in the buffer.
145
+ * @brief Gets the number of added elements in the buffer.
147
146
*
148
147
* Asserts if:
149
148
* 'ctx' is NULL.
@@ -154,7 +153,7 @@ int32_t CircularBufferPeek(const CircularBufferContext *ctx, size_t num,
154
153
size_t CircularBufferSize (const CircularBufferContext * ctx );
155
154
156
155
/**
157
- * @breif Gets the number of free elements in the buffer.
156
+ * @brief Gets the number of free elements in the buffer.
158
157
*
159
158
* Asserts if:
160
159
* 'ctx' is NULL.
@@ -165,7 +164,7 @@ size_t CircularBufferSize(const CircularBufferContext *ctx);
165
164
size_t CircularBufferSpace (const CircularBufferContext * ctx );
166
165
167
166
/**
168
- * @breif Checks if the buffer is empty.
167
+ * @brief Checks if the buffer is empty.
169
168
*
170
169
* Asserts if:
171
170
* 'ctx' is NULL.
0 commit comments