uint8_t RF22::send(const uint8_t* data, uint8_t len) { waitPacketSent(); if (!fillTxBuf(data, len)) return false; startTransmit(); return true; }
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; }
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; }
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; }
void commSend(void) { fillTxBuf(); TxSendData(); }