IARM_BUS_UIEventSimulator.c
void usage(void)
{
	int index = 0;
	int length = ((sizeof table) / sizeof table[0]);

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

	printf("--------------------------------------------------\n");
	printf("--------------------------------------------------\n");
	printf("---                                            ---\n");
	printf("--                                              --\n");
	printf("-                                                -\n");
	printf("-h print usage\n");
	printf("-r repeat number of times command is sent (default is once)\n");
	printf("-p press and hold for interval (default is 5 seconds)\n");
	printf("-i interval between commands (default 1 second\n");
	printf("-k command to send (see list below)\n");
	for (index = 0; index < length; index++)
	{
		printf("KeyCode = %s \n", table[index].comamnd);
	}
	printf("Example:\n");
	printf("\t %s -kexit\n", executableName);
	printf("\t %s -r3 -i2 -kmenu\n", executableName);
	printf("\t %s -kexit -p3\n", executableName);
	printf("\t %s -r10 -i10 -kchup\n", executableName);
	printf("\t %s -kchdown -r5 \n", executableName);
	printf("-                                                -\n");
	printf("--                                              --\n");
	printf("---                                            ---\n");
	printf("--------------------------------------------------\n");
	printf("--------------------------------------------------\n");
}
/**
 * @brief print the program usage.
 *
 */
@brief print the program usage.
@brief print the program usage .
void usage(void)
{
	int index = 0;
	int length = ((sizeof table) / sizeof table[0]);
#ifdef TRACE
	printf("[FUNC] %s [LINE] %d\n", __FUNCTION__, __LINE__);
#endif
	printf("--------------------------------------------------\n");
	printf("--------------------------------------------------\n");
	printf("---                                            ---\n");
	printf("--                                              --\n");
	printf("-                                                -\n");
	printf("-h print usage\n");
	printf("-r repeat number of times command is sent (default is once)\n");
	printf("-p press and hold for interval (default is 5 seconds)\n");
	printf("-i interval between commands (default 1 second\n");
	printf("-k command to send (see list below)\n");
	for (index = 0; index < length; index++)
	{
		printf("KeyCode = %s \n", table[index].comamnd);
	}
	printf("Example:\n");
	printf("\t %s -kexit\n", executableName);
	printf("\t %s -r3 -i2 -kmenu\n", executableName);
	printf("\t %s -kexit -p3\n", executableName);
	printf("\t %s -r10 -i10 -kchup\n", executableName);
	printf("\t %s -kchdown -r5 \n", executableName);
	printf("-                                                -\n");
	printf("--                                              --\n");
	printf("---                                            ---\n");
	printf("--------------------------------------------------\n");
	printf("--------------------------------------------------\n");
}
void usage ( void ) { int index = 0 ; int length = ( ( sizeof table ) / sizeof table [ 0 ] ) ; #ifdef TRACE printf ( " \n " , __FUNCTION__ , __LINE__ ) ; #endif printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; for ( index = 0 ; index < length ; index ++ ) { printf ( " \n " , table [ index ] . comamnd ) ; } printf ( " \n " ) ; printf ( " \t \n " , executableName ) ; printf ( " \t \n " , executableName ) ; printf ( " \t \n " , executableName ) ; printf ( " \t \n " , executableName ) ; printf ( " \t \n " , executableName ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; }
@brief print the program usage.
@brief print the program usage .