#ifndef ONE_LINE_H #define ONE_LINE_H void reset(void); /*复位和等待应答 */ void time500(void); /*延时500us */ void time20(void); /*延时20us */ void writebyte(uint8 comd); /*写一个字节 */ void write(uint8 tt); /*写一位 */ uint8 readbyte(void); /*读一个字节 */ uint8 read(uint8 number,uint8 ff[]); /*读多个字节 */ uint8 do_crc(uint8 testcrc,uint8 crc); /*对每个字节做CRC校验*/ #endif