CanalSatProtocol::CanalSatProtocol( QObject *guiObject, unsigned int index) : PIRProtocol(guiObject, index, 85000, false), biphaseUnit(320), buffer(0) { setCarrierFrequency(56000); }
PIRInfraredLED::PIRInfraredLED( unsigned int frequency, unsigned int dutyCycle) : fileDescriptor(-1), index(0) { openLircDevice(); setCarrierFrequency(frequency); setDutyCycle(dutyCycle); }
TEST(RFM69W, setCarrierFrequency) { float cf = 868; std::queue<int> responses; std::queue<std::tuple<unsigned char, unsigned char>> resps; resps.push(std::make_tuple(0x87, 0x00)); resps.push(std::make_tuple(0xD9, 0x00)); resps.push(std::make_tuple(0x00, 0x00)); resps.push(std::make_tuple(0x00, 0x00)); EXPECT_EQ(0, setCarrierFrequency(&cf, fakeSpiFun, &resps)); }
PanasonicProtocol::PanasonicProtocol( QObject *guiObject, unsigned int index) : SpaceProtocol( guiObject, index, 432, 432, 432, 1296, 3456, 1728, 432, 74736, false) { setCarrierFrequency(37000); }
AiwaProtocol::AiwaProtocol( QObject *guiObject, unsigned int index) : SpaceProtocol( guiObject, index, 550, 550, 550, 1650, 8800, 4400, 550, 108000, true), repeatPulse(8800), repeatSpace(2250) { setCarrierFrequency(38000); // setDutyCycle(50); }