mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-09-29 05:17:33 +00:00
Moved simultaneous reading and writing into SPI; removed it from I2C and UART
This commit is contained in:
@@ -12,6 +12,15 @@ namespace sta
|
||||
STA_ASSERT(csPin != nullptr);
|
||||
}
|
||||
|
||||
void SPIDevice::transfer(const uint8_t * txBuffer, uint8_t * rxBuffer, size_t size)
|
||||
{
|
||||
STA_ASSERT(intf_->isAcquired());
|
||||
STA_ASSERT(txBuffer != nullptr);
|
||||
STA_ASSERT(rxBuffer != nullptr);
|
||||
|
||||
intf_->transfer(txBuffer, rxBuffer, size);
|
||||
}
|
||||
|
||||
const SPISettings & SPIDevice::settings() const
|
||||
{
|
||||
return intf_->settings();
|
||||
|
Reference in New Issue
Block a user