BLE5.2 1.0
开发文档说明
Public 属性 | 所有成员列表
ring_buffer结构体 参考

#include <ringbuffer.h>

Public 属性

uint8_t * buffer
 
ring_buffer_size_t size
 
ring_buffer_size_t tail_index
 
ring_buffer_size_t head_index
 
bool rx_lock
 

详细描述

Used as a modulo operator as a % b = (a & (b − 1)) where a is a positive index in the buffer and b is the (power of two) size of the buffer. Structure which holds a ring buffer. The buffer contains a buffer array as well as metadata for the ring buffer.

在文件 ringbuffer.h46 行定义.

类成员变量说明

◆ buffer

uint8_t* buffer

Buffer memory.

在文件 ringbuffer.h49 行定义.

◆ head_index

ring_buffer_size_t head_index

Index of head.

在文件 ringbuffer.h55 行定义.

◆ rx_lock

bool rx_lock

Rx Locker.

在文件 ringbuffer.h57 行定义.

◆ size

Buffer size.

在文件 ringbuffer.h51 行定义.

◆ tail_index

ring_buffer_size_t tail_index

Index of tail.

在文件 ringbuffer.h53 行定义.


该结构体的文档由以下文件生成: