ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
esp_idf_mdl_compat_internal.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#ifdef ESP_PLATFORM
25
26#include "esp_crt_bundle.h"
27#include "esp_err.h"
28#include "esp_http_client.h"
29#include "mbedtls/sha256.h"
30
31#else
32
33#include <stddef.h>
34#include <stdint.h>
35
36#include "esp_err.h"
37#include "ra8_attributes.h"
38
39/* Every name below IS the ESP-IDF ABI spelling. This branch of the header
40 * exists so the annotation walker and clang-tidy can parse mdl_service.c
41 * without the SDK installed, which only works if the mirror declares exactly
42 * the vendor identifiers the adapter calls -- renaming them to the project
43 * conventions would make the mirror wrong rather than compliant. */
44// NOLINTBEGIN(readability-identifier-naming) -- ESP-IDF compatibility symbols retain upstream spellings.
46typedef struct esp_http_client* esp_http_client_handle_t;
47
50
67
78
81
95
100
101/*
102 * The host parser/test build supplies cross-TU stand-ins for the vendor APIs.
103 * Give those first-party stand-ins private identities while leaving the real
104 * ESP-IDF build's symbol spellings and ABI untouched.
105 */
107#define esp_crt_bundle_attach priv_esp_crt_bundle_attach
109#define esp_http_client_init priv_esp_http_client_init
111#define esp_http_client_close priv_esp_http_client_close
113#define esp_http_client_set_url priv_esp_http_client_set_url
115#define esp_http_client_set_header priv_esp_http_client_set_header
117#define esp_http_client_delete_header priv_esp_http_client_delete_header
119#define esp_http_client_set_timeout_ms priv_esp_http_client_set_timeout_ms
121#define esp_http_client_open priv_esp_http_client_open
123#define esp_http_client_fetch_headers priv_esp_http_client_fetch_headers
125#define esp_http_client_get_status_code priv_esp_http_client_get_status_code
127#define esp_http_client_read priv_esp_http_client_read
129#define esp_http_client_is_complete_data_received priv_esp_http_client_is_complete_data_received
131#define mbedtls_sha256_init priv_mbedtls_sha256_init
133#define mbedtls_sha256_starts priv_mbedtls_sha256_starts
135#define mbedtls_sha256_update priv_mbedtls_sha256_update
137#define mbedtls_sha256_finish priv_mbedtls_sha256_finish
138
154
169
185
202
221 const char* key,
222 const char* value);
223
241
259
276
291
306
323RA8_PRIV int esp_http_client_read(esp_http_client_handle_t client, char* buffer, int len);
324
340
353
369
385RA8_PRIV int
386mbedtls_sha256_update(mbedtls_sha256_context* ctx, const unsigned char* input, size_t ilen);
387
402RA8_PRIV int mbedtls_sha256_finish(mbedtls_sha256_context* ctx, unsigned char output[32]);
403// NOLINTEND(readability-identifier-naming)
404
405#endif
ESP-IDF-compatible error type and error codes, supplied by this port.
int esp_err_t
Result of an esp-hosted call: zero on success, non-zero otherwise.
Definition esp_err.h:98
#define mbedtls_sha256_update
Map the parser SHA-256 update operation to its private stand-in.
#define esp_http_client_read
Map the parser body reader to its module-private stand-in.
#define esp_http_client_open
Map the parser HTTP open operation to its private stand-in.
#define mbedtls_sha256_starts
Map the parser SHA-256 start operation to its private stand-in.
#define esp_http_client_fetch_headers
Map the parser header fetch to its module-private stand-in.
#define esp_http_client_close
Map the parser HTTP close operation to its private stand-in.
struct esp_http_client * esp_http_client_handle_t
Opaque host-parser stand-in for an ESP-IDF HTTP client.
#define esp_crt_bundle_attach
Map the parser bundle callback to its module-private stand-in.
#define esp_http_client_init
Map the parser HTTP constructor to its module-private stand-in.
esp_err_t(* esp_http_client_event_cb_t)(esp_http_client_event_t *event)
HTTP event callback signature consumed by the adapter.
esp_err_t(* esp_crt_bundle_attach_fn_t)(void *conf)
HTTPS certificate-bundle attach callback used by ESP-IDF.
esp_http_client_event_id_t
Consumed ESP-IDF HTTP event identifiers.
@ HTTP_EVENT_HEADERS_SENT
Request headers sent.
@ HTTP_EVENT_REDIRECT
Redirect response observed.
@ HTTP_EVENT_ON_HEADER
One response header is available.
@ HTTP_EVENT_ON_CONNECTED
Connection established.
@ HTTP_EVENT_DISCONNECTED
Connection closed.
@ HTTP_EVENT_ON_FINISH
Response completed.
@ HTTP_EVENT_ERROR
Transport error.
@ HTTP_EVENT_ON_DATA
Response body data is available.
#define esp_http_client_delete_header
Map the parser request-header remover to its private stand-in.
#define mbedtls_sha256_init
Map the parser SHA-256 initializer to its private stand-in.
#define esp_http_client_set_timeout_ms
Map the parser timeout setter to its private stand-in.
#define esp_http_client_set_url
Map the parser URL setter to its module-private stand-in.
#define esp_http_client_set_header
Map the parser request-header setter to its private stand-in.
#define mbedtls_sha256_finish
Map the parser SHA-256 finalizer to its private stand-in.
#define esp_http_client_get_status_code
Map the parser status accessor to its module-private stand-in.
#define esp_http_client_is_complete_data_received
Map the parser completion query to its module-private stand-in.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Exact consumed subset of ESP-IDF's HTTP client configuration.
int timeout_ms
Operation timeout in ms.
void * user_data
Event callback context.
esp_crt_bundle_attach_fn_t crt_bundle_attach
Root-certificate attachment.
bool disable_auto_redirect
Redirects remain fail-closed.
int buffer_size
Receive-buffer capacity.
const char * url
Initial HTTPS URL.
esp_http_client_event_cb_t event_handler
Response event callback.
Parser mirror of the ESP-IDF HTTP event record.
void * user_data
Configuration context.
esp_http_client_handle_t client
Originating client.
char * header_value
Header value for ON_HEADER.
void * data
Event data, if any.
esp_http_client_event_id_t event_id
Event selector.
char * header_key
Header name for ON_HEADER.
Parser-only storage standing in for ESP-IDF's SHA-256 context.
uint64_t opaque[32]
Never interpreted outside the real ESP-IDF build.