def _makeHDB1(NDB):
 CMD = 0
 EMD = 3
 HDB1val = ((((CMD & 1) * pow(2, 7)) | ((EMD & 7) * pow(2, 4))) | (15 & NDB))
 return HDB1val

def _makeHDB1 ( NDB ) : CMD = 0 EMD = 3 HDB1val = ( ( ( ( CMD & 1 ) * pow ( 2 , 7 ) ) | ( ( EMD & 7 ) * pow ( 2 , 4 ) ) ) | ( 15 & NDB ) ) return HDB1val
encode header byte 1 .