|
SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
|
Functions | |
| void | ai_engine_set_sensor_rate (uint32_t interval_ms) |
| Set the accelerometer feed interval; the only legal sender on s_rate_msg. | |
| void | ai_engine_resume_sensor (void) |
| Standalone resume of the default cadence; never back-to-back with a rate set. | |
Two functions that share one CY_SECTION_SHAREDMEM message buffer (s_rate_msg) and one asynchronous Cy_IPC_Pipe_SendMessage. That single fact is the whole contract of this topic.
| void ai_engine_set_sensor_rate | ( | uint32_t | interval_ms | ) |
Set the accelerometer feed interval; the only legal sender on s_rate_msg.
Set the accelerometer feed interval (20 = 50 Hz model rate, 100 = 10 Hz dashboard). Eva Kit drives a local LVGL timer; AI Kit sends an IPC rate request to CM33. Callable from any CM55 task.
| void ai_engine_resume_sensor | ( | void | ) |
Standalone resume of the default cadence; never back-to-back with a rate set.
Restore the default sensor cadence after a model session.
The example below teaches the anti-pattern: the boxed WRONG sequence is what not to write, and the single call that follows is the only legal shape.