|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| int | sensor_stream_init (void) |
| One-time task spawn, invoked lazily by sensor_stream_start() — never call directly. | |
| int | sensor_stream_start (const char *id, uint32_t interval_ms) |
| Start streaming one sensor; the shipped caller clamps the interval to [10, 5000] ms. | |
| void | sensor_stream_stop (const char *id) |
| Stop the active stream; idempotent. | |
| void | sensor_stream_stop_all (void) |
| Stop any active stream unconditionally — the quiesce-before-update path. | |
| bool | sensor_stream_is_active (void) |
| True iff a stream is active; the update handler's "busy" guard. | |
| uint32_t | sensor_stream_dropped_count (void) |
| Samples the NUS TX path refused (link down or buffer full); board-info diagnostics. | |
| int | voice_capture_start (const char *id, uint32_t sample_rate_hz) |
| Start a (stub) capture; emits one second of silence synchronously — the caller blocks. | |
| void | voice_capture_stop (void) |
| Idempotent stop; emits a final "final":true chunk if a capture is active. | |
| bool | voice_capture_is_running (void) |
| True iff a capture is running; the mic-button label and start guard. No caller anywhere. | |
Nine functions: sensor_stream_* and voice_capture_*. 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: sensor_stream.h, voice_capture.h. Implementation sensor_stream.c / voice_capture.c is archived in libbento_secure.a. voice_capture is a stub by its own header: the real PDM-PCM path is not wired; it emits one synthetic second of silence as bento.voice.chunk frames so the desktop parser can be validated end to end.
| int sensor_stream_init | ( | void | ) |
One-time task spawn, invoked lazily by sensor_stream_start() — never call directly.
| int sensor_stream_start | ( | const char * | id, |
| uint32_t | interval_ms ) |
Start streaming one sensor; the shipped caller clamps the interval to [10, 5000] ms.
| void sensor_stream_stop | ( | const char * | id | ) |
Stop the active stream; idempotent.
| void sensor_stream_stop_all | ( | void | ) |
Stop any active stream unconditionally — the quiesce-before-update path.
| bool sensor_stream_is_active | ( | void | ) |
True iff a stream is active; the update handler's "busy" guard.
| uint32_t sensor_stream_dropped_count | ( | void | ) |
Samples the NUS TX path refused (link down or buffer full); board-info diagnostics.
| int voice_capture_start | ( | const char * | id, |
| uint32_t | sample_rate_hz ) |
Start a (stub) capture; emits one second of silence synchronously — the caller blocks.
| void voice_capture_stop | ( | void | ) |
Idempotent stop; emits a final "final":true chunk if a capture is active.
| bool voice_capture_is_running | ( | void | ) |
True iff a capture is running; the mic-button label and start guard. No caller anywhere.