MCPcopy Create free account
hub / github.com/FastLED/FastLED / reset

Method reset

src/platforms/shared/mock/esp/32/drivers/spi_peripheral_mock.cpp.hpp:483–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void SpiPeripheralMockImpl::reset() FL_NOEXCEPT {
484 mInitialized = false;
485 mDeviceAdded = false;
486 mBusConfig = SpiBusConfig();
487 mDeviceConfig = SpiDeviceConfig();
488 mQueuedTransactions.clear();
489 mMaxQueueSize = 0;
490 mTransactionCount = 0;
491 mCallback = nullptr;
492 mUserCtx = nullptr;
493 mTransactionDelayUs = 0;
494 mShouldFailTransaction = false;
495 mHistory.clear();
496 mPendingTransactions = 0;
497}
498
499} // namespace detail
500} // namespace fl

Callers 1

setJsonUiHandlersFunction · 0.45

Calls 3

SpiBusConfigClass · 0.85
SpiDeviceConfigClass · 0.85
clearMethod · 0.45

Tested by

no test coverage detected