Clipsal C-Bus Guia do Utilizador Página 39

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 38
cbus Documentation, Release 0.1-dev
class cbus.protocol.base_packet.SpecialPacket
Bases: cbus.protocol.base_packet.BasePacket
checksum = False
destination_address_type = None
dp = None
priority_class = None
rc = None
class cbus.protocol.base_packet.SpecialClientPacket
Bases: cbus.protocol.base_packet.SpecialPacket
Client -> PCI communications have some special packets, which we make subclasses of SpecialClientPacket to
make them entirely seperate from normal packets.
These have non-standard methods for serialisation.
class cbus.protocol.base_packet.SpecialServerPacket
Bases: cbus.protocol.base_packet.SpecialPacket
PCI -> Client has some special packets that we make subclasses of this, because they’re different to regular
packets.
These have non-standard serialisation methods.
dm_packet: Device Management Packet
class cbus.protocol.dm_packet.DeviceManagementPacket(checksum=True, priority_class=2,
parameter=None, value=None)
Bases: cbus.protocol.base_packet.BasePacket
classmethod decode_packet(data, checksum, flags, destination_address_type, rc, dp, priority_class)
encode(source_addr=None)
parameter = None
value = None
packet Module
cbus.protocol.packet.decode_packet(data, checksum=True, strict=True, server_packet=True)
Decodes a packet from or send to the PCI.
Returns a tuple, the packet that was parsed and the remainder that was unparsed (in the case of some special
commands.
If no packet was able to be parsed, the first element of the tuple will be None. However there may be some
circumstances where there is still a remainder to be parsed (cancel request).
pm_packet Module
class cbus.protocol.pm_packet.PointToMultipointPacket(checksum=True, prior-
ity_class=0, application=None,
status_request=False)
Bases: cbus.protocol.base_packet.BasePacket
8.1. cbus Package 35
Vista de página 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 59 60

Comentários a estes Manuais

Sem comentários