|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Public integration contract for the ESP32-C6 media RPC component. More...
Go to the source code of this file.
Functions | |
| uint32_t | ra8_mdl_service_component_abi (void) |
| Return the linked first-party media component ABI version. | |
| esp_err_t | esp_hosted_custom_rpc_sync_handler (uint32_t message_id, const uint8_t *request, size_t request_len, uint8_t *response, size_t response_cap, size_t *response_len) |
| Handle one synchronous ESP-hosted CustomRpc media operation. | |
Public integration contract for the ESP32-C6 media RPC component.
The pinned ESP-hosted patch calls the synchronous hook by its upstream ABI name. The first-party build script also verifies the component marker as a strong text symbol after link. Publishing both declarations here makes those externally linked entry points explicit; neither is a module-private helper and neither may be renamed to the priv_ vocabulary.
Definition in file ra8_mdl_service.h.
| esp_err_t esp_hosted_custom_rpc_sync_handler | ( | uint32_t | message_id, |
| const uint8_t * | request, | ||
| size_t | request_len, | ||
| uint8_t * | response, | ||
| size_t | response_cap, | ||
| size_t * | response_len ) |
Handle one synchronous ESP-hosted CustomRpc media operation.
Dispatches a bounded generated-protobuf request through the first-party media service on ESP-hosted's serialized control path.
| [in] | message_id | Stable media RPC operation identifier. |
| [in] | request | Packed generated inner protobuf. |
| [in] | request_len | Valid bytes in request. |
| [out] | response | Caller-owned inner protobuf response buffer. |
| [in] | response_cap | Capacity of response. |
| [out] | response_len | Packed response byte count. |
| ESP_OK | A valid inner response was produced. |
| ESP_FAIL | Component initialisation or dispatch failed. |
response_len no greater than response_cap. Handle one synchronous ESP-hosted CustomRpc media operation.
The hook runs on ESP-hosted's serialized control path. It returns a fully packed inner protobuf in caller-owned storage; the patched upstream handler immediately wraps those bytes in its generated CustomRpc response.
| [in] | message_id | Stable media RPC operation identifier. |
| [in] | request | Packed generated inner protobuf. |
| [in] | request_len | Valid request bytes. |
| [out] | response | Caller-owned inner response buffer. |
| [in] | response_cap | Capacity of response. |
| [out] | response_len | Packed response bytes. |
| ESP_OK | A valid inner response was produced. |
| ESP_FAIL | Component or one-time backend initialisation failed. |
| ESP_ERR_NOT_SUPPORTED | The operation is not owned by the media service. |
| ESP_ERR_INVALID_ARG | A request argument or pointer was invalid. |
| ESP_ERR_INVALID_STATE | The media service is busy or inactive. |
| ESP_ERR_INVALID_SIZE | A bounded request or response extent was rejected. |
| ESP_ERR_INVALID_RESPONSE | The inner protobuf or response was invalid. |
response_len within response_cap. Definition at line 759 of file mdl_service.c.
References ESP_ERR_INVALID_ARG, ESP_ERR_NOT_SUPPORTED, ESP_FAIL, internal_mdl_http_begin(), internal_mdl_http_cancel(), internal_mdl_http_init(), internal_mdl_http_read(), internal_mdl_to_esp_status(), k_ra8_mdl_rpc_cancel, k_ra8_mdl_rpc_next, k_ra8_mdl_rpc_start, k_ra8_ok, ra8_mdl_service_dispatch(), ra8_mdl_service_init(), s_component_abi, s_http, s_initialised, and s_service.
| uint32_t ra8_mdl_service_component_abi | ( | void | ) |
Return the linked first-party media component ABI version.
The post-link build assertion requires this exact strong symbol.
| 1 | First version of the concrete media service component. |
Definition at line 75 of file mdl_service.c.