/** * @file radio.h * @brief RADIO peripheral driver -- NRF_1Mbit proprietary mode. */ #pragma once #include /** @brief Configure the RADIO peripheral (mode, packet format, address, CRC, power, channel). */ void radio_init(void); /** * @brief Set the RF channel. * @param ch Channel index 0-39, maps to 2400+ch MHz (MAP=0). */ void radio_set_channel(uint8_t ch); /** * @brief Transmit one packet synchronously. * * Loads @p data into the internal packet buffer, asserts TASKS_TXEN, and * returns after EVENTS_END fires. The RADIO is DISABLED automatically via * the END_DISABLE shortcut before the function returns. * * @param data Payload bytes. * @param len Payload length (0-255 bytes). */ void radio_tx(const uint8_t *data, uint8_t len); /** @brief Transmit a burst with FHSS hopping (not yet implemented). */ void radio_tx_burst(void);