Home
last modified time | relevance | path

Searched refs:ring_buffer (Results 1 – 6 of 6) sorted by relevance

/device/soc/chipsea/cst85/liteos_m/sdk/modules/common/src/
Dring_buffer.c33 int ring_buffer_init(ring_buffer_t *ring_buffer, uint8_t *storage, uint32_t size) in ring_buffer_init() argument
35 if ((ring_buffer == NULL) || (storage == NULL) || (size == 0)) { in ring_buffer_init()
39 ring_buffer->storage = storage; in ring_buffer_init()
40 ring_buffer->size = size; in ring_buffer_init()
41 ring_buffer->data_size = 0; in ring_buffer_init()
42 ring_buffer->read = 0; in ring_buffer_init()
43 ring_buffer->write = 0; in ring_buffer_init()
48 int ring_buffer_deinit(ring_buffer_t *ring_buffer) in ring_buffer_deinit() argument
50 if (ring_buffer == NULL) { in ring_buffer_deinit()
54 ring_buffer->storage = NULL; in ring_buffer_deinit()
[all …]
/device/soc/chipsea/cst85/liteos_m/sdk/modules/common/api/
Dring_buffer.h50 int ring_buffer_init(ring_buffer_t *ring_buffer, uint8_t *storage, uint32_t size);
57 int ring_buffer_deinit(ring_buffer_t *ring_buffer);
64 int ring_buffer_reset(ring_buffer_t *ring_buffer);
71 int ring_buffer_empty(ring_buffer_t *ring_buffer);
78 uint32_t ring_buffer_bytes_used(ring_buffer_t *ring_buffer);
85 uint32_t ring_buffer_bytes_free(ring_buffer_t *ring_buffer);
94 int ring_buffer_write(ring_buffer_t *ring_buffer, uint8_t *data, uint32_t length);
103 int ring_buffer_read(ring_buffer_t *ring_buffer, uint8_t *buffer, uint32_t length);
115 int ring_buffer_peek(ring_buffer_t * ring_buffer, uint32_t length, uint8_t **data1, uint32_t *lengt…
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/
DBUILD.gn32 "components/libraries/ring_buffer",
56 "components/libraries/ring_buffer/ring_buffer.c",
/device/soc/chipsea/cst85/liteos_m/sdk/modules/common/
DBUILD.gn19 "src/ring_buffer.c",
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/
DCMakeLists.txt315 "audio/ring_buffer.c"
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/release/
Dsdk_src_files.txt51 components/driver/audio/ring_buffer.c