Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
reference:add-ons:dmm-shield:libraryuserguide [2018/05/07 07:29] – [UART_Init] Cristian Fatu | reference:add-ons:dmm-shield:libraryuserguide [2018/05/07 07:45] – [UART_PutString] Cristian Fatu | ||
---|---|---|---|
Line 1442: | Line 1442: | ||
#include " | #include " | ||
UART_PutString(" | UART_PutString(" | ||
+ | |||
+ | |||
+ | |||
+ | ==== 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: === | ||
+ | |||
+ | < | ||
+ | === 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 " | ||
+ | cchi = UART_GetString(uartCmd, | ||
===== Appendix: DMM Scales ===== | ===== Appendix: DMM Scales ===== |