bool phy_sendWait(const uint8_t buffer[], uint8_t len) { if(phy_send(buffer, len) == false) return false; while (phy_state != STATE_IDLE); return true; }
int my_send(COMMCTX* ctx, char* buf, int len) { return phy_send(ctx, buf, len); }
bool phy_send(uint8_t byte) { uint8_t data[] = { byte }; return phy_send(data, 1); }
uint16_t phy_send_cca(uint8_t* data, uint16_t length, uint16_t *timestamp) { // TODO real cca return phy_send(data, length, timestamp); }