kopia lustrzana https://codeberg.org/JF002/pinedio-lora-driver
22 wiersze
429 B
C++
22 wiersze
429 B
C++
#pragma once
|
|
#include <PineDio/LoRa/PinedioLoraRadio.h>
|
|
#include <memory>
|
|
|
|
namespace PineDio::LoRa {
|
|
|
|
class UsbAdapter : public SX126x {
|
|
public:
|
|
UsbAdapter();
|
|
|
|
private:
|
|
uint8_t HalGpioRead(GpioPinFunction_t func) override;
|
|
void HalGpioWrite(GpioPinFunction_t func, uint8_t value) override;
|
|
void HalSpiTransfer(uint8_t *buffer_in, const uint8_t *buffer_out, uint16_t size) override;
|
|
|
|
int handle;
|
|
|
|
void RxDone();
|
|
};
|
|
|
|
}
|