-For mail Box related APIs refer MZ_sys_cmsis_os2.h file.
More...
-For mail Box related APIs refer MZ_sys_cmsis_os2.h file.
◆ mz_mailbox_create()
uint8_t mz_mailbox_create |
( |
mz_mailbox_t * |
c, |
|
|
size_t |
no_of_mail, |
|
|
size_t |
mail_size |
|
) |
| |
This function is used to create and initialize the message queue object Create and initialize a message queue object.
- Parameters
-
c | mz_mailbox_t |
no_of_mail | size_t |
mail_size | size_t |
- Returns
- message queue ID for reference by other functions or NULL in case of error.
◆ mz_mailbox_delete()
This function is used to delete the message queue object Delete message queue object.
- Parameters
-
- Returns
- message queue ID for reference by other functions or NULL in case of error.
◆ mz_mailbox_put()
This function is used to put a message into the queue or timeout if queue is full Put a message into a queue or timeout if queue is full.
`osWaitForever' is set
- Parameters
-
- Returns
- status code that indicates the execution status of the function.
- Note
- Error handler for Message Queue Related Abstarction
◆ mz_mailbox_get()
This function is used to put a message into the queue or timeout if queue is full Get a message from a queue or timeout if queue is empty.
- Parameters
-
c | mz_mailbox_t |
m | void |
timeout | uint32_t |
- Returns
- status code that indicates the execution status of the function.
- Note
- Error handler for Message Queue Related Abstarction
◆ mz_mailbox_putnow()
This function is used to put a message now into the queue or timeout if queue is full Put a message into a queue or timeout if queue is full.
`timeout' is set to 0.
- Parameters
-
- Returns
- status code that indicates the execution status of the function.
- Note
- Error handler for Message Queue Related Abstarction
◆ mz_mailbox_getnow()
This function is used to get the message now from the queue or timeout if queue is empty Get a message from a queue or timeout if queue is empty.
- Parameters
-
- Returns
- status code that indicates the execution status of the function.
- Note
- Error handler for Message Queue Related Abstarction
◆ mz_mailbox_isvalid()
This function is used to check the message queue object validity Check the message queue object validation.
- Parameters
-
- Returns
- status code that indicates the execution status of the function.
◆ mz_mailbox_invalid()
This function is used to check the message queue object validity Message queue object is invalid.
- Parameters
-
- Returns
- 1