aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/mac.h')
-rw-r--r--os/io/mac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/io/mac.h b/os/io/mac.h
index b652fe74d..1cb135297 100644
--- a/os/io/mac.h
+++ b/os/io/mac.h
@@ -45,6 +45,16 @@
*/
#define macGetReceiveBuffer(rdp) mac_lld_get_receive_buffer(rdp)
+/**
+ * @bief Returns the received frames event source.
+ *
+ * @param[in] macp pointer to the @p MACDriver object
+ * @return The pointer to the @p EventSource structure.
+ */
+#if CH_USE_EVENTS || defined(__DOXYGEN__)
+#define macGetReceiveEventSource(macp) (&(macp)->md_rdevent)
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif