29#ifndef LOS_RPQUEUE_PRI_H
30#define LOS_RPQUEUE_PRI_H
38#define RPQUEUE_LOCK() LOS_IntLock()
39#define RPQUEUE_UNLOCK(x) LOS_IntRestore(x)
40#define RPQUEUE_DELAY(x) LOS_TaskDelay(x)
42#define OS_RPQUEUE_EMPTY_BYTE 1
43#define OS_RPQUEUE_SIZE_MAX 0xFFF7U
45#define OS_RPQUEUE_WRITE_IDLE 0xE1U
46#define OS_RPQUEUE_WRITE_BUSY 0xE2U
48#define OS_RPQUEUE_DATA_OK 0xE3U
49#define OS_RPQUEUE_HEADER_ERROR 0xE4U
50#define OS_RPQUEUE_CB_ERROR 0xE5U
52#define OS_RPQUEUE_READ_LOCK 0xE6U
53#define OS_RPQUEUE_READ_UNLOCK 0xE7U
55#define OS_RPQUEUE_INFO_MAGIC 0xC3C9CACEU
57#define OS_RPQUEUE_HEADER_CHECK_SIZE 6U
59#define RPQUEUE_TX_MAGIC_GET(obj) ((obj)->txMagic = OsRpqueueTxMagicGet(obj))
60#define RPQUEUE_RX_MAGIC_GET(obj) ((obj)->rxMagic = OsRpqueueRxMagicGet(obj))
62#define RPQUEUE_ADDR_ALIGN(addr) (((UINTPTR)(addr) + (LOS_RPQUEUE_ALIGN_SIZE - 1)) & (~(LOS_RPQUEUE_ALIGN_SIZE - 1)))
unsigned short UINT16
Definition los_typedef.h:51
unsigned char UINT8
Definition los_typedef.h:50
unsigned int UINT32
Definition los_typedef.h:52
osal_u16 reserved
Definition oal_net.h:4
Definition los_rpqueue_pri.h:64
volatile UINT8 readLock
Definition los_rpqueue_pri.h:74
volatile UINT16 writePos
Definition los_rpqueue_pri.h:71
volatile UINT8 dataError
Definition los_rpqueue_pri.h:76
volatile UINT16 readPos
Definition los_rpqueue_pri.h:70
volatile UINT16 writeEnd
Definition los_rpqueue_pri.h:69
volatile UINT16 txMagic
Definition los_rpqueue_pri.h:67
volatile UINT32 magic
Definition los_rpqueue_pri.h:65
volatile UINT16 rxMagic
Definition los_rpqueue_pri.h:66
volatile UINT8 writeStatus
Definition los_rpqueue_pri.h:72
volatile UINT16 queueSize
Definition los_rpqueue_pri.h:68