batbot_bringup.bb_serial package

Submodules

batbot_bringup.bb_serial.fake_spidev module

Author: Mason Lopez Date: 2/2/2024 Purpose: spidev is only on linux (pi) so to run and develop on other platforms this is a fake library taht hold the same interface but does nothing but log the information to console

class batbot_bringup.bb_serial.fake_spidev.fake_SpiDev(bus, ss)

Bases: object

open(bus, dev)
xfer2(data: list)

batbot_bringup.bb_serial.hwdefs module

batbot_bringup.bb_serial.ser_utils module

batbot_bringup.bb_serial.ser_utils.chunk_split(data, size)
batbot_bringup.bb_serial.ser_utils.decode_msg(msg)
batbot_bringup.bb_serial.ser_utils.determine_num_chunks(buflen, order=1)
batbot_bringup.bb_serial.ser_utils.encode_msg(msg)
batbot_bringup.bb_serial.ser_utils.pad_msg(msg)
batbot_bringup.bb_serial.ser_utils.to_chunks(ftype, data, order=1, encode=True)

batbot_bringup.bb_serial.serial_helper module

batbot_bringup.bb_serial.serial_helper.get_port_from_serial_num(serial_str: str) str

Module contents