mirror of
https://github.com/lowobservable/coax.git
synced 2026-03-07 11:50:00 +00:00
Add SNOOPIE module
This commit is contained in:
@@ -61,6 +61,8 @@ public:
|
||||
|
||||
void handleInterrupt();
|
||||
|
||||
int snoopie(uint16_t *buffer, size_t bufferSize, uint8_t *writeIndex);
|
||||
|
||||
private:
|
||||
SPICoaxTransceiver &_spiCoaxTransceiver;
|
||||
CoaxProtocol _txProtocol;
|
||||
@@ -129,6 +131,8 @@ public:
|
||||
return readRegister(COAX_REGISTER_STATUS) & COAX_REGISTER_STATUS_RX_ACTIVE;
|
||||
};
|
||||
|
||||
int snoopie(uint16_t *buffer, size_t bufferSize, uint8_t *writeIndex);
|
||||
|
||||
private:
|
||||
void spiTransfer(const uint8_t *transmitBuffer, uint8_t *receiveBuffer, size_t count);
|
||||
};
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#define COMMAND_INFO 0xf0
|
||||
#define COMMAND_TEST 0xf1
|
||||
#define COMMAND_DFU 0xf2
|
||||
#define COMMAND_SNOOPIE_REPORT 0xf3
|
||||
|
||||
#define INFO_SUPPORTED_QUERIES 0x01
|
||||
#define INFO_HARDWARE_TYPE 0x02
|
||||
@@ -59,4 +60,7 @@ private:
|
||||
void handleInfo(uint8_t *buffer, size_t bufferCount);
|
||||
void handleTest(uint8_t *buffer, size_t bufferCount);
|
||||
void handleDFU(uint8_t *buffer, size_t bufferCount);
|
||||
|
||||
void snoopieTeamAway();
|
||||
void handleSnoopieReport(uint8_t *buffer, size_t bufferCount);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user