Move capture start/stop into baseband API.

Hide more calls to baseband/shared memory.
This commit is contained in:
Jared Boone 2016-06-20 10:52:59 -07:00
parent 6bd191349a
commit 420adea180
3 changed files with 18 additions and 7 deletions

View file

@ -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 */