Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
reference:add-ons:dmm-shield:libraryuserguide [2018/05/07 07:29] – [UART_Init] Cristian Fatureference:add-ons:dmm-shield:libraryuserguide [2018/05/07 07:44] – [UART_PutString] Cristian Fatu
Line 1442: Line 1442:
 #include "uart.h"\\  #include "uart.h"\\ 
 UART_PutString("Hello World\r\n"); UART_PutString("Hello World\r\n");
 +
 +==== UART_GetString ====
 +=== Synopsis: === 
 +uint8_t UART_GetString(char* pchBuff, int cchBuff)
 +
 +=== Parameters: === 
 +
 +|char* pchBuff|pointer to a char buffer to hold the received zero terminated string|
 +|int cchBuff|size of the buffer to hold the zero terminated string|
 +
 +
 +
 +=== Return value: === 
 +
 +<none>
 +=== Description: === 
 +This function provides a zero terminated string received over UART1 which was placed in the circular buffer by the UART interrupt handler.\\ 
 +If a received string is available in the circular buffer, the string is copied in the pchBuff string and its length is returned.\\ 
 +Otherwise, the function returns 0.
 +
 +=== Example: === 
 +
 +#include "uart.h"\\ 
 +cchi = UART_GetString(uartCmd, 0x40);
  
 ===== Appendix: DMM Scales ===== ===== Appendix: DMM Scales =====