|
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 gives the prototype.
Contract. Writes into a single static shared-memory message (placed in the .cy_shared_socmem linker section) — therefore not reentrant; two concurrent callers corrupt each other. data_len is silently clamped to IPC_DATA_MAX_LEN. The retry loop is bounded: at most 50 attempts, 1 ms apart via vTaskDelay, 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 a send macro inside the archive's NUS protocol code — 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.