Ejemplo n.º 1
0
SlotData SlotData::PrimarySlot(rdm_slot_definition slot_definition,
                               uint8_t default_slot_value) {
    if (slot_definition == SD_UNDEFINED) {
        OLA_WARN << "Undefined slot definition and no slot description!";
    }
    return SlotData(ST_PRIMARY, slot_definition, default_slot_value);
}
Ejemplo n.º 2
0
SlotData SlotData::SecondarySlot(rdm_slot_type slot_type,
                                 uint16_t primary_slot,
                                 uint8_t default_slot_value) {
    if (slot_type == ST_PRIMARY) {
        OLA_WARN << "Secondary slot created with slot_type == ST_PRIMARY";
    }
    return SlotData(slot_type, primary_slot, default_slot_value);
}
Ejemplo n.º 3
0
SlotData SlotData::PrimarySlot(rdm_slot_definition slot_definition,
                               uint8_t default_slot_value,
                               const string &description) {
    if (slot_definition == SD_UNDEFINED && description.empty()) {
        OLA_WARN << "Undefined slot definition and no slot description!";
    }
    return SlotData(ST_PRIMARY, slot_definition, default_slot_value, description);
}
Ejemplo n.º 4
0
SlotData SlotData::SecondarySlot(rdm_slot_type slot_type,
                                 uint16_t primary_slot,
                                 uint8_t default_slot_value,
                                 const string &description) {
    if (slot_type == ST_PRIMARY) {
        OLA_WARN << "Secondary slot created with slot_type == ST_PRIMARY: "
                 << description;
    }
    return SlotData(slot_type, primary_slot, default_slot_value, description);
}
Ejemplo n.º 5
0
size_t SetSlot::deserialize(const Buffer& _src, size_t _offset)
{
	_offset = _pm_checkPacketId(_src, _offset);

	_offset = ReadInt8(_src, _offset, _pf_windowId);
	_offset = ReadInt16(_src, _offset, _pf_slotNum);

	_offset = SlotData().deserialize(_src, _offset);

	_pf_initialized = true;
	return _offset;
}