Function rttest_spin_once_period

Function Documentation

int rttest_spin_once_period(void *(*user_function)(void*), void *args, const struct timespec *start_time, const struct timespec *update_period, const size_t i)

Schedule a function call based on the start time, update period, and the iteration of the spin call. The statistics of the wakeup will be collected as the ‘ith’ entry in the data buffer.

Parameters:
  • user_function[in] Function pointer to execute on interrupt.

  • update_period[in]

  • Error[out] code to propagate to main function.

Returns:

Error code to propagate to main