| Electronic Components Datasheet Search |
|
CP2103 Datasheet(PDF) 25 Page - Silicon Laboratories |
|
|
|||||||||||||||||||||||||||||
CP2103 Datasheet(HTML) 25 Page - Silicon Laboratories |
|
25 / 36 page ![]() AN169 Rev. 2.3 25 A PPE N DI X B—F ORMAT OF U SER -D EFINED P RO DU CT D ESCRIPT ION AND S ERIAL N UMBE R STRINGS Supported Devices: C8051F320/1/6/7, C8051F340/ 1/2/3/4/5/6/7/8/9/A/B/C/D, C8051F380/1/2/3/4/5/6/7, C8051T320/1/2/3/6/7, C8051T620/1/2/3 It is possible for the API to use strings defined and allocated in user firmware instead of the API default strings. The syntax for defining and using custom strings is: unsigned char CustomString[]={number of string elements,0x03,'A',0,'B',0,'C',0...'Z',0}; The number of string elements = number of letters x 2 + 2, since every letter needs to be separated from the next by zeros, and USB requires that the first element be the length, and the second element is 0x03, meaning string descriptor type. This sounds harder than it is, for example: //ABC Inc unsigned char CustomString1[]={16,0x03,'A',0,'B',0,'C',0,' ',0,'I',0,'n',0,'c',0}; //Widget unsigned char CustomString2[]={14,0x03,'W',0,'i',0,'d',0,'g',0,'e',0,'t',0}; //12345 unsigned char CustomString3[]={12,0x03,'1',0,'2',0,'3',0,'4',0,'5',0}; Then, if the Vendor ID and Product ID were 0xABCD and 0x1123, the call to USB_Init would be USB_Init (0xABCD, 0x1123, CustomString1, CustomString2, CustomString3); Note: It is useful to use the code keyword preceding the CustomString definitions, so that the strings are located in code space. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |