1 wire protocol functions. Target: PIC16F876 More...
Go to the source code of this file.
Macros | |
#define | W1_OK 0x00 |
Function call success. More... | |
#define | W1_CRC 0x01 |
CRC verification fail. More... | |
#define | W1_FOUND 0x02 |
No device found. More... | |
Functions | |
BYTE | OneWire_GetID (BYTE *buff) |
BYTE | OneWire_Init (void) |
BYTE | OneWire_Read (void) |
void | OneWire_Write (BYTE d) |
BYTE | OneWire_Crc8 (BYTE Data, BYTE Accum) |
Detailed Description
1 wire protocol functions. Target: PIC16F876
This file is part of JADEKU Portable ADQ device for Routines Control.
Copyright (C) 2002-2009, Hernan Monserrat hemonserrat<at>gmail<dot>com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file onewire.h.
Macro Definition Documentation
◆ W1_CRC
◆ W1_FOUND
◆ W1_OK
Function Documentation
◆ OneWire_Crc8()
◆ OneWire_GetID()
1-wire prototypes
Test for the 1 wire device presence, read ROM code and calculates crc.
- Parameters
-
buff - buffer to store read data.
- Returns
- TRUE on packet received, FALSE timeout.
- Remarks
- note that 8-byte ID is returned in array buff.
Definition at line 43 of file onewire.c.
◆ OneWire_Init()
BYTE OneWire_Init | ( | void | ) |
◆ OneWire_Read()
BYTE OneWire_Read | ( | void | ) |