Fixed UART RX problems

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@232 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
mmi
2017-10-04 12:54:11 +00:00
parent 73a391f720
commit 8b315602e9
7 changed files with 115 additions and 51 deletions

View File

@@ -126,8 +126,8 @@ extern ErrorStatus Uart_construct(struct Uart* self, struct UartParameters* para
extern ErrorStatus Uart_getDefaultParameters(struct UartParameters* parameters);
/** ----------------------------------------------------------------------------
* Uart_Write
* Description of function
* Uart_write
* Writes length number of bytes from buffer to Uart object self
*
* @param self The UART class object
* @param buffer Message string to send
@@ -139,7 +139,27 @@ extern ErrorStatus Uart_getDefaultParameters(struct UartParameters* parameters);
* @todo
* -----------------------------------------------------------------------------
*/
extern ErrorStatus Uart_Write(struct Uart* self, const char* buffer, int length);
extern ErrorStatus Uart_write(struct Uart* self, const char* buffer, int length);
/** ----------------------------------------------------------------------------
* Uart_read
* Reads length number of bytes from Uart object self into buffer. The actual
* number of read bytes are put in actualLength. Ususally they should be equal
* but in some cases less bytes are read than requested.
*
* @param self The UART class object
* @param buffer Message string to send
* @param length Message length
* @param actualLength THe actual number of bytes read
*
* @return ErrorStatus SUCCESS if writing message was successful
* ERROR otherwise
*
* @todo
* -----------------------------------------------------------------------------
*/
extern ErrorStatus Uart_read(struct Uart* self, char* buffer, size_t length, size_t* actualLength);