mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-30 01:59:13 -04:00
Move FIFO and write size to CaptureConfig structure.
Now configured from baseband, where write size and appropriate FIFO size is known.
This commit is contained in:
parent
01fc6b9bc9
commit
91ee2dbb67
13 changed files with 71 additions and 32 deletions
|
@ -411,7 +411,18 @@ public:
|
|||
};
|
||||
|
||||
struct CaptureConfig {
|
||||
FIFO<uint8_t>* fifo { nullptr };
|
||||
const size_t write_size_log2;
|
||||
const size_t buffer_count_log2;
|
||||
FIFO<uint8_t>* fifo;
|
||||
|
||||
constexpr CaptureConfig(
|
||||
const size_t write_size_log2,
|
||||
const size_t buffer_count_log2
|
||||
) : write_size_log2 { write_size_log2 },
|
||||
buffer_count_log2 { buffer_count_log2 },
|
||||
fifo { nullptr }
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
class CaptureConfigMessage : public Message {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue