jacdac.proto_test

Submodules

Package Contents

Classes

ProtoTestClient

This is test service to validate the protocol packet transmissions between the browser and a MCU.

class jacdac.proto_test.ProtoTestClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

This is test service to validate the protocol packet transmissions between the browser and a MCU.
  • Use this page if you are porting Jacdac to a new platform.

Implements a client for the Protocol Test service.

property rw_bool Optional[bool]

A read write bool register.,

property ro_bool Optional[bool]

A read only bool register. Mirrors rw_bool.,

property rw_u32 Optional[int]

A read write u32 register.,

property ro_u32 Optional[int]

A read only u32 register.. Mirrors rw_u32.,

property rw_i32 Optional[int]

A read write i32 register.,

property ro_i32 Optional[int]

A read only i32 register.. Mirrors rw_i32.,

property rw_string Optional[str]

A read write string register.,

property ro_string Optional[str]

A read only string register. Mirrors rw_string.,

property rw_bytes Optional[bytes]

A read write string register.,

property ro_bytes Optional[bytes]

A read only string register. Mirrors ro_bytes.,

property rw_i8_u8_u16_i32 Optional[Tuple[int, int, int, int]]

A read write i8, u8, u16, i32 register.,

property ro_i8_u8_u16_i32 Optional[Tuple[int, int, int, int]]

A read only i8, u8, u16, i32 register.. Mirrors rw_i8_u8_u16_i32.,

property rw_u8_string Optional[Tuple[int, str]]

A read write u8, string register.,

property ro_u8_string Optional[Tuple[int, str]]

A read only u8, string register.. Mirrors rw_u8_string.,

on_e_bool(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_bool is modified

on_e_u32(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_u32 is modified

on_e_i32(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_i32 is modified

on_e_string(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_string is modified

on_e_bytes(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_bytes is modified

on_e_i8_u8_u16_i32(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_i8_u8_u16_i32 is modified

on_e_u8_string(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

An event raised when rw_u8_string is modified

c_bool(bo: bool) None

A command to set rw_bool.

c_u32(u32: int) None

A command to set rw_u32.

c_i32(i32: int) None

A command to set rw_i32.

c_string(str: ProtoTestClient.c_string.str) None

A command to set rw_string.

c_bytes(bytes: ProtoTestClient.c_bytes.bytes) None

A command to set rw_string.

c_i8_u8_u16_i32(i8: int, u8: int, u16: int, i32: int) None

A command to set rw_bytes.

c_u8_string(u8: int, str: ProtoTestClient.c_u8_string.str) None

A command to set rw_u8_string.