37#ifdef LOS_CONFIG_WITHOUT_OS
41#include "los_rpqueue_bsp.h"
52#define LOS_RPQUEUE_OPTION_SYNC_MSG_SEND 0x0001U
53#define LOS_RPQUEUE_ALIGN_SIZE 8U
63#define LOS_ERRNO_RPQUEUE_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x01)
74#define LOS_ERRNO_RPQUEUE_CB_DAMAGED LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x02)
84#define LOS_ERRNO_RPQUEUE_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x03)
94#define LOS_ERRNO_RPQUEUE_WRITE_BUSY LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x04)
104#define LOS_ERRNO_RPQUEUE_BUF_EMPTY LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x05)
114#define LOS_ERRNO_RPQUEUE_BUF_NOT_ENOUGH LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x06)
124#define LOS_ERRNO_RPQUEUE_WRITE_ERROR LOS_ERRNO_OS_FATAL(LOS_MOD_RPQUEUE, 0x07)
134#define LOS_ERRNO_RPQUEUE_SIZE_TOO_SMALL LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x08)
144#define LOS_ERRNO_RPQUEUE_READ_LOCK LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x09)
154#define LOS_ERRNO_RPQUEUE_HEADER_DAMAGED LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x0A)
164#define LOS_ERRNO_RPQUEUE_INITED LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x0B)
174#define LOS_ERRNO_RPQUEUE_SIZE_TOO_LARGE LOS_ERRNO_OS_ERROR(LOS_MOD_RPQUEUE, 0x0C)
UINT32 LOS_RpqueueRecv(void *queue, LosRpqueueCallback recvDataCb)
Rpqueue data receive.
UINT32 LOS_RpqueueMaxSendSizeGet(void *queue, UINT16 *maxSendSize)
get Rpqueue current max send size.
UINT32 LOS_RpqueueInit(void *queue, UINT32 size, UINT32 option)
Rpqueue init.
UINT32 LOS_RpqueueSend(void *queue, const UINT8 *data, UINT16 len, const LosRpqueueSendCfg *cfg)
Rpqueue send message.
void(* LosRpqueueCallback)(UINT8 cmd, UINT8 *data, UINT16 len)
Definition los_rpqueue.h:182
unsigned short UINT16
Definition los_typedef.h:51
#define VOID
Definition los_typedef.h:88
unsigned char UINT8
Definition los_typedef.h:50
unsigned int UINT32
Definition los_typedef.h:52
Definition los_rpqueue.h:176
UINT8 cmd
Definition los_rpqueue.h:179
UINT8 option
Definition los_rpqueue.h:178
UINT32 timeout
Definition los_rpqueue.h:177
Definition hal_uart_v151_regs_def.h:38