alt_eeprom.h

来自「FPGA应用如sd卡控制」· C头文件 代码 · 共 26 行

H
26
字号
#include <unistd.h>#include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <ctype.h>#include "sys/alt_irq.h"#include "system.h"#include "altera_avalon_pio_regs.h"#include "alt_2_wire.h"typedef struct i2c_device {    int id;    int size;    int writeControlByte;    int readControlByte;} mem_device;int readRandom(struct i2c_device *device,int address, char *buf, int len);int writeByte(struct i2c_device *device, int address, int value);void hexdump_eeprom(char *buf, int len, int offset);void dump(struct i2c_device *device, int start, int len);void fill(struct i2c_device *device, char b);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?