Esempio n. 1
0
uint8_t RF22::send(const uint8_t* data, uint8_t len)
{
    waitPacketSent();

	if (!fillTxBuf(data, len))
	    return false;
	startTransmit();

    return true;
}
Esempio n. 2
0
bool RF22::send(const uint8_t* data, uint8_t len) {
	waitPacketSent();
//TODO check
	piLock(1);
	if (!fillTxBuf(data, len))
		return false;
	startTransmit();
	piUnlock(1);
//    printBuffer("send:", data, len);
	return true;
}
Esempio n. 3
0
bool RH_RF22::send(const uint8_t* data, uint8_t len)
{
    bool ret = true;
    waitPacketSent();
    ATOMIC_BLOCK_START;
    if (!fillTxBuf(data, len))
	ret = false;
    else
	startTransmit();
    ATOMIC_BLOCK_END;
//    printBuffer("send:", data, len);
    return ret;
}
Esempio n. 4
0
bool RH_RF22::send(const uint8_t* data, uint8_t len)
{
    bool ret = true;
    waitPacketSent();
    ATOMIC_BLOCK_START;
    spiWrite(RH_RF22_REG_3A_TRANSMIT_HEADER3, _txHeaderTo);
    spiWrite(RH_RF22_REG_3B_TRANSMIT_HEADER2, _txHeaderFrom);
    spiWrite(RH_RF22_REG_3C_TRANSMIT_HEADER1, _txHeaderId);
    spiWrite(RH_RF22_REG_3D_TRANSMIT_HEADER0, _txHeaderFlags);
    if (!fillTxBuf(data, len))
	ret = false;
    else
	startTransmit();
    ATOMIC_BLOCK_END;
//    printBuffer("send:", data, len);
    return ret;
}
Esempio n. 5
0
void	commSend(void)
{
		fillTxBuf();
		TxSendData();
}