/* Gets Line Coding from the USB CDC ACM Virtual COM Port. 
The function is a callback function that forwards USB CDC ACM request to get communication settings from the Virtual COM Port. */
__WEAK int32_t USBD_CDC_ACM_GetLineCoding(void)
/* Gets Line Coding from the USB CDC ACM Virtual COM Port. 
The function is a callback function that forwards USB CDC ACM request to get communication settings from the Virtual COM Port. */
__WEAK int32_t USBD_CDC_ACM_GetLineCoding(void)
{
    if (USBD_CDC_ACM_PortGetLineCoding(&line_coding)) {
        USBD_EP0Buf[0] = (line_coding.dwDTERate >>  0) & 0xFF;
        USBD_EP0Buf[1] = (line_coding.dwDTERate >>  8) & 0xFF;
        USBD_EP0Buf[2] = (line_coding.dwDTERate >> 16) & 0xFF;
        USBD_EP0Buf[3] = (line_coding.dwDTERate >> 24) & 0xFF;
        USBD_EP0Buf[4] =  line_coding.bCharFormat;
        USBD_EP0Buf[5] =  line_coding.bParityType;
        USBD_EP0Buf[6] =  line_coding.bDataBits;
        return (1);
    }
    return (0);
}