avatar2.peripherals package

Submodules

avatar2.peripherals.avatar_peripheral module

class avatar2.peripherals.avatar_peripheral.AvatarPeripheral(name, address, size, **kwargs)

Bases: object

read_memory(address, size)
shutdown()

Some peripherals will require to be shutdowned when avatar exits. In those cases, this method should be overwritten.

write_memory(address, size, value)

avatar2.peripherals.nucleo_usart module

class avatar2.peripherals.nucleo_usart.NucleoRTC(name, address, size, **kwargs)

Bases: avatar2.peripherals.avatar_peripheral.AvatarPeripheral

nop_read(size)
class avatar2.peripherals.nucleo_usart.NucleoTIM(name, address, size, **kwargs)

Bases: avatar2.peripherals.avatar_peripheral.AvatarPeripheral

nop_read(size)
nop_write(size, value)
class avatar2.peripherals.nucleo_usart.NucleoUSART(name, address, size, nucleo_usart_port=5656, **kwargs)

Bases: avatar2.peripherals.avatar_peripheral.AvatarPeripheral, threading.Thread

nop_read(size)
nop_write(size, value)
read_data_register(size)
read_status_register(size)
run()
shutdown()
write_data_register(size, value)

Module contents