Go to the source code of this file.
Functions | |
void | wait_1s (void) |
int | is_fd_valid (HANDLE fd) |
static unsigned char | lsb_crc8 (unsigned char *data_in, unsigned int len, const unsigned char generator) |
char * | DS18B20_errmsg (void) |
static int | DS18B20_start (HANDLE fd) |
static int | DS18B20_sp (HANDLE fd, unsigned char *sp) |
int | DS18B20_measure (HANDLE fd) |
int | DS18B20_setprecision (HANDLE fd, int precision) |
int | DS18B20_acquire (HANDLE fd, float *temperature) |
int | DS18B20_rom (HANDLE fd, unsigned char *rom) |
HANDLE | DS18B20_open (const char *serial_port) |
void | DS18B20_close (HANDLE fd) |
Variables | |
int | ut_errno |
static char * | ut_msgs [] |
int DS18B20_acquire | ( | HANDLE | fd, |
float * | temperature | ||
) |
Definition at line 172 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::appLogic().
void DS18B20_close | ( | HANDLE | fd | ) |
Definition at line 225 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::appLogic(), and MagAOX::app::usbtempMon::checkConnections().
char* DS18B20_errmsg | ( | void | ) |
Definition at line 68 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::appLogic(), and MagAOX::app::usbtempMon::checkConnections().
int DS18B20_measure | ( | HANDLE | fd | ) |
Definition at line 115 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::appLogic(), and MagAOX::app::usbtempMon::checkConnections().
HANDLE DS18B20_open | ( | const char * | serial_port | ) |
Definition at line 220 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::checkConnections().
int DS18B20_rom | ( | HANDLE | fd, |
unsigned char * | rom | ||
) |
Definition at line 194 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::checkConnections().
|
static |
Definition at line 86 of file usbtemp.c.
Referenced by DS18B20_acquire(), and DS18B20_setprecision().
|
static |
Definition at line 73 of file usbtemp.c.
Referenced by DS18B20_measure(), DS18B20_setprecision(), and DS18B20_sp().
int is_fd_valid | ( | HANDLE | fd | ) |
Definition at line 25 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::checkConnections().
|
static |
Definition at line 46 of file usbtemp.c.
Referenced by DS18B20_rom(), and DS18B20_sp().
|
extern |
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().
|
static |
Definition at line 33 of file usbtemp.c.
Referenced by DS18B20_errmsg().