diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-09-25 14:56:57 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-09-25 14:56:57 +0000 |
commit | 7c2813c27119ed1f3c9c433dc37583cc919d5a3f (patch) | |
tree | 5f5cc8ea003f288e05a06c9d14ea9aaf5b8e11f3 /os/io/phy.h | |
parent | df471c97569f94d75efcdd00d19274bab243c981 (diff) | |
download | ChibiOS-7c2813c27119ed1f3c9c433dc37583cc919d5a3f.tar.gz ChibiOS-7c2813c27119ed1f3c9c433dc37583cc919d5a3f.tar.bz2 ChibiOS-7c2813c27119ed1f3c9c433dc37583cc919d5a3f.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1181 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/phy.h')
-rw-r--r-- | os/io/phy.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/os/io/phy.h b/os/io/phy.h index 7bf09b8c3..ffafa4025 100644 --- a/os/io/phy.h +++ b/os/io/phy.h @@ -27,12 +27,28 @@ #ifndef _PHY_H_
#define _PHY_H_
+#include "mac_lld.h"
#include "phy_lld.h"
+/**
+ * @brief Type of a PHY register value. + */
+typedef uint16_t phyreg_t;
+
+/**
+ * @brief Type of a PHY register address.
+ */
+typedef uint8_t phyaddr_t;
+
#ifdef __cplusplus
extern "C" {
#endif
void phyInit(void);
+ void phyReset(MACDriver *macp);
+ void phyStart(MACDriver *macp);
+ void phyStop(MACDriver *macp);
+ phyreg_t phyGet(MACDriver *macp, phyaddr_t addr);
+ void phyPut(MACDriver *macp, phyaddr_t addr, phyreg_t value);
#ifdef __cplusplus
}
#endif
|