示例#1
0
def int_to_TTL(bit_depth, target):
    '''
    Pipeline wrapper around :func:`cns.util.binary_func.int_to_TTL`
    '''
    from cns.util.binary_funcs import int_to_TTL
    while True:
        target.send(int_to_TTL((yield), bit_depth))
示例#2
0
def deinterleave_bits(targets):
    return int_to_TTL(len(targets), deinterleave(targets))