Rev. 0.1 3/13 Copyright © 2013 by Silicon Laboratories AN758AN758IMPLEMENTING USB COMMUNICATION DEVICE CLASS (CDC) ON SiM3U1XX MCUS1. IntroductionUSB
AN75810 Rev. 0.15.1.6. CDC_Device_ReceiveByteUSB CDC receive one byte from USB OUT FIFO.Syntaxint16_t CDC_Device_ReceiveByte(USB_ClassInfo_CDC_Device_
AN758Rev. 0.1 115.2. UART FunctionsThis section details the functions found in the gUART0.c file (AN758_USB_CDC\src\generated directory). Thisfile co
AN75812 Rev. 0.15.2.4. uart_send_dataUART0 send data.Syntaxvoid uart_send_data(unsigned char *data, unsigned int count)Parametersdata: pointer to send
AN758Rev. 0.1 135.3. Application LayerThe application layer for the USB CDC firmware example can be found in the VirtualSerial.c and Descriptors.cfil
AN75814 Rev. 0.15.3.4. EVENT_USB_Device_ControlRequestEvent handler for control request.Syntaxvoid EVENT_USB_Device_ControlRequest(void)ParametersNone
AN758Rev. 0.1 155.3.6. EVENT_USB_Device_ConfigurationChangedEvent handler for the library USB Configuration changed event.Syntaxvoid EVENT_USB_Device_
AN75816 Rev. 0.15.3.8. Macros#define ENDPOINT_DIR_IN 0x80#define ENDPOINT_DIR_OUT 0x00 /** Endpoint address of the CDC device-to-host notificat
AN758Rev. 0.1 175.3.10. USB CDC DescriptorsDevice descriptor structure, this descriptor, located in flash memory, describes the overall device charact
AN75818 Rev. 0.1Example:const USB_Descriptor_Configuration_t ConfigurationDescriptor;String Descriptors#define STR0LEN 4static uint8_t const String0De
AN758Rev. 0.1 195.4. USB Low-Level FunctionsThe USB hardware access layer functions are in the AN758_USB_CDC\src\LUFA\Drivers\USB\Core\SIM3Udirectory
AN7582 Rev. 0.12. Relevant DocumentationPrecision32™ Application Notes are listed on the following website: www.silabs.com/32bit-appnotes.AN667: Ge
AN75820 Rev. 0.15.4.3. USB_Device_SetFullSpeedSet USB device as full speed.Syntaxstatic inline void USB_Device_SetFullSpeed(void)ParametersNoneReturn
AN758Rev. 0.1 215.4.6. USB_InitUSB hardware initialization.Syntaxvoid USB_Init(const uint8_t Options)ParametersOptions: USB Device Mode OptionReturn V
AN75822 Rev. 0.15.4.9. USB0_epn_handlerHandle endpoint n request.Syntaxvoid USB0_epn_handler(void)ParametersNoneReturn ValueNoneDescriptionThis functi
AN758Rev. 0.1 235.4.11. Endpoint_ConfigureEndpointTableConfigure endpoint.Syntaxbool Endpoint_ConfigureEndpointTable(const USB_Endpoint_Table_t* const
AN75824 Rev. 0.15.4.13. Endpoint_Write_Stream_LEWrite stream data to correspond endpoint.Syntaxuint8_t Endpoint_Write_Stream_LE(const void* const Buff
AN758Rev. 0.1 255.4.15. Endpoint_ClearOUTAcknowledges an OUT packet to the host on the currently selected endpointSyntaxstatic inline void Endpoint_Cl
AN75826 Rev. 0.16. CDC DriverThe CDC class is implemented in all releases of Windows, and the operating system needs an INF file for the CDCdriver. T
AN758Rev. 0.1 275. Select Browse my computer for driver software.
AN75828 Rev. 0.16. Enter the directory path of the CDC_ACM.inf file (AN758_USB_CDC\src\VirtualSerial directory). If the Include subfolders option is
AN758Rev. 0.1 299. Open Device Manager and observe the device. It will now appear under Ports (COM & LPT) with an assigned COM port number.
AN758Rev. 0.1 33.1.2. Get Line CodingThis request allows the host to find out the currently configured line coding. Table 2 defines the line codingpro
AN75830 Rev. 0.1CONTACT INFORMATIONSilicon Laboratories Inc.400 West Cesar ChavezAustin, TX 78701Tel: 1+(512) 416-8500Fax: 1+(512) 416-9669Toll Free:
AN7584 Rev. 0.13.2. Class NotificationsTable 4 shows the class notifications supported by the Abstract Control Model.3.2.1. Serial StateThis notifica
AN758Rev. 0.1 53.3. Endpoint ConfigurationTable 6 illustrates the endpoint configuration for the Abstract Control Model.Figure 2 shows a standard CDC
AN7586 Rev. 0.14. Firmware Example OverviewThe firmware example included with this application note contains the driver, USB stack for the SiM3U1xx,
AN758Rev. 0.1 75. Detailed List of FunctionsThis section discusses the detailed function declarations in the CDC USB stack firmware example.5.1. CDC
AN7588 Rev. 0.15.1.2. CDC_Device_ConfigureEndpointsUSB CDC device endpoint configuration.Syntaxbool CDC_Device_ConfigureEndpoints(USB_ClassInfo_CDC_De
AN758Rev. 0.1 95.1.4. CDC_Device_SendByteUSB CDC sends one byte to USB IN FIFO.Syntaxuint8_t CDC_Device_SendByte(USB_ClassInfo_CDC_Device_t* const CDC
Comments to this Manuals