aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/mac.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-24 18:43:09 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-09-24 18:43:09 +0000
commitac7438357d5c3fcc133c630608af742b4cea3c00 (patch)
tree690a96267595bfecd151b898d6414b181faed689 /os/io/mac.h
parent1a62b448482d81f92e2fc7e7e9095ad7982947be (diff)
downloadChibiOS-ac7438357d5c3fcc133c630608af742b4cea3c00.tar.gz
ChibiOS-ac7438357d5c3fcc133c630608af742b4cea3c00.tar.bz2
ChibiOS-ac7438357d5c3fcc133c630608af742b4cea3c00.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1178 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/mac.h')
-rw-r--r--os/io/mac.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/os/io/mac.h b/os/io/mac.h
index 129c700d4..7c8a137f9 100644
--- a/os/io/mac.h
+++ b/os/io/mac.h
@@ -29,6 +29,22 @@
#include "mac_lld.h"
+/**
+ * @brief Returns the buffer associated to a @p MACTransmitDescriptor.
+ *
+ * @param[in] tdp the pointer to the @p MACTransmitDescriptor structure
+ * @return The pointer to the transmit buffer.
+ */
+#define macGetTransmitBuffer(tdp) mac_lld_get_transmit_buffer(tdp)
+
+/**
+ * @brief Returns the buffer associated to a @p MACReceiveDescriptor.
+ *
+ * @param[in] rdp the pointer to the @p MACReceiveDescriptor structure
+ * @return The pointer to the receive buffer.
+ */
+#define macGetReceiveBuffer(rdp) mac_lld_get_receive_buffer(rdp)
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -36,7 +52,7 @@ extern "C" {
void macSetAddress(uint8_t *p);
void macStart(void);
void macStop(void);
- MACTransmissionDescriptor *macGetTransmitDescriptor(systime_t time);
+ MACTransmissionDescriptor *macWaitTransmitDescriptor(systime_t time);
void macReleaseTransmitDescriptor(MACTransmitDescriptor *tdp);
void macAddTransmitData(MACTransmitDescriptor *tdp,
uint8_t *buf,