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

Method enable

src/platforms/esp/32/drivers/parlio/parlio_peripheral_esp.cpp.hpp:250–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250bool ParlioPeripheralESPImpl::enable() FL_NOEXCEPT {
251 FL_LOG_PARLIO("PARLIO_PERIPH: enable() called");
252 if (mTxUnit == nullptr) {
253 FL_LOG_PARLIO("PARLIO_PERIPH: FAILED enable - not initialized");
254 FL_WARN("ParlioPeripheralESP: Cannot enable - not initialized");
255 return false;
256 }
257
258 // Delegate to ESP-IDF
259 FL_LOG_PARLIO("PARLIO_PERIPH: Calling parlio_tx_unit_enable()");
260 esp_err_t err = parlio_tx_unit_enable(mTxUnit);
261 if (err != ESP_OK) {
262 FL_WARN("ParlioPeripheralESP: Failed to enable TX unit: "
263 << esp_err_to_name(err) << " (" << err << ")");
264 return false;
265 }
266
267 mEnabled = true;
268 FL_LOG_PARLIO("PARLIO_PERIPH: enable() SUCCESS");
269 return true;
270}
271
272bool ParlioPeripheralESPImpl::disable() FL_NOEXCEPT {
273 if (mTxUnit == nullptr) {

Callers 6

beginTransmissionMethod · 0.45
beginMethod · 0.45
configureDmaMethod · 0.45
flexio_showFunction · 0.45
beginMethod · 0.45
FL_TEST_FILEFunction · 0.45

Calls 1

esp_err_to_nameFunction · 0.85

Tested by

no test coverage detected