| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <zephyr/ztest.h>Macros | |
| #define | TIMEOUT K_MSEC(100) | 
| #define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define | MAIL_LEN 64 | 
Functions | |
| K_MBOX_DEFINE (kmbox) | |
| static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static | K_THREAD_STACK_DEFINE (rtstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static | K_THREAD_STACK_DEFINE (tstack_1,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static | K_THREAD_STACK_ARRAY_DEFINE (waiting_get_stack, 5,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) | 
| static void | async_put_sema_give (void *p1, void *p2, void *p3) | 
| static void | mbox_get_waiting_thread (void *p1, void *p2, void *p3) | 
| static void | tmbox_put (struct k_mbox *pmbox) | 
| static void | tmbox_get (struct k_mbox *pmbox) | 
| static void | tmbox_entry (void *p1, void *p2, void *p3) | 
| static void | tmbox (struct k_mbox *pmbox) | 
| ZTEST (mbox_api, test_mbox_kinit) | |
| ZTEST (mbox_api, test_mbox_kdefine) | |
| static void | thread_mbox_data_get_null (void *p1, void *p2, void *p3) | 
| ZTEST (mbox_api, test_mbox_data_get_null) | |
| Test k_mbox_data_get() API.  More... | |
| static void | thread_mbox_get_block_data (void *p1, void *p2, void *p3) | 
| static void | thread_mbox_put_block_data (void *p1, void *p2, void *p3) | 
| ZTEST (mbox_api, test_mbox_get_put_block_data) | |
| Test put and get mailbox with block data.  More... | |
| ZTEST (mbox_api, test_enhance_capability) | |
| Test mailbox enhance capabilities.  More... | |
| ZTEST (mbox_api, test_define_multi_mbox) | |
| ZTEST (mbox_api, test_mbox_put_get_null) | |
| ZTEST (mbox_api, test_mbox_put_get_buffer) | |
| ZTEST (mbox_api, test_mbox_async_put_get_buffer) | |
| ZTEST (mbox_api, test_mbox_async_put_get_block) | |
| ZTEST (mbox_api, test_mbox_target_source_thread_buffer) | |
| ZTEST (mbox_api, test_mbox_incorrect_receiver_tid) | |
| ZTEST (mbox_api, test_mbox_incorrect_transmit_tid) | |
| ZTEST (mbox_api, test_mbox_timed_out_mbox_get) | |
| ZTEST (mbox_api, test_mbox_msg_tid_mismatch) | |
| ZTEST (mbox_api, test_mbox_dispose_size_0_msg) | |
| ZTEST (mbox_api, test_mbox_async_put_to_waiting_get) | |
| ZTEST (mbox_api, test_mbox_get_waiting_put_incorrect_tid) | |
| ZTEST (mbox_api, test_mbox_async_multiple_put) | |
| ZTEST (mbox_api, test_mbox_multiple_waiting_get) | |
| void * | setup_mbox_api (void) | 
| ZTEST_SUITE (mbox_api, NULL, setup_mbox_api, NULL, NULL, NULL) | |
Variables | |
| static struct k_mbox | mbox | 
| static k_tid_t | sender_tid | 
| static k_tid_t | receiver_tid | 
| static k_tid_t | random_tid | 
| static struct k_thread tdata rtdata async_tid | waiting_get_tid [5] | 
| static struct k_sem end_sema | sync_sema | 
| static enum mmsg_type | info_type | 
| static char | data [MAX_INFO_TYPE][64] | 
| static ZTEST_BMEM char | buffer [8] | 
| #define MAIL_LEN 64 | 
| #define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) | 
| #define TIMEOUT K_MSEC(100) | 
| enum mmsg_type | 
      
  | 
  static | 
| K_MBOX_DEFINE | ( | kmbox | ) | 
TESTPOINT: init via K_MBOX_DEFINE
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
| void * setup_mbox_api | ( | void | ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
TESTPOINT: thread-thread data passing via mbox
      
  | 
  static | 
      
  | 
  static | 
TESTPOINT: mbox sync get buffer
TESTPOINT: mbox sync get buffer
TESTPOINT: mbox async get buffer
      
  | 
  static | 
TESTPOINT: mbox sync put empty message
TESTPOINT: mbox sync put buffer
TESTPOINT: mbox async put buffer
| ZTEST | ( | mbox_api | , | 
| test_define_multi_mbox | |||
| ) | 
TESTPOINT: init via k_mbox_init
| ZTEST | ( | mbox_api | , | 
| test_mbox_async_multiple_put | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_async_put_get_block | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_async_put_get_buffer | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_async_put_to_waiting_get | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_dispose_size_0_msg | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_get_waiting_put_incorrect_tid | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_incorrect_receiver_tid | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_incorrect_transmit_tid | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_kdefine | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_kinit | |||
| ) | 
TESTPOINT: init via k_mbox_init
| ZTEST | ( | mbox_api | , | 
| test_mbox_msg_tid_mismatch | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_multiple_waiting_get | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_put_get_buffer | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_put_get_null | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_target_source_thread_buffer | |||
| ) | 
| ZTEST | ( | mbox_api | , | 
| test_mbox_timed_out_mbox_get | |||
| ) | 
| ZTEST_SUITE | ( | mbox_api | , | 
| NULL | , | ||
| setup_mbox_api | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | |||
| ) | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static |