micropython-lib/micropython/lora/lora-sx126x
Max Holliday 60d137029f lora-sx126x: Change to class-level memoryview for _cmd buf.
Currently, the LoRa SX126x driver dynamically creates at least one,
sometimes two, memoryview objects with each call to `_cmd`.  This commit
simply provides the class with a long-lived memoryview object for `_cmd` to
easily slice as necessary.

Unlike the SX127x chips, Semtech unfortunately designed the SX126x modems
to be more command-centric (as opposed to directly setting registers).
Given the amount `_cmd` is called during normal device operation, even a
minor improvement here should have a decent impact.

Basic TX and RX tests pass on hardware.

Signed-off-by: Max Holliday <maholli@stanford.edu>
2024-07-23 15:12:50 +10:00
..
lora lora-sx126x: Change to class-level memoryview for _cmd buf. 2024-07-23 15:12:50 +10:00
manifest.py lora-sx126x: Change to class-level memoryview for _cmd buf. 2024-07-23 15:12:50 +10:00