mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 06:26:42 +00:00
Abstract the serial port handling.
This commit is contained in:
parent
959cb7f32e
commit
2cb7d37195
3 changed files with 130 additions and 38 deletions
|
|
@ -67,8 +67,13 @@ private:
|
|||
void getVersion();
|
||||
uint8_t setConfig(const uint8_t* data, uint8_t length);
|
||||
uint8_t setMode(const uint8_t* data, uint8_t length);
|
||||
void write(const uint8_t* data, uint16_t length, bool flush = false);
|
||||
void setMode(MMDVM_STATE modemState);
|
||||
|
||||
// Hardware versions
|
||||
void beginInt(uint8_t n, int speed);
|
||||
int availableInt(uint8_t n);
|
||||
uint8_t readInt(uint8_t n);
|
||||
void writeInt(uint8_t n, const uint8_t* data, uint16_t length, bool flush = false);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue