Developer World
Spresense SDK Library v3.3.0-375c679
mpcomm_context Struct Reference

#include <mpcomm.h>

Collaboration diagram for mpcomm_context:

Public Attributes

uint8_t mode
 
mpmq_t mq_2_supervisor
 
mpmq_t mq_2_controller
 
helper_info_t helpers [MPCOMM_MAX_HELPERS]
 
cpu_set_t helpers_cpuset
 
cpu_set_t helpers_doneset
 
uint8_t supervisor_done
 
uint8_t helpers_num
 
mpcomm_user_func_t controller_user_func
 
mpcomm_user_func_t helper_user_func
 
uintptr_t loadaddr
 
uint8_t quit_loop
 

Detailed Description

Structure of information needed by a controller and helpers in the MPCOMM framework.

Member Data Documentation

◆ mode

uint8_t mode

Worker mode.

◆ mq_2_supervisor

mpmq_t mq_2_supervisor

MP message queue to supervisor. See mpmq_t

◆ mq_2_controller

mpmq_t mq_2_controller

MP message queue to controller. See mpmq_t

◆ helpers

Information about helpers. See helper_info_t

◆ helpers_cpuset

cpu_set_t helpers_cpuset

Set of CPUs used as a helper. See cpu_set_t

◆ helpers_doneset

cpu_set_t helpers_doneset

Set of CPUs used as a helper that sends a MPCOMM_MSG_ID_DONE message. See cpu_set_t

◆ supervisor_done

uint8_t supervisor_done

If 1 then controller received MPCOMM_MSG_ID_DONE message from supervisor, if 0 it did not.

◆ helpers_num

uint8_t helpers_num

Number of helpers used.

◆ controller_user_func

mpcomm_user_func_t controller_user_func

User-defined callback for controller. See mpcomm_user_func_t

◆ helper_user_func

mpcomm_user_func_t helper_user_func

User-defined callback for helpers. See mpcomm_user_func_t

◆ loadaddr

uintptr_t loadaddr

Controller/Helper load address.

◆ quit_loop

uint8_t quit_loop

If 0, the helper should stay in the loop and if 1 it should quit.


The documentation for this struct was generated from the following file: