Handbook
Glossary
factorcode.org
lookup-baud ( m -- n )
Vocabulary
io.serial
Inputs
m
an
object
Outputs
n
an
object
Definition
USING:
system
;
IN:
io.serial
HOOK:
lookup-baud
os
( m -- n )
Methods
USING:
assocs
io.serial
kernel
system
;
M:
linux
lookup-baud
H{
{
0 0
}
{
4800 12
}
{
921600 4103
}
{
9600 13
}
{
134 4
}
{
200 6
}
{
1800 10
}
{
19200 14
}
{
75 2
}
{
1000000 4104
}
{
38400 15
}
{
57600 4097
}
{
150 5
}
{
600 8
}
{
4000000 4111
}
{
1152000 4105
}
{
115200 4098
}
{
2400 11
}
{
500000 4101
}
{
1500000 4106
}
{
230400 4099
}
{
2500000 4108
}
{
2000000 4107
}
{
3500000 4110
}
{
300 7
}
{
460800 4100
}
{
110 3
}
{
1200 9
}
{
50 1
}
{
576000 4102
}
{
3000000 4109
}
}
?at
[
invalid-baud
]
unless
;