usb_drv_cdc_class

USB Communication Device Class driver

Author Albert Faber, Copyright © 2008..2009, all rights reserved.
Adapted-by - Matthew Schinkel
Compiler >=2.4q2

Description

USB Communication Device Class (CDC) code
This USB library files contains the low level implementation to perform serial
communication over a USB interface. The usage of this library requires detailed
knowledge of the USB interface and requires that several configuration parameters
are defined correctly. In order to make USB serial communication more accessible
for the end user, I would highly recommend to use the usb_serial library




Sources

http://www.usb.org for USB specifications


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions

  • usb_cdc_rx_avail() return bit

    This function returns there has been a character received, function will return true
    if there is at least one pending receive character, false otherwise
    
    

  • does_sie_owns_tx_buffer() return bit

    This function returns the status of the SIE tx buffer. Either the SIE can own the
    transmit buffer (tranmit is pending) or it can be owned by the CPU. This function
    return true if the SIE owns the buffer, otherwise false is returned
    
    

  • usb_cdc_line_status() return byte

    This function returns the line status. If on the host side the COM port has not been
    opened, the return status will be 0x00, otherwise it will be != 0
    
    

  • usb_cdc_getc() return byte

    This usb_cdc_getc function wait (blocking) until a character has been received.
    The byte value of the received character is returned by this function
    
    

  • usb_cdc_tx_empty() return byte

    This function returns the empty status of the transmit FIFO, it will return true if
    transmit FIFO is empty, false otherwise
    
    


Related samples

No sample found