#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.
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().
int is_fd_valid | ( | HANDLE | fd | ) |
Definition at line 25 of file usbtemp.c.
Referenced by MagAOX::app::usbtempMon::checkConnections().