|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| int | bento_buddy_request_start (void) |
| Bring up the AIROC BLE host stack and NUS advertising on demand; task context only. | |
| void | bento_buddy_request_stop (void) |
| Soft stop — drops advertising and the link, keeps the AIROC stack resident; no error signal. | |
| void | bento_buddy_auto_start_install (void) |
| Legacy one-shot auto-start task; no caller anywhere — replaced by the chip-power pattern. | |
| int | ipc_bento_buddy_rx_init (void) |
| Arm the CM33_NS IPC receiver before the first CM55 tap can arrive; double registration tolerated. | |
Five symbols: the on-demand BLE bring-up and soft stop, the legacy auto-start helper, and the CM33–CM55 IPC bridge pair. Compiled only with ENABLE_PAGE_BENTO_BUDDY=1 (default 0, proj_cm33_ns/Makefile:64, :305); rebuild after make getlibs — Flag gate (read first).
Declarations: ble_nus_lazy.h (start/stop/auto_start_install); bento_secure_undeclared.h (ipc_bento_buddy_rx_init — recovered prototype). ipc_bento_buddy_send has no declaration in any shipped header (recorded in bento_secure_undeclared.h); its entry below quotes the archive definition.
Contract. Writes into a single static shared-memory message (CY_SECTION(".cy_shared_socmem") static ipc_msg_t s_buddy_msg, ipc_bento_buddy_bridge.c:43) — therefore not reentrant; two concurrent callers corrupt each other. data_len is silently clamped to IPC_DATA_MAX_LEN (:55). The retry loop is bounded: 50 iterations of vTaskDelay(pdMS_TO_TICKS(1)) (:61-68), so it may block up to 50 ms and must be called from a FreeRTOS task, never an ISR. Returns 0/-1; every shipped caller (void)-casts it. Convention: pass len + 1 so the receiver gets the NUL, and put the excl-NUL byte count in value. Also reached through the IPC_SEND macro (nus_protocol.c:37, :49-50) — macro-expanded sites are not in the caller counts. Template call sites: 0 (archived: 10).
| int bento_buddy_request_start | ( | void | ) |
Bring up the AIROC BLE host stack and NUS advertising on demand; task context only.
| void bento_buddy_request_stop | ( | void | ) |
Soft stop — drops advertising and the link, keeps the AIROC stack resident; no error signal.
| void bento_buddy_auto_start_install | ( | void | ) |
Legacy one-shot auto-start task; no caller anywhere — replaced by the chip-power pattern.
|
extern |
Arm the CM33_NS IPC receiver before the first CM55 tap can arrive; double registration tolerated.