com if passed to callback as well

This commit is contained in:
2021-05-24 19:11:01 +02:00
parent d801319c12
commit f363d0fbd5
2 changed files with 7 additions and 5 deletions

View File

@ -9,6 +9,7 @@
#include <cstdint>
class SpiCookie;
class SpiComIF;
namespace spi {
@ -25,7 +26,8 @@ enum SpiComIfModes {
};
using send_callback_function_t = ReturnValue_t (*) (SpiCookie *cookie, const uint8_t *sendData, size_t sendLen, void* args);
using send_callback_function_t = ReturnValue_t (*) (SpiComIF* comIf, SpiCookie *cookie,
const uint8_t *sendData, size_t sendLen, void* args);
}