Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: luni

Search: Search took 0.00 seconds.

  1. Sounds good, glad it works now.

    Sounds good, glad it works now.
  2. Sorry, overlooked that. Just one additional...

    Sorry, overlooked that.

    Just one additional remark: Looks like you are using some global resources (e.g. msgTxt, Can0 ...) in your background functions. If you use the same resources in your...
  3. Ups, just saw that you have 8 bit and 16bit...

    Ups, just saw that you have 8 bit and 16bit arguments. I recommend to store both as 16bit and use the first 8bit only in the 8bit functions. Otherwise you need to define two different function...
  4. I added another array which carries the arguments...

    I added another array which carries the arguments to the functions. Now you can combine functions and arguments as you wish. The dummy functions just print out the function name, the current time...
  5. Ok, I think I got it. So, you want to call...

    Ok, I think I got it.

    So, you want to call different functions with different arguments automatically in the background. Until now the function pointer array only contains information about the...
  6. That's good, but I don't understand how you want...

    That's good, but I don't understand how you want to call this. Is canSend_01 always getting INTAKE_MANIFOLD_ABSOLUTE_PRESSURE as argument? And canSend_02 gets the next one from the enum? always or is...
  7. Can you post the declaration of one of your...

    Can you post the declaration of one of your functions?
  8. Sorry, I'm usually not using the Arduino builder...

    Sorry, I'm usually not using the Arduino builder and thought it doesn't need the forward declarations

    So, either forward declare the functions


    void func0();
    void func1();
    void func2();
    ...
  9. And here a quick "function pointer solution"...

    And here a quick "function pointer solution" which works if you only need a constant interval between functions


    using func_t = void (*)(); // c++...
  10. One method is to call the functions from one shot...

    One method is to call the functions from one shot timers. You'd start timer1 which will call func1 after some delay time. At the end of func1 you trigger timer2 which will call function 2 and so on. ...
Results 1 to 10 of 10