M2M_T_HW_UART_RESULT m2m_hw_uart_write(M2M_T_HW_UART_HANDLE handle,
CHAR *buffer, INT32 len, INT32 *len_sent)
Description: the function sends data through UART. The sending modes are set by the function m2m_hw_uart_ioctl.
Parameters:
handle:
UART port handle
buffer:
pointer to the allocated buffer containing the data to be sent
len:
number of characters to be
sent.
len_sent: pointer to the allocated
variable that will be filled with the number of data sent (bytes).
Return
value:
refer to
M2M_T_HW_UART_RESULT enum
Output
data:
on success: number
of bytes that was sent
Examples: 19.1.8 PrintToUart