|
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; call it on its own, from one owner. | |
| void | ai_engine_resume_sensor (void) |
| Standalone resume of the default cadence; never back-to-back with a rate set. | |
Two functions that send asynchronous sensor-rate requests to CM33. Issued back to back, a resume can cancel a rate change. 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; call it on its own, from one owner.
Set the accelerometer feed interval (20 = 50 Hz model rate, 100 = 10 Hz dashboard). Callable from any CM55 task; it also resumes the sensor push. Call it on its own: an ai_engine_resume_sensor() issued right after it can cancel it.
| 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. Use it on its own, not in the same breath as ai_engine_set_sensor_rate().
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.