![]() |
RZ Flexible Software Package Documentation
Release v4.0.0
|
|
Functions | |
| fsp_err_t | R_MHU_B_S_Open (mhu_ctrl_t *p_ctrl, mhu_cfg_t const *const p_cfg) |
| fsp_err_t | R_MHU_B_S_MsgSend (mhu_ctrl_t *const p_ctrl, uint32_t const msg) |
| fsp_err_t | R_MHU_B_S_Close (mhu_ctrl_t *const p_ctrl) |
| fsp_err_t | R_MHU_B_S_CallbackSet (mhu_ctrl_t *const p_api_ctrl, void(*p_callback)(mhu_callback_args_t *), void *const p_context, mhu_callback_args_t *const p_callback_memory) |
| void | R_MHU_B_S_IsrSub (uint32_t irq) |
Driver for the MHU peripherals on RZ MPUs. This module implements the MHU Interface (for secure and non secure channels).
Message communication is done by shared RAM for passing message and response between CPUs and the function (MHU) for notifying when messages and responses are stored in the memory.
The MHU_B_S module supports the following features:
Classes | |
| struct | st_mhu_b_s_instance_ctrl |
| struct | st_mhu_b_s_extended_cfg |
Typedefs | |
| typedef struct st_mhu_b_s_instance_ctrl | mhu_b_s_instance_ctrl_t |
| typedef struct st_mhu_b_s_extended_cfg | mhu_b_s_extended_cfg_t |
| struct RZG::st_mhu_b_s_instance_ctrl |
Channel control block. DO NOT INITIALIZE. Initialization occurs when mhu_api_t::open is called.
Public Attributes | |
| uint32_t | open |
| Indicates whether the open() API has been successfully called. | |
| mhu_cfg_t const * | p_cfg |
| Pointer to instance configuration. | |
| R_MHU0_Type * | p_regs |
| Base register for this channel. | |
| uint32_t | channel |
| channel | |
| mhu_send_type_t | send_type |
| Send Type: Message or Response. | |
| uint32_t * | p_shared_memory_tx |
| Pointer to send data area. | |
| uint32_t * | p_shared_memory_rx |
| Pointer to recv data area. | |
| struct RZG::st_mhu_b_s_extended_cfg |
| typedef struct st_mhu_b_s_instance_ctrl mhu_b_s_instance_ctrl_t |
Channel control block. DO NOT INITIALIZE. Initialization occurs when mhu_api_t::open is called. Please refer to the struct st_mhu_b_s_instance_ctrl.
| typedef struct st_mhu_b_s_extended_cfg mhu_b_s_extended_cfg_t |
R_MHU_B_S extended configuration. Please refer to the struct st_mhu_b_s_extended_cfg.
| fsp_err_t R_MHU_B_S_Open | ( | mhu_ctrl_t *const | p_ctrl, |
| mhu_cfg_t const *const | p_cfg | ||
| ) |
Initializes the MHU_B_S module instance. Implements mhu_api_t::open.
| FSP_SUCCESS | Initialization was successful. |
| FSP_ERR_ASSERTION | A required input pointer is NULL. |
| FSP_ERR_ALREADY_OPEN | R_MHU_B_S_Open has already been called for this p_ctrl. |
| FSP_ERR_INVALID_ARGUMENT | The specified IRQ number is invalid. |
| FSP_ERR_INVALID_CHANNEL | Requested channel number is not available on MHU_B_S. |
| fsp_err_t R_MHU_B_S_MsgSend | ( | mhu_ctrl_t *const | p_ctrl, |
| uint32_t const | msg | ||
| ) |
Send message via MHU. Implements mhu_api_t::msgSend.
| FSP_SUCCESS | Send message successfully. |
| FSP_ERR_ASSERTION | A required pointer was NULL. |
| FSP_ERR_NOT_OPEN | The instance control structure is not opened. |
| fsp_err_t R_MHU_B_S_Close | ( | mhu_ctrl_t *const | p_ctrl | ) |
Disables interrupts, clears internal driver data. mhu_api_t::close.
| FSP_SUCCESS | MHU_B_S closed. |
| FSP_ERR_ASSERTION | p_ctrl is NULL. |
| FSP_ERR_NOT_OPEN | The instance control structure is not opened. |
| fsp_err_t R_MHU_B_S_CallbackSet | ( | mhu_ctrl_t *const | p_api_ctrl, |
| void(*)(mhu_callback_args_t *) | p_callback, | ||
| void *const | p_context, | ||
| mhu_callback_args_t *const | p_callback_memory | ||
| ) |
Updates the user callback with the option to provide memory for the callback argument structure. Implements mhu_api_t::callbackSet.
| FSP_SUCCESS | Callback updated successfully. |
| FSP_ERR_ASSERTION | A required pointer is NULL. |
| FSP_ERR_NOT_OPEN | The control block has not been opened. |
| FSP_ERR_NO_CALLBACK_MEMORY | p_callback is non-secure and p_callback_memory is either secure or NULL. |
| void RZG::R_MHU_B_S_IsrSub | ( | uint32_t | irq | ) |
MHU_B_S receive interrupt sub function (for OpenAMP)
| [in] | irq | irq number for inter-core interrupt |