Classes | Functions | Variables
pyuavcan_v0.transport Namespace Reference

Classes

class  ArrayValue
 
class  BaseValue
 
class  CompoundValue
 
class  Float32IntegerUnion
 
class  Frame
 
class  PrimitiveValue
 
class  Transfer
 
class  TransferError
 
class  TransferManager
 
class  VoidValue
 

Functions

def array_len_bits_from_max_size (max_size)
 
def bchr (x)
 
def be_from_le_bits (s, bitlen)
 
def bits_from_bytes (s)
 
def bytes_from_bits (s)
 
def cast (value, dtype)
 
def enum_mark_last (iterable, start=0)
 
def f16_from_f32 (float32)
 
def f32_from_f16 (float16)
 
def format_bits (s)
 
def get_active_union_field (obj)
 
def get_constants (obj)
 
def get_fields (obj)
 
def get_uavcan_data_type (obj)
 
def is_request (obj)
 
def is_response (obj)
 
def is_union (obj)
 
def le_from_be_bits (s, bitlen)
 
def switch_union_field (obj, value)
 
def union_tag_bits_from_num_elements (num_elements)
 

Variables

 bchr = chr
 
 long = int
 
 MutableSequence = collections.abc.MutableSequence
 

Function Documentation

◆ array_len_bits_from_max_size()

def pyuavcan_v0.transport.array_len_bits_from_max_size (   max_size)

Definition at line 125 of file transport.py.

◆ bchr()

def pyuavcan_v0.transport.bchr (   x)

Definition at line 38 of file transport.py.

◆ be_from_le_bits()

def pyuavcan_v0.transport.be_from_le_bits (   s,
  bitlen 
)

Definition at line 100 of file transport.py.

◆ bits_from_bytes()

def pyuavcan_v0.transport.bits_from_bytes (   s)

Definition at line 92 of file transport.py.

◆ bytes_from_bits()

def pyuavcan_v0.transport.bytes_from_bits (   s)

Definition at line 96 of file transport.py.

◆ cast()

def pyuavcan_v0.transport.cast (   value,
  dtype 
)

Definition at line 226 of file transport.py.

◆ enum_mark_last()

def pyuavcan_v0.transport.enum_mark_last (   iterable,
  start = 0 
)
Returns a generator over iterable that tells whether the current item is the last one.
Usage:
    >>> iterable = range(10)
    >>> for index, is_last, item in enum_mark_last(iterable):
    >>>     print(index, item, end='\n' if is_last else ', ')

Definition at line 128 of file transport.py.

◆ f16_from_f32()

def pyuavcan_v0.transport.f16_from_f32 (   float32)

Definition at line 187 of file transport.py.

◆ f32_from_f16()

def pyuavcan_v0.transport.f32_from_f16 (   float16)

Definition at line 212 of file transport.py.

◆ format_bits()

def pyuavcan_v0.transport.format_bits (   s)

Definition at line 118 of file transport.py.

◆ get_active_union_field()

def pyuavcan_v0.transport.get_active_union_field (   obj)

Definition at line 54 of file transport.py.

◆ get_constants()

def pyuavcan_v0.transport.get_constants (   obj)

Definition at line 75 of file transport.py.

◆ get_fields()

def pyuavcan_v0.transport.get_fields (   obj)

Definition at line 68 of file transport.py.

◆ get_uavcan_data_type()

def pyuavcan_v0.transport.get_uavcan_data_type (   obj)

Definition at line 42 of file transport.py.

◆ is_request()

def pyuavcan_v0.transport.is_request (   obj)

Definition at line 82 of file transport.py.

◆ is_response()

def pyuavcan_v0.transport.is_response (   obj)

Definition at line 87 of file transport.py.

◆ is_union()

def pyuavcan_v0.transport.is_union (   obj)

Definition at line 47 of file transport.py.

◆ le_from_be_bits()

def pyuavcan_v0.transport.le_from_be_bits (   s,
  bitlen 
)

Definition at line 109 of file transport.py.

◆ switch_union_field()

def pyuavcan_v0.transport.switch_union_field (   obj,
  value 
)

Definition at line 61 of file transport.py.

◆ union_tag_bits_from_num_elements()

def pyuavcan_v0.transport.union_tag_bits_from_num_elements (   num_elements)

Definition at line 122 of file transport.py.

Variable Documentation

◆ bchr

pyuavcan_v0.transport.bchr = chr

Definition at line 36 of file transport.py.

◆ long

pyuavcan_v0.transport.long = int

Definition at line 33 of file transport.py.

◆ MutableSequence

pyuavcan_v0.transport.MutableSequence = collections.abc.MutableSequence

Definition at line 20 of file transport.py.



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