Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:c846ecbfe067, committed 2014-05-09
- Comitter:
- king33jp
- Date:
- Fri May 09 02:42:11 2014 +0000
- Parent:
- 0:9cc1d5ebe758
- Child:
- 2:bf02c4f42b15
- Commit message:
- document make
Changed in this revision
| EEPROM_AT93C46.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/EEPROM_AT93C46.h Fri May 09 02:17:12 2014 +0000
+++ b/EEPROM_AT93C46.h Fri May 09 02:42:11 2014 +0000
@@ -1,8 +1,4 @@
-#ifndef MBED_EEPROM_AT93C46_H
-#define MBED_EEPROM_AT93C46_H
-
-#include "mbed.h"
-/** @file
+/**
* AT93C46A x16 mode(7pin OC mean NC ,maybe)
* AT93C46E x16 mode(7pin NC)
* AT93C46D x16 mode(7pin ORG,H=x16,L=x8)
@@ -10,8 +6,12 @@
* SB(start bit)=1bit OP-code=2bits Addr=6bits(64word)
* controll use gpib port(Outoutx3,Inputx1)
*/
+#ifndef MBED_EEPROM_AT93C46_H
+#define MBED_EEPROM_AT93C46_H
+
+#include "mbed.h"
-/** @def
+/** define
* Command code define
*
*/
@@ -36,36 +36,37 @@
/** data=8bit
* I send to AT93C46 with 9bit data(start bit added )
* bit send with wait_us(1),so
- * @param Sending data to AT93C46
+ * @param addr Sending data to AT93C46
*/
void send(char data);
/** Data read ftom AT93C46
* send( OP-code|addr )
- * @param address(6bit)
+ * @param addr address(6bit)
*/
unsigned short read(char addr);
/** Data read ftom AT93C46
* send( OP-code|addr )
- * @param address(6bit)
- * @ret data( unsigned short 1 word )
+ * @param addr address(6bit)
+ * @return data( unsigned short 1 word )
*/
void write_enable();
/** Do write-enable to AT93C46
* send( OP-code )
- * @param address(6bit)
+ * @param addr address(6bit)
*/
void write_disable();
/** Do write-disable to AT93C46
* send( OP-code )
- * @param address(6bit)
+ * @param addr address(6bit)
*/
void erase(char addr);
/** Data erase to AT93C46
* send( OP-code|addr )
- * @param address(6bit) , write data(16bit=short)
+ * @param addr address(6bit)
+ * @param data write data(16bit=short)
*/
void write(char addr,unsigned short data);