mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 12:42:19 -04:00
Move capture start/stop into baseband API.
Hide more calls to baseband/shared memory.
This commit is contained in:
parent
6bd191349a
commit
420adea180
3 changed files with 18 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue