Message Library Class.
More...
#include <Message.h>
|
| static err_t | initFirst (uint32_t num_pools, uint32_t top_drm) |
| |
| static err_t | initPerCpu () |
| |
| static err_t | finalize () |
| |
|
static bool | isInitFirstComplete () |
| |
|
static err_t | isInitComplete (MsgQueId id, bool &done) |
| |
|
static err_t | referMsgQueBlock (MsgQueId id, MsgQueBlock **que) |
| |
|
static err_t | send (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply) |
| |
| template<typename T> |
| static err_t | send (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply, const T ¶m) |
| |
|
static err_t | send (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply, const void *param, size_t param_size) |
| |
|
static err_t | sendIsr (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply) |
| |
|
template<typename T> |
| static err_t | sendIsr (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply, const T ¶m) |
| |
|
static err_t | sendIsr (MsgQueId dest, MsgPri pri, MsgType type, MsgQueId reply, const void *param, size_t param_size) |
| |
|
static err_t | notifyRecv (MsgQueId dest) |
| |
|
static void | dump () |
| |
◆ initFirst()
| static err_t initFirst |
( |
uint32_t | num_pools, |
|
|
uint32_t | top_drm ) |
|
static |
The 1st initialize method on boot. This method only called once on the system.(from system processor)
- Returns
- ERR_OK : success
-
ERR_STS : error, initFirst() is already executing
◆ initPerCpu()
| static err_t initPerCpu |
( |
| ) |
|
|
static |
The 2nd initialize method on boot. This method only called once on each processor.
- Returns
- ERR_OK : success
-
ERR_STS : error, initFirst() is not executed yet
◆ finalize()
| static err_t finalize |
( |
| ) |
|
|
static |
The finalize method on power-off. This method only called once on the system.(from system processor)
- Returns
- ERR_OK : success
-
ERR_STS : error, initFirst() is not executed yet
◆ send()
template<typename T>
| static err_t send |
( |
MsgQueId | dest, |
|
|
MsgPri | pri, |
|
|
MsgType | type, |
|
|
MsgQueId | reply, |
|
|
const T & | param ) |
|
inlinestatic |
Send a Object to another task. This method can send a object to dest(MsgQueId) with type(MsgType).
- Parameters
-
| [in] | dest | Destination id |
| [in] | pri | Priority |
| [in] | type | Message Type |
| [in] | reply | Reply id |
| [in] | param | Object to send |
- Returns
- err_t error code.
The documentation for this class was generated from the following file:
- spresense/sdk/modules/include/memutils/message/Message.h