Skip to content

Commit 1dcc3db

Browse files
committed
ieee802154: use retval in struct ieee802154_radio_ops
1 parent 059bef5 commit 1dcc3db

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

sys/include/net/ieee802154/radio.h

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,8 @@ struct ieee802154_radio_ops {
539539
* @param[in] dev IEEE802.15.4 device descriptor
540540
* @param[in] psdu PSDU frame to be sent
541541
*
542-
* @return 0 on success
543-
* @return negative errno on error
542+
* @retval 0 on success
543+
* @retval negative errno on error
544544
*/
545545
int (*write)(ieee802154_dev_t *dev, const iolist_t *psdu);
546546

@@ -579,8 +579,8 @@ struct ieee802154_radio_ops {
579579
* @param[in] info information of the received frame (LQI, RSSI). Can be
580580
* NULL if this information is not needed.
581581
*
582-
* @return number of bytes written in @p buffer (0 if @p buf == NULL)
583-
* @return -ENOBUFS if the frame doesn't fit in @p
582+
* @retval number of bytes written in @p buffer (0 if @p buf == NULL)
583+
* @retval -ENOBUFS if the frame doesn't fit in @p buf
584584
*/
585585
int (*read)(ieee802154_dev_t *dev, void *buf, size_t size, ieee802154_rx_info_t *info);
586586
/**
@@ -592,8 +592,8 @@ struct ieee802154_radio_ops {
592592
*
593593
* @post the device is off
594594
*
595-
* @return 0 on success
596-
* @return negative errno on error
595+
* @retval 0 on success
596+
* @retval negative errno on error
597597
*/
598598
int (*off)(ieee802154_dev_t *dev);
599599

@@ -607,8 +607,8 @@ struct ieee802154_radio_ops {
607607
*
608608
* @param[in] dev IEEE802.15.4 device descriptor
609609
*
610-
* @return 0 on success
611-
* @return negative errno on error
610+
* @retval 0 on success
611+
* @retval negative errno on error
612612
*/
613613
int (*request_on)(ieee802154_dev_t *dev);
614614

@@ -634,9 +634,9 @@ struct ieee802154_radio_ops {
634634
*
635635
* @param[in] dev IEEE802.15.4 device descriptor
636636
*
637-
* @return 0 if the device is on
638-
* @return -EAGAIN if the device is still busy turning on
639-
* @return negative errno on error
637+
* @retval 0 if the device is on
638+
* @retval -EAGAIN if the device is still busy turning on
639+
* @retval negative errno on error
640640
*/
641641
int (*confirm_on)(ieee802154_dev_t *dev);
642642

@@ -681,8 +681,8 @@ struct ieee802154_radio_ops {
681681
* @param[in] dev IEEE802.15.4 device descriptor
682682
* @param[in] threshold the threshold in dBm.
683683
*
684-
* @return 0 on success
685-
* @return negative errno on error
684+
* @retval 0 on success
685+
* @retval negative errno on error
686686
*/
687687
int (*set_cca_threshold)(ieee802154_dev_t *dev, int8_t threshold);
688688

@@ -696,9 +696,9 @@ struct ieee802154_radio_ops {
696696
* @param[in] dev IEEE802.15.4 device descriptor
697697
* @param[in] mode the CCA mode
698698
*
699-
* @return 0 on success
700-
* @return -ENOTSUP if the mode is not supported
701-
* @return negative errno on error
699+
* @retval 0 on success
700+
* @retval -ENOTSUP if the mode is not supported
701+
* @retval negative errno on error
702702
*/
703703
int (*set_cca_mode)(ieee802154_dev_t *dev, ieee802154_cca_mode_t mode);
704704

@@ -717,9 +717,9 @@ struct ieee802154_radio_ops {
717717
* @param[in] dev IEEE802.15.4 device descriptor
718718
* @param[in] conf the PHY configuration
719719
*
720-
* @return 0 on success
721-
* @return -EINVAL if the configuration is not valid for the device.
722-
* @return <0 error, return value is negative errno indicating the cause.
720+
* @retval 0 on success
721+
* @retval -EINVAL if the configuration is not valid for the device.
722+
* @retval <0 error, return value is negative errno indicating the cause.
723723
*/
724724
int (*config_phy)(ieee802154_dev_t *dev, const ieee802154_phy_conf_t *conf);
725725

@@ -734,8 +734,8 @@ struct ieee802154_radio_ops {
734734
* @param[in] dev IEEE802.15.4 device descriptor
735735
* @param[in] retrans the number of retransmissions attempts.
736736
*
737-
* @return 0 on success
738-
* @return negative errno on error
737+
* @retval 0 on success
738+
* @retval negative errno on error
739739
*/
740740
int (*set_frame_retrans)(ieee802154_dev_t *dev, uint8_t retrans);
741741

@@ -753,9 +753,9 @@ struct ieee802154_radio_ops {
753753
* ieee802154_radio_request_transmit function is
754754
* equivalent to CCA send.
755755
*
756-
* @return 0 on success
757-
* @return -EINVAL if the settings are not supported.
758-
* @return negative errno on error
756+
* @retval 0 on success
757+
* @retval -EINVAL if the settings are not supported.
758+
* @retval negative errno on error
759759
*/
760760
int (*set_csma_params)(ieee802154_dev_t *dev, const ieee802154_csma_be_t *bd,
761761
int8_t retries);
@@ -768,8 +768,8 @@ struct ieee802154_radio_ops {
768768
* @param[in] dev IEEE802.15.4 device descriptor
769769
* @param[in] mode address filter mode
770770
*
771-
* @return 0 on success
772-
* @return negative errno on error
771+
* @retval 0 on success
772+
* @retval negative errno on error
773773
*/
774774
int (*set_frame_filter_mode)(ieee802154_dev_t *dev, ieee802154_filter_mode_t mode);
775775

@@ -781,8 +781,8 @@ struct ieee802154_radio_ops {
781781
* @param[in] dev IEEE802.15.4 device descriptor
782782
* @param[out] mode address filter mode
783783
*
784-
* @return 0 on success
785-
* @return negative errno on error
784+
* @retval 0 on success
785+
* @retval negative errno on error
786786
*/
787787
int (*get_frame_filter_mode)(ieee802154_dev_t *dev, ieee802154_filter_mode_t *mode);
788788

@@ -798,8 +798,8 @@ struct ieee802154_radio_ops {
798798
* @param[in] cmd command for the address filter
799799
* @param[in] value value for @p cmd.
800800
*
801-
* @return 0 on success
802-
* @return negative errno on error
801+
* @retval 0 on success
802+
* @retval negative errno on error
803803
*/
804804
int (*config_addr_filter)(ieee802154_dev_t *dev, ieee802154_af_cmd_t cmd, const void *value);
805805

@@ -818,8 +818,8 @@ struct ieee802154_radio_ops {
818818
* @param[in] cmd command for the source address match configuration
819819
* @param[in] value value associated to @p cmd.
820820
*
821-
* @return 0 on success
822-
* @return negative errno on error
821+
* @retval 0 on success
822+
* @retval negative errno on error
823823
*/
824824
int (*config_src_addr_match)(ieee802154_dev_t *dev, ieee802154_src_match_t cmd,
825825
const void *value);

0 commit comments

Comments
 (0)