Browse Subversion Repository
Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c
Parent Directory
| Revision Log
| Patch
| 1011 |
|
|
| 1012 |
int GetCommSerialBaudRate(int id) |
int GetCommSerialBaudRate(int id) |
| 1013 |
{ |
{ |
| 1014 |
switch (id) { |
char *ch; |
| 1015 |
case IdBaud110: |
int val; |
|
return 110; |
|
|
case IdBaud300: |
|
|
case IdBaud600: |
|
|
case IdBaud1200: |
|
|
case IdBaud2400: |
|
|
case IdBaud4800: |
|
|
case IdBaud9600: |
|
|
return 300 << (id - IdBaud110 -1); |
|
|
case IdBaud14400: |
|
|
return 14400; |
|
|
case IdBaud19200: |
|
|
return 19200; |
|
|
case IdBaud38400: |
|
|
return 38400; |
|
|
case IdBaud57600: |
|
|
case IdBaud115200: |
|
|
case IdBaud230400: |
|
|
case IdBaud460800: |
|
|
case IdBaud921600: |
|
|
return 57600 << (id - IdBaud38400 -1); |
|
|
} |
|
| 1016 |
|
|
| 1017 |
return 0; |
// id-1がリストのindexとなる。 |
| 1018 |
|
ch = BaudList[id - 1]; |
| 1019 |
|
val = atoi(ch); |
| 1020 |
|
return (val); |
| 1021 |
} |
} |
| 1022 |
|
|
| 1023 |
BOOL PrnOpen(PCHAR DevName) |
BOOL PrnOpen(PCHAR DevName) |
|
|
Legend:
| Removed from v.3249 |
|
| changed lines |
| |
Added in v.3268 |
|
|
|