def configurationChangeCommand(ChannelMode_presence=0,
                               ChannelMode_presence1=0,
                               ChannelMode_presence2=0,
                               ChannelMode_presence3=0,
                               ChannelMode_presence4=0,
                               ChannelMode_presence5=0,
                               ChannelMode_presence6=0,
                               ChannelMode_presence7=0):
    """CONFIGURATION CHANGE COMMAND Section 9.1.12b"""
    a = TpPd(pd=0x6)
    b = MessageType(mesType=0x30)  # 00110000
    c = MultislotAllocation()
    packet = a / b / c
    if ChannelMode_presence is 1:
        d = ChannelModeHdr(ieiCM=0x63, eightBitCM=0x0)
        packet = packet / d
    if ChannelMode_presence1 is 1:
        e = ChannelModeHdr(ieiCM=0x11, eightBitCM=0x0)
        packet = packet / e
    if ChannelMode_presence2 is 1:
        f = ChannelModeHdr(ieiCM=0x13, eightBitCM=0x0)
        packet = packet / f
    if ChannelMode_presence3 is 1:
        g = ChannelModeHdr(ieiCM=0x14, eightBitCM=0x0)
        packet = packet / g
    if ChannelMode_presence4 is 1:
        h = ChannelModeHdr(ieiCM=0x15, eightBitCM=0x0)
        packet = packet / h
    if ChannelMode_presence5 is 1:
        i = ChannelModeHdr(ieiCM=0x16, eightBitCM=0x0)
        packet = packet / i
    if ChannelMode_presence6 is 1:
        j = ChannelModeHdr(ieiCM=0x17, eightBitCM=0x0)
        packet = packet / j
    if ChannelMode_presence7 is 1:
        k = ChannelModeHdr(ieiCM=0x18, eightBitCM=0x0)
        packet = packet / k
    return packet
def configurationChangeCommand ( ChannelMode_presence = 0 , ChannelMode_presence1 = 0 , ChannelMode_presence2 = 0 , ChannelMode_presence3 = 0 , ChannelMode_presence4 = 0 , ChannelMode_presence5 = 0 , ChannelMode_presence6 = 0 , ChannelMode_presence7 = 0 ) : a = TpPd ( pd = 0x6 ) b = MessageType ( mesType = 0x30 ) c = MultislotAllocation ( ) packet = a / b / c if ChannelMode_presence is 1 : d = ChannelModeHdr ( ieiCM = 0x63 , eightBitCM = 0x0 ) packet = packet / d if ChannelMode_presence1 is 1 : e = ChannelModeHdr ( ieiCM = 0x11 , eightBitCM = 0x0 ) packet = packet / e if ChannelMode_presence2 is 1 : f = ChannelModeHdr ( ieiCM = 0x13 , eightBitCM = 0x0 ) packet = packet / f if ChannelMode_presence3 is 1 : g = ChannelModeHdr ( ieiCM = 0x14 , eightBitCM = 0x0 ) packet = packet / g if ChannelMode_presence4 is 1 : h = ChannelModeHdr ( ieiCM = 0x15 , eightBitCM = 0x0 ) packet = packet / h if ChannelMode_presence5 is 1 : i = ChannelModeHdr ( ieiCM = 0x16 , eightBitCM = 0x0 ) packet = packet / i if ChannelMode_presence6 is 1 : j = ChannelModeHdr ( ieiCM = 0x17 , eightBitCM = 0x0 ) packet = packet / j if ChannelMode_presence7 is 1 : k = ChannelModeHdr ( ieiCM = 0x18 , eightBitCM = 0x0 ) packet = packet / k return packet
CONFIGURATION CHANGE COMMAND Section 9.1.12b