What does the timeout.attach_us function concretely do?


#1

Hi,

I suspect that the “timeout.attach_us” function impacts the communication between my components. Therefore I would like to be sure, that I correctly understand what it does: Does it trigger the given function after the given time?

Thanks!


#2

Hi
here is the explanation of the function in mbed-os regarding to Nano2

     *
     *  @param fptr pointer to the function to be called
     *  @param t the time between calls in micro-seconds
     */
    void attach_us(Callback<void()> func, timestamp_t t) {
        _function.attach(func);
        setup(t);
    }