2020-08-16 19:49:52 +00:00
|
|
|
from .connector import ConnectorSource
|
2020-08-16 21:22:46 +00:00
|
|
|
from owrx.command import Flag, Option, Argument
|
2020-08-16 19:49:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
class RtlTcpSource(ConnectorSource):
|
|
|
|
def getCommandMapper(self):
|
|
|
|
return (
|
|
|
|
super()
|
|
|
|
.getCommandMapper()
|
|
|
|
.setBase("rtl_tcp_connector")
|
2021-01-20 16:01:46 +00:00
|
|
|
.setMappings(
|
|
|
|
{
|
|
|
|
"bias_tee": Flag("-b"),
|
|
|
|
"direct_sampling": Option("-e"),
|
|
|
|
"remote": Argument(),
|
|
|
|
}
|
|
|
|
)
|
2020-08-16 19:49:52 +00:00
|
|
|
)
|