m2m_hw_uart_read

M2M_T_HW_UART_RESULT m2m_hw_uart_read(M2M_T_HW_UART_HANDLE handle,

CHAR *buffer, INT32 len, INT32 *len_read)

 

Description: the function receives data from UART. The receiving modes are set by the function m2m_hw_uart_ioctl.

 

Parameters:
handle:         UART port handle
buffer:                   pointer to the allocated buffer that will be filled with received data
len:              number of characters to be read.

len_read:      pointer to the allocated variable that will be filled with the number of data read

(bytes).

 

Return value:
         refer to M2M_T_HW_UART_RESULT enum

 

Output data:
        
on success:
                   <
buffer> points to the buffer filled with the read data.
                   <
len_read> points to the number of characters in the buffer.