#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/select.h>#include <sys/stat.h>#include <sys/types.h>#include <termios.h>#include <unistd.h>#include "usbtemp.h"
Go to the source code of this file.
Macros | |
| #define | TIMEOUT 1 |
Functions | |
| int | owReset (int fd) |
| static unsigned char | owWriteByte (int fd, unsigned char wbuff) |
| unsigned char | owRead (int fd) |
| int | owWrite (int fd, unsigned char wbuff) |
| static int | file_exists (const char *filename) |
| int | owOpen (const char *serial_port) |
| void | owClose (int fd) |
Variables | |
| int | ut_errno |
|
static |
| void owClose | ( | int | fd | ) |
Definition at line 196 of file linux.c.
Referenced by DS18B20_close().
| int owOpen | ( | const char * | serial_port | ) |
Definition at line 155 of file linux.c.
References file_exists(), and ut_errno.
Referenced by DS18B20_open().
| unsigned char owRead | ( | int | fd | ) |
Definition at line 138 of file linux.c.
References owWriteByte().
Referenced by DS18B20_rom(), and DS18B20_sp().
| int owReset | ( | int | fd | ) |
Definition at line 17 of file linux.c.
References TIMEOUT, and ut_errno.
Referenced by DS18B20_rom(), and DS18B20_start().
| int owWrite | ( | int | fd, |
| unsigned char | wbuff | ||
| ) |
Definition at line 143 of file linux.c.
References owWriteByte().
Referenced by DS18B20_measure(), DS18B20_rom(), DS18B20_setprecision(), DS18B20_sp(), and DS18B20_start().
|
static |
| int ut_errno |
Definition at line 15 of file linux.c.
Referenced by DS18B20_errmsg(), DS18B20_measure(), DS18B20_rom(), DS18B20_setprecision(), DS18B20_sp(), DS18B20_start(), owOpen(), owReset(), and owWriteByte().