Developer World
Spresense SDK Library release-v1.2.0-627f51e
Files | Classes | Macros | Functions
Message Library (for class object send)
Collaboration diagram for Message Library (for class object send):

Files

file  MsgQueBlock.h
 Message Library API.
 

Classes

struct  MsgQueDef
 
class  MsgLib
 Message Library Class. More...
 
class  MsgQueBlock
 Message Queue Class. More...
 
struct  MsgPacketInfo< T >
 
struct  MsgPacketInfo< MsgNullParam >
 
struct  MsgPacketInfo< MsgRangedParam >
 

Macros

#define MSG_LIB_NAME   "MsgLib"
 
#define MSG_LIB_VER   "2.03"
 
#define MSG_QUE_NULL   0
 

Functions

 MsgQueBlock::MsgQueBlock (MsgQueId id, MsgCpuId owner, SpinLockId spinlock)
 
err_t MsgQueBlock::setup (drm_t n_drm, uint16_t n_size, uint16_t n_num, drm_t h_drm, uint16_t h_size, uint16_t h_num)
 
uint16_t MsgQueBlock::getNumMsg (MsgPri pri) const
 
uint16_t MsgQueBlock::getRest (MsgPri pri) const
 
template<typename T >
static size_t MsgQueBlock::getSendSize (const T &param, bool type_check)
 
template<>
size_t MsgQueBlock::getSendSize (const MsgNullParam &, bool)
 
template<>
size_t MsgQueBlock::getSendSize (const MsgRangedParam &param, bool)
 
template<typename T >
err_t MsgQueBlock::send (MsgPri pri, MsgType type, MsgQueId reply, MsgFlags flags, const T &param)
 
template<typename T >
err_t MsgQueBlock::sendIsr (MsgPri pri, MsgType type, MsgQueId reply, const T &param)
 
MsgPacketMsgQueBlock::pushHeader (MsgPri pri, const MsgPacketHeader &header)
 
void MsgQueBlock::notifyRecv ()
 
err_t MsgQueBlock::recv (uint32_t ms, FAR MsgPacket **packet)
 
err_t MsgQueBlock::pop ()
 
void MsgQueBlock::lock ()
 
void MsgQueBlock::unlock ()
 
void MsgQueBlock::dump () const
 

Detailed Description

Function Documentation

◆ recv()

err_t MsgQueBlock::recv ( uint32_t  ms,
FAR MsgPacket **  packet 
)
inline

Receive a Object from another task. this method can receive a object from refer(MsgQueId) with type(MsgType).

Parameters
[in]mstimeout time(millisecond)
[out]**packetthe pointer of Massage packet.
Returns
err_t error code