Update clock speed.
358 {
360 return fl::task::Error("Device not initialized");
361 }
362
363
364 pImpl->config.clock_speed_hz = speed_hz;
365
366
367
368
369
370 if (
pImpl->initialized) {
371 FL_LOG_SPI(
"SPI Device: Clock speed updated to " << speed_hz
372 << " Hz (will take effect on next begin())");
373 } else {
374 FL_LOG_SPI(
"SPI Device: Clock speed set to " << speed_hz <<
" Hz");
375 }
376
378}
fl::unique_ptr< Impl > pImpl
#define FL_LOG_SPI(X)
Serial Peripheral Interface (SPI) logging Logs SPI configuration, initialization, and transfers.
constexpr nullopt_t nullopt