@@ -30,7 +30,8 @@ extern "C" {
30
30
31
31
/**
32
32
* @brief Mask for alarm time fields to enable when setting alarm time
33
- * @defgroup rtc_alarm_time_mask RTC Alarm Time Mask
33
+ * @name RTC Alarm Time Mask
34
+ * @anchor RTC_ALARM_TIME_MASK
34
35
* @{
35
36
*/
36
37
#define RTC_ALARM_TIME_MASK_SECOND BIT(0)
@@ -87,6 +88,12 @@ typedef void (*rtc_update_callback)(const struct device *dev, void *user_data);
87
88
*/
88
89
typedef void (* rtc_alarm_callback )(const struct device * dev , uint16_t id , void * user_data );
89
90
91
+ /**
92
+ * @cond INTERNAL_HIDDEN
93
+ *
94
+ * For internal driver use only, skip these in public documentation.
95
+ */
96
+
90
97
/**
91
98
* @typedef rtc_api_set_time
92
99
* @brief API for setting RTC time
@@ -174,6 +181,8 @@ __subsystem struct rtc_driver_api {
174
181
#endif /* CONFIG_RTC_CALIBRATION */
175
182
};
176
183
184
+ /** @endcond */
185
+
177
186
/**
178
187
* @brief API for setting RTC time.
179
188
*
@@ -213,9 +222,7 @@ static inline int z_impl_rtc_get_time(const struct device *dev, struct rtc_time
213
222
}
214
223
215
224
/**
216
- * @brief RTC Interface Alarm
217
- * @defgroup rtc_interface_alarm RTC Interface Alarm
218
- * @ingroup rtc_interface
225
+ * @name RTC Interface Alarm
219
226
* @{
220
227
*/
221
228
#if defined(CONFIG_RTC_ALARM ) || defined(__DOXYGEN__ )
@@ -227,7 +234,7 @@ static inline int z_impl_rtc_get_time(const struct device *dev, struct rtc_time
227
234
* @param id Id of the alarm
228
235
* @param mask Mask of fields in the alarm time which are supported
229
236
*
230
- * @note Bits in the mask param are defined here \ ref rtc_alarm_time_mask
237
+ * @note Bits in the mask param are defined here @ ref RTC_ALARM_TIME_MASK.
231
238
*
232
239
* @return 0 if successful
233
240
* @return -EINVAL if id is out of range or time is invalid
@@ -265,7 +272,7 @@ static inline int z_impl_rtc_alarm_get_supported_fields(const struct device *dev
265
272
*
266
273
* @note The timeptr param may be NULL if the mask param is 0
267
274
* @note Only the enabled fields in the timeptr param need to be configured
268
- * @note Bits in the mask param are defined here \ ref rtc_alarm_time_mask
275
+ * @note Bits in the mask param are defined here @ ref RTC_ALARM_TIME_MASK
269
276
*
270
277
* @return 0 if successful
271
278
* @return -EINVAL if id is out of range or time is invalid
@@ -295,7 +302,7 @@ static inline int z_impl_rtc_alarm_set_time(const struct device *dev, uint16_t i
295
302
* @param mask Destination for mask of fields which are enabled in the alarm time
296
303
* @param timeptr Destination for the alarm time
297
304
*
298
- * @note Bits in the mask param are defined here \ ref rtc_alarm_time_mask
305
+ * @note Bits in the mask param are defined here @ ref RTC_ALARM_TIME_MASK
299
306
*
300
307
* @return 0 if successful
301
308
* @return -EINVAL if id is out of range
@@ -392,9 +399,7 @@ static inline int z_impl_rtc_alarm_set_callback(const struct device *dev, uint16
392
399
*/
393
400
394
401
/**
395
- * @brief RTC Interface Update
396
- * @defgroup rtc_interface_update RTC Interface Update
397
- * @ingroup rtc_interface
402
+ * @name RTC Interface Update
398
403
* @{
399
404
*/
400
405
#if defined(CONFIG_RTC_UPDATE ) || defined(__DOXYGEN__ )
@@ -439,9 +444,7 @@ static inline int z_impl_rtc_update_set_callback(const struct device *dev,
439
444
*/
440
445
441
446
/**
442
- * @brief RTC Interface Calibration
443
- * @defgroup rtc_interface_calibration RTC Interface Calibration
444
- * @ingroup rtc_interface
447
+ * @name RTC Interface Calibration
445
448
* @{
446
449
*/
447
450
#if defined(CONFIG_RTC_CALIBRATION ) || defined(__DOXYGEN__ )
@@ -504,8 +507,7 @@ static inline int z_impl_rtc_get_calibration(const struct device *dev, int32_t *
504
507
*/
505
508
506
509
/**
507
- * @brief RTC Interface Helpers
508
- * @ingroup rtc_interface
510
+ * @name RTC Interface Helpers
509
511
* @{
510
512
*/
511
513
0 commit comments