Classes | Functions | Variables
pyuavcan_v0.driver.slcan Namespace Reference

Classes

class  IPCCommandLineExecutionRequest
 
class  IPCCommandLineExecutionResponse
 
class  RxWorker
 
class  SLCAN
 
class  TxWorker
 

Functions

def _init_adapter (conn, bitrate)
 
def _io_process (device, tx_queue, rx_queue, log_queue, parent_pid, bitrate=None, baudrate=None, max_adapter_clock_rate_error_ppm=None, fixed_rx_delay=None, max_estimated_rx_delay_to_resync=None)
 
def _raise_self_process_priority ()
 
def _stop_adapter (conn)
 

Variables

 _pending_command_line_execution_requests = queue.Queue()
 
string ACK = b'\r'
 
float ACK_TIMEOUT = 0.5
 
string CLI_END_OF_LINE = b'\r\n'
 
string CLI_END_OF_TEXT = b'\x03'
 
int DEFAULT_BAUDRATE = 3000000
 
int DEFAULT_BITRATE = 1000000
 
float DEFAULT_FIXED_RX_DELAY = 0.0002
 
int DEFAULT_MAX_ADAPTER_CLOCK_RATE_ERROR_PPM = 200
 
float DEFAULT_MAX_ESTIMATED_RX_DELAY_TO_RESYNC = 0.1
 
int IO_PROCESS_INIT_TIMEOUT = 10
 
int IO_PROCESS_NICENESS_INCREMENT = -18
 
string IPC_COMMAND_STOP = 'stop'
 
string IPC_SIGNAL_INIT_OK = 'init_ok'
 
 logger = getLogger(__name__)
 
int MAX_SUCCESSIVE_ERRORS_TO_GIVE_UP = 1000
 
string NACK = b'\x07'
 
bool RUNNING_ON_WINDOWS = True
 
int RX_QUEUE_SIZE = 32767
 
 serial = None
 
int TIMESTAMP_OVERFLOW_PERIOD = 60
 
int TX_QUEUE_SIZE = 1000
 

Function Documentation

◆ _init_adapter()

def pyuavcan_v0.driver.slcan._init_adapter (   conn,
  bitrate 
)
private

Definition at line 382 of file slcan.py.

◆ _io_process()

def pyuavcan_v0.driver.slcan._io_process (   device,
  tx_queue,
  rx_queue,
  log_queue,
  parent_pid,
  bitrate = None,
  baudrate = None,
  max_adapter_clock_rate_error_ppm = None,
  fixed_rx_delay = None,
  max_estimated_rx_delay_to_resync = None 
)
private

Definition at line 468 of file slcan.py.

◆ _raise_self_process_priority()

def pyuavcan_v0.driver.slcan._raise_self_process_priority ( )
private

Definition at line 370 of file slcan.py.

◆ _stop_adapter()

def pyuavcan_v0.driver.slcan._stop_adapter (   conn)
private

Definition at line 462 of file slcan.py.

Variable Documentation

◆ _pending_command_line_execution_requests

pyuavcan_v0.driver.slcan._pending_command_line_execution_requests = queue.Queue()
private

Definition at line 119 of file slcan.py.

◆ ACK

string pyuavcan_v0.driver.slcan.ACK = b'\r'

Definition at line 63 of file slcan.py.

◆ ACK_TIMEOUT

float pyuavcan_v0.driver.slcan.ACK_TIMEOUT = 0.5

Definition at line 62 of file slcan.py.

◆ CLI_END_OF_LINE

string pyuavcan_v0.driver.slcan.CLI_END_OF_LINE = b'\r\n'

Definition at line 65 of file slcan.py.

◆ CLI_END_OF_TEXT

string pyuavcan_v0.driver.slcan.CLI_END_OF_TEXT = b'\x03'

Definition at line 66 of file slcan.py.

◆ DEFAULT_BAUDRATE

int pyuavcan_v0.driver.slcan.DEFAULT_BAUDRATE = 3000000

Definition at line 60 of file slcan.py.

◆ DEFAULT_BITRATE

int pyuavcan_v0.driver.slcan.DEFAULT_BITRATE = 1000000

Definition at line 59 of file slcan.py.

◆ DEFAULT_FIXED_RX_DELAY

float pyuavcan_v0.driver.slcan.DEFAULT_FIXED_RX_DELAY = 0.0002

Definition at line 69 of file slcan.py.

◆ DEFAULT_MAX_ADAPTER_CLOCK_RATE_ERROR_PPM

int pyuavcan_v0.driver.slcan.DEFAULT_MAX_ADAPTER_CLOCK_RATE_ERROR_PPM = 200

Definition at line 68 of file slcan.py.

◆ DEFAULT_MAX_ESTIMATED_RX_DELAY_TO_RESYNC

float pyuavcan_v0.driver.slcan.DEFAULT_MAX_ESTIMATED_RX_DELAY_TO_RESYNC = 0.1

Definition at line 70 of file slcan.py.

◆ IO_PROCESS_INIT_TIMEOUT

int pyuavcan_v0.driver.slcan.IO_PROCESS_INIT_TIMEOUT = 10

Definition at line 72 of file slcan.py.

◆ IO_PROCESS_NICENESS_INCREMENT

int pyuavcan_v0.driver.slcan.IO_PROCESS_NICENESS_INCREMENT = -18

Definition at line 73 of file slcan.py.

◆ IPC_COMMAND_STOP

string pyuavcan_v0.driver.slcan.IPC_COMMAND_STOP = 'stop'

Definition at line 82 of file slcan.py.

◆ IPC_SIGNAL_INIT_OK

string pyuavcan_v0.driver.slcan.IPC_SIGNAL_INIT_OK = 'init_ok'

Definition at line 81 of file slcan.py.

◆ logger

pyuavcan_v0.driver.slcan.logger = getLogger(__name__)

Definition at line 30 of file slcan.py.

◆ MAX_SUCCESSIVE_ERRORS_TO_GIVE_UP

int pyuavcan_v0.driver.slcan.MAX_SUCCESSIVE_ERRORS_TO_GIVE_UP = 1000

Definition at line 75 of file slcan.py.

◆ NACK

string pyuavcan_v0.driver.slcan.NACK = b'\x07'

Definition at line 64 of file slcan.py.

◆ RUNNING_ON_WINDOWS

bool pyuavcan_v0.driver.slcan.RUNNING_ON_WINDOWS = True

Definition at line 42 of file slcan.py.

◆ RX_QUEUE_SIZE

int pyuavcan_v0.driver.slcan.RX_QUEUE_SIZE = 32767

Definition at line 51 of file slcan.py.

◆ serial

pyuavcan_v0.driver.slcan.serial = None

Definition at line 36 of file slcan.py.

◆ TIMESTAMP_OVERFLOW_PERIOD

int pyuavcan_v0.driver.slcan.TIMESTAMP_OVERFLOW_PERIOD = 60

Definition at line 57 of file slcan.py.

◆ TX_QUEUE_SIZE

int pyuavcan_v0.driver.slcan.TX_QUEUE_SIZE = 1000

Definition at line 55 of file slcan.py.



uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:04