Spi COM IF update #7
@ -47,6 +47,17 @@ public:
|
|||||||
* the chip select must be driven from outside of the com if.
|
* the chip select must be driven from outside of the com if.
|
||||||
*/
|
*/
|
||||||
MutexIF* getMutex();
|
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:
|
private:
|
||||||
|
|
||||||
struct SpiInstance {
|
struct SpiInstance {
|
||||||
@ -64,7 +75,6 @@ private:
|
|||||||
|
|
||||||
SpiDeviceMap spiDeviceMap;
|
SpiDeviceMap spiDeviceMap;
|
||||||
|
|
||||||
ReturnValue_t performRegularSendOperation(SpiCookie* spiCookie, const uint8_t *sendData, size_t sendLen);
|
|
||||||
ReturnValue_t performHalfDuplexReception(SpiCookie* spiCookie);
|
ReturnValue_t performHalfDuplexReception(SpiCookie* spiCookie);
|
||||||
|
|
||||||
ReturnValue_t getReadBuffer(address_t spiAddress, uint8_t** buffer);
|
ReturnValue_t getReadBuffer(address_t spiAddress, uint8_t** buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user