IARM_UIEventSimulator.c
CMAF_Result_t sendCommand()
{
	int i;

#ifdef TRACE
	printf("[FUNC] %s [LINE] %d\n", __FUNCTION__, __LINE__);
	printf("[FUNC] %s Command=%d repeat=%d interval=%d\n", __FUNCTION__, keyCode, repeat, interval);
#endif

	for (i = 0; i < repeat; i++)
	{
		sendKeyEventToCMAF(KET_KEYDOWN, keyCode);
		usleep(100);
		sendKeyEventToCMAF(KET_KEYUP, keyCode);
		sleep(interval);
	}

	return CMAF_RESULT_SUCCESS;
}
/**
 * @brief Wrapper to send the command to CMAF.  Repeat and interval will be evaluated and executed.
 *
 * @return CMAF_Result_t Error Code.
 */
@brief Wrapper to send the command to CMAF.  Repeat and interval will be evaluated and executed.
@return CMAF_Result_t Error Code.
@brief Wrapper to send the command to CMAF . Repeat and interval will be evaluated and executed . @return CMAF_Result_t Error Code .
CMAF_Result_t sendCommand()
{
	int i;
#ifdef TRACE
	printf("[FUNC] %s [LINE] %d\n", __FUNCTION__, __LINE__);
	printf("[FUNC] %s Command=%d repeat=%d interval=%d\n", __FUNCTION__, keyCode, repeat, interval);
#endif
	for (i = 0; i < repeat; i++)
	{
		sendKeyEventToCMAF(KET_KEYDOWN, keyCode);
		usleep(100);
		sendKeyEventToCMAF(KET_KEYUP, keyCode);
		sleep(interval);
	}
	return CMAF_RESULT_SUCCESS;
}
CMAF_Result_t sendCommand ( ) { int i ; #ifdef TRACE printf ( " \n " , __FUNCTION__ , __LINE__ ) ; printf ( " \n " , __FUNCTION__ , keyCode , repeat , interval ) ; #endif for ( i = 0 ; i < repeat ; i ++ ) { sendKeyEventToCMAF ( KET_KEYDOWN , keyCode ) ; usleep ( 100 ) ; sendKeyEventToCMAF ( KET_KEYUP , keyCode ) ; sleep ( interval ) ; } return CMAF_RESULT_SUCCESS ; }
@brief Wrapper to send the command to CMAF.
@brief Wrapper to send the command to CMAF .