====== comxEvent ====== ''void com0Event ( ) '' \\ ''void com1Event ( ) '' \\ ''void com2Event ( ) '' \\ The event handler called when a receive event occurs on serial channel x (x=0 or 1 or 2). NOTE: The event handler will continue to be called until the receive buffer is emptied. #include "moacon500.h" void cmain(void) { openCom(0,115200,C8N1); // Open serial channel 0 startCom0Event(); // Begin receiving events on channel 0 while(1) { } // Run forever } void com0Event(void) // This function will be called when an event { // occurs on channel 0 while (comLen(0) > 0) // Continue until all data is processed. { comPut(0, comGet(0)); // Echo data back to sender } } [[MOACON:index#System_Library:|go MOACON home]]