?? 1wire.h
字號:
#ifndef WIREHEADER
#define WIREHEADER
#define WIRE1_DQ P1_0
/****************************************
*1-wire reset function
*call this function before rom command and function command
*return value:1 :have 1-wire device;0: no 1-wire device
******************************************/
unsigned char wire1_reset();
/******************************************
*read a bit
*return value: the bit readed
*******************************************/
unsigned char wire1_readbit();
/*******************************************
*write a bit
*bitval:write value
*******************************************/
void wire1_writebit(unsigned char bitval);
/********************************************
*
*********************************************/
unsigned char wire1_readbyte();
/*******************************************
*
*******************************************/
void wire1_writebyte(unsigned char value);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -