#include "platform.h"

Go to the source code of this file.
Macros | |
| #define | DEFAULT_SERIAL_PORT "/dev/ttyUSB0" |
| #define | DS18X20_GENERATOR 0x8c |
| #define | DS18X20_ROM_SIZE 8 |
| #define | DS18X20_SP_SIZE 9 |
| #define | DS18B20_SP_TH 2 |
| #define | DS18B20_SP_TL 3 |
| #define | DS18B20_SP_CONFIG 4 |
| #define | DS18B20_SP_WRITE 0x4e |
| #define | DS18B20_SP_SAVE 0x48 |
Functions | |
| char * | DS18B20_errmsg (void) |
| HANDLE | DS18B20_open (const char *) |
| int | DS18B20_measure (HANDLE) |
| int | DS18B20_acquire (HANDLE, float *) |
| int | DS18B20_rom (HANDLE, unsigned char *) |
| int | DS18B20_setprecision (HANDLE, int) |
| void | DS18B20_close (HANDLE) |
| void | wait_1s (void) |
| int | is_fd_valid (HANDLE) |
| int DS18B20_acquire | ( | HANDLE | fd, |
| float * | temperature | ||
| ) |
Definition at line 172 of file usbtemp.c.
References DS18B20_sp(), and DS18X20_SP_SIZE.
Referenced by MagAOX::app::usbtempMon::appLogic().
| void DS18B20_close | ( | HANDLE | fd | ) |
Definition at line 225 of file usbtemp.c.
References owClose().
Referenced by MagAOX::app::usbtempMon::appLogic(), and MagAOX::app::usbtempMon::checkConnections().
| char * DS18B20_errmsg | ( | void | ) |
Definition at line 68 of file usbtemp.c.
References ut_errno, and ut_msgs.
Referenced by MagAOX::app::usbtempMon::appLogic(), and MagAOX::app::usbtempMon::checkConnections().
| int DS18B20_measure | ( | HANDLE | fd | ) |
Definition at line 115 of file usbtemp.c.
References DS18B20_start(), owWrite(), and ut_errno.
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.
References owOpen().
Referenced by MagAOX::app::usbtempMon::checkConnections().
| int DS18B20_rom | ( | HANDLE | fd, |
| unsigned char * | rom | ||
| ) |
Definition at line 194 of file usbtemp.c.
References DS18X20_GENERATOR, DS18X20_ROM_SIZE, lsb_crc8(), owRead(), owReset(), owWrite(), and ut_errno.
Referenced by MagAOX::app::usbtempMon::checkConnections().
| int DS18B20_setprecision | ( | HANDLE | fd, |
| int | precision | ||
| ) |
Definition at line 127 of file usbtemp.c.
References DS18B20_sp(), DS18B20_SP_CONFIG, DS18B20_SP_SAVE, DS18B20_SP_TH, DS18B20_SP_TL, DS18B20_SP_WRITE, DS18B20_start(), DS18X20_SP_SIZE, owWrite(), and ut_errno.
| int is_fd_valid | ( | HANDLE | fd | ) |
Definition at line 25 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::checkConnections().