User Tools

Site Tools


en:pfw:usb_cdc_driver_for_rp2040

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:pfw:usb_cdc_driver_for_rp2040 [2025-12-02 14:39] – [What we need to do in short] willemen:pfw:usb_cdc_driver_for_rp2040 [2025-12-02 14:50] (current) – [Pseudo code] willem
Line 16: Line 16:
  
 <code> <code>
-DEFINE DEVICE-DECRIPTOR \ Device descriptor (18 bytes)+hex 
 +Function DEVICE-DECRIPTOR \ 18 bytes
 12 c, 01 c, 10 c, 01 c, ( 1.10 ) EF c, 02 c, 01 c, 40 c, 66 c, 66 c, ( 6666 ) 12 c, 01 c, 10 c, 01 c, ( 1.10 ) EF c, 02 c, 01 c, 40 c, 66 c, 66 c, ( 6666 )
 10 c, 66 c, ( 6610 ) 00 c, 01 c, ( vsn 1.00 ) 00 c, 02 c, 00 c, 01 c,  align 10 c, 66 c, ( 6610 ) 00 c, 01 c, ( vsn 1.00 ) 00 c, 02 c, 00 c, 01 c,  align
  
-DEFINE CONFIGURATION-DESCRIPTOR \ Configuration descriptor (9 or 75 bytes)+Function CONFIGURATION-DESCRIPTOR \ 9 or 75 bytes
 9 c,  2 c,  4B c,  0 c,  2 c,  1 c,  0 c,  80 c,  FA c, \ Maximum power = 500mA 9 c,  2 c,  4B c,  0 c,  2 c,  1 c,  0 c,  80 c,  FA c, \ Maximum power = 500mA
 8 c,  0B c,  0 c,  2 c,  2 c,  2 c,  1 c,  0 c,         \ Interface Association Descriptor - CDC 0 8 c,  0B c,  0 c,  2 c,  2 c,  2 c,  1 c,  0 c,         \ Interface Association Descriptor - CDC 0
Line 32: Line 33:
 7 c,  5 c,  82 c,  2 c,  40 c, 0 c,  0 c,               \ Endpoint 2 IN descriptor 7 c,  5 c,  82 c,  2 c,  40 c, 0 c,  0 c,               \ Endpoint 2 IN descriptor
 7 c,  5 c,  3 c,  2 c,  40 c, 0 c,  0 c,  align         \ Endpoint 3 OUT descriptor 7 c,  5 c,  3 c,  2 c,  40 c, 0 c,  0 c,  align         \ Endpoint 3 OUT descriptor
 +
 +decimal
 +Function  USB-STATE  0 ,           \ Hold current USB state in first half word: 3 = ready
 +                                   \ In second half word are memory for the 900/880 requests
 +          4 c, 3 c, 9 c, 4 c,      \ English/US = language ID
 +          115200 ,  0 c,  0 c,  8 c,  align  \ Line data: 115k2, Stop bits, Parity, Data bits
 +
 +hex
 </code> </code>
  
  
en/pfw/usb_cdc_driver_for_rp2040.1764682793.txt.gz · Last modified: 2025-12-02 14:39 by willem