upb_lib/message.py
def create_control_word(link, repeater=0, ack=0, tx_cnt=0):
    """Create a control word in UPB message."""
    ctl = (1 if link else 0) << 15
    ctl = ctl | (repeater << 13)
    ctl = ctl | (ack << 4)
    ctl = ctl | (tx_cnt << 2)
    ctl = ctl | 0
    return ctl
Create a control word in UPB message.
Create a control word in UPB message.
Create a control word in UPB message .
def create_control_word(link, repeater=0, ack=0, tx_cnt=0):
    ctl = (1 if link else 0) << 15
    ctl = ctl | (repeater << 13)
    ctl = ctl | (ack << 4)
    ctl = ctl | (tx_cnt << 2)
    ctl = ctl | 0
    return ctl
def create_control_word ( link , repeater = 0 , ack = 0 , tx_cnt = 0 ) : ctl = ( 1 if link else 0 ) << 15 ctl = ctl | ( repeater << 13 ) ctl = ctl | ( ack << 4 ) ctl = ctl | ( tx_cnt << 2 ) ctl = ctl | 0 return ctl
Create a control word in UPB message.
Create a control word in UPB message .
"""Create a control word in UPB message."""
link
repeater
ack
tx_cnt