onewire.h 539 Bytes
Newer Older
1 2 3 4 5
/*
 * This work is part of the White Rabbit project
 *
 * Released according to the GNU GPL, version 2 or any later version.
 */
6 7 8 9 10
#ifndef PERSISTENT_MAC_H
#define PERSISTENT_MAC_H

#define ONEWIRE_PORT 0
#define EEPROM_MAC_PAGE 0
11
#define MAX_DEV1WIRE 8
12

13 14 15
#define FOUND_DS18B20 0x01

void own_scanbus(uint8_t portnum);
16
int16_t own_readtemp(uint8_t portnum, int16_t * temp, int16_t * t_frac);
17
/* 0 = success, -1 = error */
18 19
int get_persistent_mac(uint8_t portnum, uint8_t * mac);
int set_persistent_mac(uint8_t portnum, uint8_t * mac);
20 21

#endif