![]() |
RZ Flexible Software Package Documentation
Release v4.1.0
|
|
Functions | |
| fsp_err_t | RM_ETHOSU_Open (rm_ethosu_ctrl_t *p_api_ctrl, rm_ethosu_cfg_t const *const p_cfg) |
| fsp_err_t | RM_ETHOSU_CallbackSet (rm_ethosu_ctrl_t *const p_api_ctrl, void(*p_callback)(rm_ethosu_callback_args_t *), void *const p_context, rm_ethosu_callback_args_t *const p_callback_memory) |
| fsp_err_t | RM_ETHOSU_Close (rm_ethosu_ctrl_t *p_api_ctrl) |
Classes | |
| struct | rm_ethosu_instance_ctrl_t |
| struct rm_ethosu_instance_ctrl_t |
Instance control block. This is private to the FSP and should not be used or modified by the application.
| fsp_err_t RZG::RM_ETHOSU_Open | ( | rm_ethosu_ctrl_t * | p_api_ctrl, |
| rm_ethosu_cfg_t const *const | p_cfg | ||
| ) |
Enable Ethos-U NPU and initialize driver. Implements rm_ethosu_api_t::open.
This function performs the following tasks:
| p_api_ctrl | Pointer to the control structure. |
| p_cfg | Pointer to a configuration structure. |
| FSP_SUCCESS | NPU initialized successfully. |
| FSP_ERR_ASSERTION | An input parameter is invalid or NULL. |
| FSP_ERR_ALREADY_OPEN | The instance has already been opened. |
| FSP_ERR_INVALID_ARGUMENT | Failed to initialize ethosu driver |
| fsp_err_t RZG::RM_ETHOSU_CallbackSet | ( | rm_ethosu_ctrl_t *const | p_api_ctrl, |
| void(*)(rm_ethosu_callback_args_t *) | p_callback, | ||
| void *const | p_context, | ||
| rm_ethosu_callback_args_t *const | p_callback_memory | ||
| ) |
Updates the user callback and has option of providing memory for callback structure. Implements rm_ethosu_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. |
| fsp_err_t RZG::RM_ETHOSU_Close | ( | rm_ethosu_ctrl_t * | p_api_ctrl | ) |
Disable NPU and set the instance as not open. Implements rm_ethosu_api_t::close.
| p_api_ctrl | Pointer to an opened instance. |
| FSP_SUCCESS | Channel successfully closed. |
| FSP_ERR_ASSERTION | The parameter p_api_ctrl is NULL. |
| FSP_ERR_NOT_OPEN | The channel has not been opened. Open the channel first. |