|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

结构体 | |
| struct | Ringbuf |
枚举 | |
| enum | RingbufStatus { RBUF_UNINIT , RBUF_INITED } |
| enum | RingbufFlag { RBUF_NORMAL , RBUF_OVERWRITE } |
函数 | |
| UINT32 | LOS_RingbufInit (Ringbuf *ringbuf, CHAR *fifo, UINT32 size, RingbufFlag flag) |
| Init a ringbuf. | |
| void | LOS_RingbufReset (Ringbuf *ringbuf) |
| Reset a ringbuf. | |
| UINT32 | LOS_RingbufWrite (Ringbuf *ringbuf, const CHAR *buf, UINT32 size) |
| Write data to ringbuf. | |
| UINT32 | LOS_RingbufRead (Ringbuf *ringbuf, CHAR *buf, UINT32 size) |
| Read data from ringbuf. | |
| UINT32 | LOS_RingbufPeek (Ringbuf *ringbuf, CHAR *buf, UINT32 size) |
| Read data from ringbuf but does not consume the data. | |
| UINT32 | LOS_RingbufUsedSize (Ringbuf *ringbuf) |
| Get a ringbuf's used size. | |
| enum RingbufFlag |
| enum RingbufStatus |
|
extern |
Init a ringbuf.
| ringbuf | [OUT] Ringbuf control block. |
| fifo | [IN] Data buf address. |
| size | [IN] Data buf size. |
| flag | [IN] Data buf flag. |
Read data from ringbuf but does not consume the data.
| ringbuf | [IN] The ringbuf read data from. |
| buf | [OUT] The dest buf address. |
| size | [IN] The dest buf size. |
| UINT32 | The actual read size. |
Read data from ringbuf.
| ringbuf | [IN] The ringbuf read data from. |
| buf | [OUT] The dest buf address. |
| size | [IN] The dest buf size. |
| UINT32 | The actual read size. |
|
extern |
Reset a ringbuf.
| ringbuf | [IN] Ringbuf created by LOS_RingbufInit. |
| None. |
Get a ringbuf's used size.
| ringbuf | [IN] The ringbuf address |
| UINT32 | The used size of ringbuf. |
Write data to ringbuf.
| ringbuf | [IN] The ringbuf write data to. |
| buf | [IN] The source buf address. |
| size | [IN] The source buf size. |
| UINT32 | The actual written size. |