/* Reads one character of data received over the USB CDC ACM Virtual COM Port. 
The function reads data character from the receive intermediate buffer that was received over the Virtual COM Port. */
int32_t USBD_CDC_ACM_GetChar(void)
/* Reads one character of data received over the USB CDC ACM Virtual COM Port. 
The function reads data character from the receive intermediate buffer that was received over the Virtual COM Port. */
int32_t USBD_CDC_ACM_GetChar(void)
{
    uint8_t ch;
    if ((USBD_CDC_ACM_DataRead(&ch, 1)) == 1) {
        return ((int32_t) ch);
    }
    return (-1);
}