Crate x328_proto[][src]

Expand description

Sans-IO implementation of the ANSI X3.28 serial line protocol

X3.28 is an old field bus protocol, commonly used on top of a RS-422 bus. The bus settings should be 9600 baud, 7 bit char, no flow control, even parity, 1 stop bit (7E1). Since this crate doesn’t provide IO at all, feel free to use whatever transport you want.

Re-exports

pub use master::Master;
pub use node::NodeState;

Modules

master

The bus controller half of the X3.28 protocol

node

See NodeState for more details.

Structs

Address

Address is a range-checked [0, 99] integer, representing a node address.

Parameter

Parameter is a range-checked [0, 9999] integer, representing a register in a node.

Value

Value represents an integer that can be sent over the X3.28 protocol.

Enums

TypeError

Error type for this module

Traits

IntoAddress

Trait to convert T: TryInto<u8> into an Address.

IntoParameter

Trait to convert T: TryInto<i16> into a Parameter.

IntoValue

Trait to convert T: Into<i32> into a Value.