
Classes | |
| class | EventHandler |
Public Member Functions | |
| def | __del__ (self) |
| def | __init__ (self, vid_pid=None, com_port='', baudrate=1000000, event_handler=EventHandler()) |
| def | checkProtocolVersion (self) |
| def | checkStatus (self) |
| def | close (self) |
| def | disableAsicData (self) |
| def | disableImu (self) |
| def | disableIQStream (self) |
| def | enableAsicData (self) |
| def | enableImu (self) |
| def | enableIQStream (self) |
| def | getAlgoConfig (self, sensor_id) |
| def | getInfo (self) |
| def | getSensorConfig (self, sensor_id) |
| def | open (self, knargs) |
| def | reset (self) |
| def | setAlgoConfig (self, algo_config) |
| def | setODR (self, odr_ms) |
| def | setRange (self, range_mm, sensor_id=None) |
| def | setSRange (self, nsamples, sensor_id=None) |
| def | startDeviceProcessing (self) |
| def | stopDeviceProcessing (self) |
Private Member Functions | |
| def | _connect (self) |
| def | _disconnect (self) |
| def | _init_done_handler (self, event_data) |
| def | _pkt_handler (self, pkt_id, pkt_data) |
| def | _read_from_serial (self) |
| def | _resp_handler (self, event_id, event_data) |
| def | _send_bin_command (self, command, code="", args_tuple=()) |
| def | _sync_bin_command (self, command, code="", timeout=2, nb_retry=0, args_tuple=()) |
| def | _user_event_handler (self, user_event_cb, event_data) |
| def | _user_event_worker (self) |
Public interface for controlling the device. Handlers can be set to process the data from the board.
Definition at line 87 of file control.py.
| def redswallow.control.DeviceControl.__init__ | ( | self, | |
vid_pid = None, |
|||
com_port = '', |
|||
baudrate = 1000000, |
|||
event_handler = EventHandler() |
|||
| ) |
Definition at line 119 of file control.py.
| def redswallow.control.DeviceControl.__del__ | ( | self | ) |
Definition at line 165 of file control.py.
|
private |
Definition at line 300 of file control.py.
|
private |
Definition at line 311 of file control.py.
|
private |
Definition at line 373 of file control.py.
|
private |
Definition at line 368 of file control.py.
|
private |
Definition at line 358 of file control.py.
|
private |
Definition at line 378 of file control.py.
|
private |
Definition at line 332 of file control.py.
|
private |
Definition at line 337 of file control.py.
|
private |
Definition at line 385 of file control.py.
|
private |
Definition at line 388 of file control.py.
| def redswallow.control.DeviceControl.checkProtocolVersion | ( | self | ) |
Definition at line 195 of file control.py.
| def redswallow.control.DeviceControl.checkStatus | ( | self | ) |
Definition at line 201 of file control.py.
| def redswallow.control.DeviceControl.close | ( | self | ) |
Definition at line 180 of file control.py.
| def redswallow.control.DeviceControl.disableAsicData | ( | self | ) |
Definition at line 222 of file control.py.
| def redswallow.control.DeviceControl.disableImu | ( | self | ) |
Definition at line 216 of file control.py.
| def redswallow.control.DeviceControl.disableIQStream | ( | self | ) |
Definition at line 210 of file control.py.
| def redswallow.control.DeviceControl.enableAsicData | ( | self | ) |
Definition at line 219 of file control.py.
| def redswallow.control.DeviceControl.enableImu | ( | self | ) |
Definition at line 213 of file control.py.
| def redswallow.control.DeviceControl.enableIQStream | ( | self | ) |
Definition at line 207 of file control.py.
| def redswallow.control.DeviceControl.getAlgoConfig | ( | self, | |
| sensor_id | |||
| ) |
Definition at line 228 of file control.py.
| def redswallow.control.DeviceControl.getInfo | ( | self | ) |
Definition at line 274 of file control.py.
| def redswallow.control.DeviceControl.getSensorConfig | ( | self, | |
| sensor_id | |||
| ) |
Definition at line 225 of file control.py.
| def redswallow.control.DeviceControl.open | ( | self, | |
| knargs | |||
| ) |
Definition at line 168 of file control.py.
| def redswallow.control.DeviceControl.reset | ( | self | ) |
Definition at line 189 of file control.py.
| def redswallow.control.DeviceControl.setAlgoConfig | ( | self, | |
| algo_config | |||
| ) |
Definition at line 231 of file control.py.
| def redswallow.control.DeviceControl.setODR | ( | self, | |
| odr_ms | |||
| ) |
Definition at line 265 of file control.py.
| def redswallow.control.DeviceControl.setRange | ( | self, | |
| range_mm, | |||
sensor_id = None |
|||
| ) |
Definition at line 241 of file control.py.
| def redswallow.control.DeviceControl.setSRange | ( | self, | |
| nsamples, | |||
sensor_id = None |
|||
| ) |
Definition at line 250 of file control.py.
| def redswallow.control.DeviceControl.startDeviceProcessing | ( | self | ) |
Definition at line 259 of file control.py.
| def redswallow.control.DeviceControl.stopDeviceProcessing | ( | self | ) |
Definition at line 262 of file control.py.
| redswallow.control.DeviceControl.baudrate |
Definition at line 122 of file control.py.
| redswallow.control.DeviceControl.com_port |
Definition at line 121 of file control.py.
| redswallow.control.DeviceControl.connected_sensors |
Definition at line 174 of file control.py.
| redswallow.control.DeviceControl.event_handlers |
Definition at line 128 of file control.py.
| redswallow.control.DeviceControl.exception_handler |
Definition at line 157 of file control.py.
| redswallow.control.DeviceControl.init_done_event |
Definition at line 127 of file control.py.
| redswallow.control.DeviceControl.init_status |
Definition at line 126 of file control.py.
| redswallow.control.DeviceControl.openned |
Definition at line 124 of file control.py.
| redswallow.control.DeviceControl.packet_decoder |
Definition at line 125 of file control.py.
| redswallow.control.DeviceControl.poller_thread |
Definition at line 158 of file control.py.
| redswallow.control.DeviceControl.response_data |
Definition at line 163 of file control.py.
| redswallow.control.DeviceControl.response_event |
Definition at line 161 of file control.py.
| redswallow.control.DeviceControl.response_pkt |
Definition at line 162 of file control.py.
| redswallow.control.DeviceControl.serial |
Definition at line 123 of file control.py.
| redswallow.control.DeviceControl.vid_pid |
Definition at line 120 of file control.py.
| redswallow.control.DeviceControl.worker_queue |
Definition at line 160 of file control.py.
| redswallow.control.DeviceControl.worker_thread |
Definition at line 159 of file control.py.