spi_hook.h 478 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "hal.h"
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #if HAL_USE_MMC_SPI == TRUE
  7. void spiStartHook(SPIDriver *spip, const SPIConfig *config);
  8. void spiStopHook(SPIDriver *spip);
  9. void spiSelectHook(SPIDriver *spip);
  10. void spiUnselectHook(SPIDriver *spip);
  11. void spiIgnoreHook(SPIDriver *spip,size_t n);
  12. void spiSendHook(SPIDriver *spip,size_t n, const void *txbuf);
  13. void spiReceiveHook(SPIDriver *spip, size_t n, void *rxbuf);
  14. #endif
  15. #ifdef __cplusplus
  16. }
  17. #endif