SimCore
Shared transport-layer plumbing for the ADR-029 Train/IL/CTC RBC simulators
Loading...
Searching...
No Matches
rbc_wire.py File Reference

Go to the source code of this file.

Namespaces

namespace  simcore
namespace  simcore.rbc_wire

Functions

 simcore.rbc_wire.encode (kind, train_id, nid_message=0, l_message=ENVELOPE_SIZE, t_train=0, cycle=0, d_lrbg=0, msg_type=0, route_len=0, ma_seq=0, ma_length=0, t_train_ack=0, nid_lrbg=0, q_dirlrbg=0, q_dlrbg=0, l_doubtover=0, l_doubtunder=0, q_length=0, v_train=0, q_dirtrain=0, m_mode=0, m_level=0, start_signal=0, end_signal=0, route_type=0, route_status=0)
 simcore.rbc_wire.encode_opaque (kind, payload, frame_size=ENVELOPE_SIZE)
 simcore.rbc_wire.decode (data)

Variables

int simcore.rbc_wire.ENVELOPE_SIZE = 96
 simcore.rbc_wire._STRUCT = struct.Struct("<4B2H22I")