1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 00:41:17 +01:00

ieee802154/radio: add TRX_OFF pre condition to config_phy

This commit is contained in:
Jose Alamos 2020-10-22 11:53:52 +02:00
parent 5e7ee01755
commit 1b87588971

View File

@ -621,13 +621,14 @@ struct ieee802154_radio_ops {
* function should return -EINVAL
*
* @pre the device is on
* @pre the transceiver state is @ref IEEE802154_TRX_STATE_TRX_OFF
*
* @param[in] dev IEEE802.15.4 device descriptor
* @param[in] conf the PHY configuration
*
* @return 0 on success
* @return -EINVAL if the configuration is not valid for the device.
* @return negative errno on error
* @return 0 on success
* @return -EINVAL if the configuration is not valid for the device.
* @return <0 error, return value is negative errno indicating the cause.
*/
int (*config_phy)(ieee802154_dev_t *dev, const ieee802154_phy_conf_t *conf);
@ -801,6 +802,8 @@ static inline int ieee802154_radio_set_cca_mode(ieee802154_dev_t *dev,
/**
* @brief Shortcut to @ref ieee802154_radio_ops::config_phy
*
* @pre the transceiver state is @ref IEEE802154_TRX_STATE_TRX_OFF
*
* @param[in] dev IEEE802.15.4 device descriptor
* @param[in] conf the PHY configuration
*