API
linux.c File Reference
#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"
Include dependency graph for linux.c:

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
 

Macro Definition Documentation

◆ TIMEOUT

#define TIMEOUT   1

Definition at line 13 of file linux.c.

Function Documentation

◆ file_exists()

static int file_exists ( const char *  filename)
static

Definition at line 148 of file linux.c.

Referenced by owOpen().

◆ owClose()

void owClose ( int  fd)

Definition at line 196 of file linux.c.

Referenced by DS18B20_close().

◆ owOpen()

int owOpen ( const char *  serial_port)

Definition at line 155 of file linux.c.

Referenced by DS18B20_open().

◆ owRead()

unsigned char owRead ( int  fd)

Definition at line 138 of file linux.c.

Referenced by DS18B20_rom(), and DS18B20_sp().

◆ owReset()

int owReset ( int  fd)

Definition at line 17 of file linux.c.

Referenced by DS18B20_rom(), and DS18B20_start().

◆ owWrite()

int owWrite ( int  fd,
unsigned char  wbuff 
)

◆ owWriteByte()

static unsigned char owWriteByte ( int  fd,
unsigned char  wbuff 
)
static

Definition at line 87 of file linux.c.

Referenced by owRead(), and owWrite().

Variable Documentation

◆ ut_errno