mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-18 01:56:50 +00:00
Move capture start/stop into baseband API.
Hide more calls to baseband/shared memory.
This commit is contained in:
@@ -102,4 +102,16 @@ void spectrum_streaming_stop() {
|
||||
);
|
||||
}
|
||||
|
||||
void capture_start(CaptureConfig* const config) {
|
||||
shared_memory.baseband_queue.push_and_wait(
|
||||
CaptureConfigMessage { config }
|
||||
);
|
||||
}
|
||||
|
||||
void capture_stop() {
|
||||
shared_memory.baseband_queue.push_and_wait(
|
||||
CaptureConfigMessage { nullptr }
|
||||
);
|
||||
}
|
||||
|
||||
} /* namespace baseband */
|
||||
|
Reference in New Issue
Block a user