![]() |
Edge AI Add-on API 2.2.0
|
| void nrf_axon_platform_wait_for_user_event | ( | ) |
Driver to User signaling in synchronous mode.
In synchronous mode, driver will invoke nrf_axon_platform_wait_for_user_event() on behalf of the user to wait for the operationto complete from the user's execution context.
nrf_axon_platform_generate_user_event() will be invoked by the driver (in the drivers execution context) from nrf_axon_process_driver_event() when the user's job is complete. This function must generate the event that nrf_axon_platform_wait_for_user_event is waiting on.
In an RTOS system, this pair of functions should be implemented with a semaphore with maximum count of 1 and default 0 (available). Bare metal systems would implement this pair of functions with a spinlock.