keil_examples/USBCDC/vcomdemo.c
/*----------------------------------------------------------------------------
  checks the serial state and initiates notification
 *---------------------------------------------------------------------------*/
checks the serial state and initiates notification
checks the serial state and initiates notification
void VCOM_CheckSerialState (void) {
         unsigned short temp;
  static unsigned short serialState;
  temp = CDC_GetSerialState();
  if (serialState != temp) {
     serialState = temp;
     CDC_NotificationIn();                  
  }
}
void VCOM_CheckSerialState ( void ) { unsigned short temp ; static unsigned short serialState ; temp = CDC_GetSerialState ( ) ; if ( serialState != temp ) { serialState = temp ; CDC_NotificationIn ( ) ; } }
checks the serial state and initiates notification
checks the serial state and initiates notification
// send SERIAL_STATE notification