Ejemplo n.º 1
0
void periodic_ping(const int64_t * periodic_100_ms) {

   printf("sender: periodic dispatch received (%" PRI64 ").  Writing to receiver \n", *periodic_100_ms);
   
   uint32_t test_data = ((uint32_t) *periodic_100_ms) * 2 + 1;

   printf("sender: sending test data: (%d) to receiver \n", test_data);
   
   bool result = ping_Output1(&test_data);
   printf("first attempt at pinging receiver was: %d. \n", result); 

   result = ping_Output1(&test_data);
   printf("second attempt at pinging receiver was: %d. \n", result); 

}
Ejemplo n.º 2
0
void periodic_ping(const int64_t * periodic_100_ms) {

   printf("sender: periodic dispatch received (%" PRI64 ").  Writing to receiver \n", *periodic_100_ms);
   
   test8__a_struct_impl test_data;
   test_data.field1 = 1.0;
   test_data.field2 = 2.0;
   
   printf("sender: sending test data: (%f, %f) to receiver \n", test_data.field1, test_data.field2);
   
   bool result = ping_Output1(&test_data);
   printf("first attempt at pinging receiver was: %d. \n", result); 

   result = ping_Output1(&test_data);
   printf("second attempt at pinging receiver was: %d. \n", result); 

}
Ejemplo n.º 3
0
void periodic_ping(const int64_t * periodic_100_ms) {

   printf("sender: periodic dispatch received (%" PRI64 ").  Writing to receiver \n", *periodic_100_ms);
   
   uint32_t test_data = ((uint32_t)*periodic_100_ms) * 2 + 1;
   printf("sender: sending test data: (%d) to receiver \n", test_data);
   
   ping_Output1(&test_data);
}
Ejemplo n.º 4
0
void periodic_ping(const int64_t *periodic_100_ms) {

   test_uart__uart_packet_impl packet;
   printf("sender ping received (%ll).  Writing to receiver \n", *periodic_100_ms);
   packet.uart_num = 0;
   packet.datum = (uint32_t)(*periodic_100_ms) + 1;
   ping_Output1(&packet); 
	
}
Ejemplo n.º 5
0
void sender_periodic_ping(const int64_t *the_time) {

	#ifdef __TB_OS_VXWORKS__
		// VxWorks doesn't support long longs for printing.
		printf("sender: periodic dispatch received at time: %d.  Writing to receiver. \n", (int32_t)(*the_time));
	#elif __TB_OS_ECHRONOS__
		debug_print("sender: periodic dispatch received at time ");
		debug_printhex32((uint32_t)*the_time);
		debug_println(".  Writing to receiver.\n");
	#elif __TB_OS_LINUX__
		printf("sender: periodic dispatch received at time: %" PRId64 ".  Writing to receiver. \n", *the_time);
	#else
		printf("sender: periodic dispatch received at time: %lld.  Writing to receiver. \n", *the_time);
	#endif	
	
   uint32_t to_send = ((uint32_t)*the_time) + 1;
   ping_Output1(&to_send);
 	
}
Ejemplo n.º 6
0
void sender_periodic_ping(const int64_t * periodic_100_ms) {

   printf("sender ping received (%d).  Writing to receiver \n", (int32_t)*periodic_100_ms);
   ping_Output1(); 
}