|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//========================================================================= |
|
|
//========================================================================= |
|
|
// Main Aync Transfer function |
|
|
|
|
|
|
|
|
// Main Async Transfer function |
|
|
//========================================================================= |
|
|
//========================================================================= |
|
|
|
|
|
|
|
|
bool SPIClass::transfer(const void *buf, void *retbuf, size_t count, EventResponderRef event_responder) { |
|
|
bool SPIClass::transfer(const void *buf, void *retbuf, size_t count, EventResponderRef event_responder) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//========================================================================= |
|
|
//========================================================================= |
|
|
// Main Aync Transfer function |
|
|
|
|
|
|
|
|
// Main Async Transfer function |
|
|
//========================================================================= |
|
|
//========================================================================= |
|
|
bool SPIClass::transfer(const void *buf, void *retbuf, size_t count, EventResponderRef event_responder) { |
|
|
bool SPIClass::transfer(const void *buf, void *retbuf, size_t count, EventResponderRef event_responder) { |
|
|
if (_dma_state == DMAState::notAllocated) { |
|
|
if (_dma_state == DMAState::notAllocated) { |