diff --git a/linux/spi/SpiComIF.h b/linux/spi/SpiComIF.h index 5a99da4..8978b78 100644 --- a/linux/spi/SpiComIF.h +++ b/linux/spi/SpiComIF.h @@ -47,6 +47,17 @@ public: * the chip select must be driven from outside of the com if. */ MutexIF* getMutex(); + + /** + * Perform a regular send operation using Linux iotcl. This is public so it can be used + * in the user callback if special handling is only necessary for certain commands. + * @param spiCookie + * @param sendData + * @param sendLen + * @return + */ + ReturnValue_t performRegularSendOperation(SpiCookie* spiCookie, const uint8_t *sendData, + size_t sendLen); private: struct SpiInstance { @@ -64,7 +75,6 @@ private: SpiDeviceMap spiDeviceMap; - ReturnValue_t performRegularSendOperation(SpiCookie* spiCookie, const uint8_t *sendData, size_t sendLen); ReturnValue_t performHalfDuplexReception(SpiCookie* spiCookie); ReturnValue_t getReadBuffer(address_t spiAddress, uint8_t** buffer);