annotate cp2102/baudtab-gsm @ 68:5cbde3c80c24

fteeprom-{erase,prog}: detach logic: change to detach by default As it turns out, detaching all ttyUSB interfaces of a multichannel device does not require outside knowledge of how many channels there are, as in our previous -d option design that is being removed here - instead we can read the bNumInterfaces constant from the USB device's config descriptor and thus know how many interfaces there are in total. Based on this discovery, change the design of fteeprom-{erase,prog} as follows: * remove -d option; * flip the default to where we detach all interfaces by default; * add -n option to NOT detach any interfaces.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 13 Sep 2023 06:37:03 +0000
parents 7941a5e06d6a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
61
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # This CP2102 baud rate table is the version that is needed for talking
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # to 13 MHz GSM devices (16x UART clock input) faster than 115200 bps:
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 # standard baud rates 230400/460800/921600 have been replaced with
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 # GSM-specific (13 MHz based) 203125/406250/812500.
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 baud-entry 0: 1500000 = FFF0, FFFA, 1, 0 # 1500000 baud, 12 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 baud-entry 1: 1500000 = FFF0, FFFA, 1, 0 # 1500000 baud, 12 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 baud-entry 2: 1200000 = FFEC, FFF8, 1, 0 # 1200000 baud, 16 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 baud-entry 3: 812500 = FFE2, FFF4, 1, 0 # 800000 baud, 24 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 baud-entry 4: 576000 = FFD6, FFF0, 1, 0 # 571428 baud, 32 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 baud-entry 5: 500000 = FFD0, FFEE, 1, 0 # 500000 baud, 36 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 baud-entry 6: 406250 = FFC5, FFE9, 1, 0 # 406779 baud, 46 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 baud-entry 7: 256000 = FFA2, FFDC, 1, 0 # 255319 baud, 72 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 baud-entry 8: 250000 = FFA0, FFDC, 1, 0 # 250000 baud, 72 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 baud-entry 9: 203125 = FF8A, FFD3, 1, 0 # 203389 baud, 90 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 baud-entry 10: 153600 = FF64, FFC5, 1, 0 # 153846 baud, 118 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 baud-entry 11: 128000 = FF44, FFB9, 1, 0 # 127659 baud, 142 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 baud-entry 12: 115200 = FF30, FFB2, 1, 0 # 115384 baud, 156 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 baud-entry 13: 76800 = FEC8, FF8B, 1, 0 # 76923 baud, 234 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 baud-entry 14: 64000 = FE89, FF73, 1, 0 # 64000 baud, 282 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 baud-entry 15: 57600 = FE5F, FF63, 1, 0 # 57553 baud, 314 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 baud-entry 16: 56000 = FE53, FF5F, 1, 0 # 55944 baud, 322 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 baud-entry 17: 51200 = FE2B, FF50, 1, 0 # 51172 baud, 352 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 baud-entry 18: 38400 = FD8F, FF15, 1, 0 # 38400 baud, 470 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 baud-entry 19: 28800 = FCBF, FEC7, 1, 0 # 28811 baud, 626 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 baud-entry 20: 19200 = FB1E, FE2B, 1, 0 # 19200 baud, 938 us
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 baud-entry 21: 16000 = FA24, FE0C, 1, 0 # 16000 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 baud-entry 22: 14400 = F97D, FE0C, 1, 0 # 14397 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 baud-entry 23: 9600 = F63C, FE0C, 1, 0 # 9600 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 baud-entry 24: 7200 = F2FB, FE0C, 1, 0 # 7200 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 baud-entry 25: 4800 = EC78, FE0C, 1, 0 # 4800 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 baud-entry 26: 4000 = E890, FE0C, 1, 0 # 4000 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 baud-entry 27: 2400 = D8F0, FE0C, 1, 0 # 2400 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 baud-entry 28: 1800 = CBEB, FE0C, 1, 0 # 1800 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 baud-entry 29: 1200 = B1E0, FE0C, 1, 0 # 1200 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 baud-entry 30: 600 = 63C0, FE0C, 1, 0 # 600 baud, 1.000 ms
7941a5e06d6a cp2102/baudtab-{gsm,std}: two important baud rate tables of interest
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 baud-entry 31: 300 = B1E0, FE0C, 4, 0 # 300 baud, 1.000 ms