BLE Comm WIP (#1578)

* Initial BLE Comm commit.
* SCAN_RSP MAC was reversed.
* Added Auto Channel Hop.
* Improvements to Tx to better handle timers.
* Auto channel and more work on timers.
* more advertisement numbers.
This commit is contained in:
Netro 2023-11-16 08:46:45 -05:00 committed by GitHub
parent d2e9a8dc06
commit 8479d2edf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 697 additions and 82 deletions

View file

@ -339,6 +339,9 @@ void BTLETxProcessor::execute(const buffer_c8_t& buffer) {
if (sample_count > length) {
configured = false;
sample_count = 0;
txprogress_message.done = true;
shared_memory.application_queue.push(txprogress_message);
} else {
// Real and imaginary was already calculated in gen_sample_from_phy_bit.
// It was processed from each data bit, run through a Gaussian Filter, and then ran through sin and cos table to get each IQ bit.
@ -363,9 +366,6 @@ void BTLETxProcessor::execute(const buffer_c8_t& buffer) {
buffer.p[i] = {re, im};
}
}
txprogress_message.done = true;
shared_memory.application_queue.push(txprogress_message);
}
void BTLETxProcessor::on_message(const Message* const message) {