/* Direct UART Transmit function. 
Transmit via UART without CR and LF characters at the end of each transmission  */
GResult UART_TX_DIR(const char *initialcmd)
/* Direct UART Transmit function. 
Transmit via UART without CR and LF characters at the end of each transmission  */
GResult UART_TX_DIR(const char *initialcmd)
{
	GResult result = Failure;
	uint32_t timeout = 0x00989680; 
	uint16_t len;
	char *cmd;
	strncpy((char *) safeTXbuff, initialcmd, 255);
	safeTXbuff[255] = 0;
	cmd = (char *) safeTXbuff;
	len = strlen(cmd);
	while (TXcompleteFlag == 0) {
		timeout--;
		if (timeout == 0)
			break;
	}
	TXcompleteFlag = 0;
	if ((adi_uart_SubmitTxBuffer(hDevice, (void*) cmd, len, 0u))
	    != ADI_UART_SUCCESS)
		return Failure;
	else
		result = Success;
	delay_ms(2);
	return result;
}