This commit is contained in:
Tristan Krause 2019-05-29 11:07:42 +02:00
parent 63d81c6e7e
commit 0ec3988c58
4 changed files with 70 additions and 76 deletions

View file

@ -95,8 +95,21 @@ public:
*/
uint16_t readInt(void);
int transmit(uint8_t *buffer, uint16_t offset, uint8_t len);
int receive(uint8_t *buffer, uint16_t offset, uint8_t len);
/**
* Sends n bytes from the buffer over USART
* \param buffer target buffer
* \param offset in buffer (mostly 0)
* \throws USARTException
*/
void transmit(uint8_t *buffer, uint16_t offset, uint8_t len);
/**
* Receives n bytes from USART and writes them into the buffer
* \param buffer target buffer
* \param offset in buffer (mostly 0)
* \throws USARTException
*/
void receive(uint8_t *buffer, uint16_t offset, uint8_t len);
/*************************************/