mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
drivers/at86rf2xx: remove unused send function
This commit is contained in:
parent
72c3f9192a
commit
fc43cec430
@ -243,19 +243,6 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
|
||||
DEBUG("at86rf2xx_reset(): reset complete.\n");
|
||||
}
|
||||
|
||||
size_t at86rf2xx_send(at86rf2xx_t *dev, const uint8_t *data, size_t len)
|
||||
{
|
||||
/* check data length */
|
||||
if (len > AT86RF2XX_MAX_PKT_LENGTH) {
|
||||
DEBUG("[at86rf2xx] Error: data to send exceeds max packet size\n");
|
||||
return 0;
|
||||
}
|
||||
at86rf2xx_tx_prepare(dev);
|
||||
at86rf2xx_tx_load(dev, data, len, 0);
|
||||
at86rf2xx_tx_exec(dev);
|
||||
return len;
|
||||
}
|
||||
|
||||
void at86rf2xx_tx_prepare(at86rf2xx_t *dev)
|
||||
{
|
||||
uint8_t state;
|
||||
|
@ -548,20 +548,6 @@ void at86rf2xx_set_option(at86rf2xx_t *dev, uint16_t option, bool state);
|
||||
*/
|
||||
uint8_t at86rf2xx_set_state(at86rf2xx_t *dev, uint8_t state);
|
||||
|
||||
/**
|
||||
* @brief Convenience function for simply sending data
|
||||
*
|
||||
* @note This function ignores the PRELOADING option
|
||||
*
|
||||
* @param[in,out] dev device to use for sending
|
||||
* @param[in] data data to send (must include IEEE802.15.4 header)
|
||||
* @param[in] len length of @p data
|
||||
*
|
||||
* @return number of bytes that were actually send
|
||||
* @return 0 on error
|
||||
*/
|
||||
size_t at86rf2xx_send(at86rf2xx_t *dev, const uint8_t *data, size_t len);
|
||||
|
||||
/**
|
||||
* @brief Prepare for sending of data
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user