31 lines
402 B
C
31 lines
402 B
C
//
|
|
// Created by 5ANK41 on 2024/11/28.
|
|
//
|
|
|
|
#ifndef ONEWIRE_H
|
|
#define ONEWIRE_H
|
|
|
|
#include <8052.h>
|
|
|
|
#ifndef uchar
|
|
#define uchar unsigned char
|
|
#endif
|
|
|
|
#ifndef uint
|
|
#define uint unsigned int
|
|
#endif
|
|
|
|
#define ONE_WIRE_P P3_7
|
|
|
|
uchar OneWire_init(void);
|
|
|
|
void OneWire_writeBit(uchar _bit);
|
|
|
|
void OneWire_writeByte(uchar _byte);
|
|
|
|
uchar OneWire_readBit(void);
|
|
|
|
uchar OneWire_readByte(void);
|
|
|
|
#endif //ONEWIRE_H
|