FreeBASIC  0.91.0
io_serial.c File Reference
#include "../fb.h"
#include <windows.h>
Include dependency graph for io_serial.c:

Go to the source code of this file.

Data Structures

struct  _W32_SERIAL_INFO
 

Macros

#define GET_MSEC_TIME()   ((DWORD) (fb_Timer() * 1000.0))
 

Typedefs

typedef struct _W32_SERIAL_INFO W32_SERIAL_INFO
 

Functions

static int fb_hSerialWaitSignal (HANDLE hDevice, DWORD dwMask, DWORD dwResult, DWORD dwTimeout)
 
static int fb_hSerialCheckLines (HANDLE hDevice, FB_SERIAL_OPTIONS *pOptions)
 
int fb_SerialOpen (FB_FILE *handle, int iPort, FB_SERIAL_OPTIONS *options, const char *pszDevice, void **ppvHandle)
 
int fb_SerialGetRemaining (FB_FILE *handle, void *pvHandle, fb_off_t *pLength)
 
int fb_SerialWrite (FB_FILE *handle, void *pvHandle, const void *data, size_t length)
 
int fb_SerialRead (FB_FILE *handle, void *pvHandle, void *data, size_t *pLength)
 
int fb_SerialClose (FB_FILE *handle, void *pvHandle)
 

Macro Definition Documentation

#define GET_MSEC_TIME ( )    ((DWORD) (fb_Timer() * 1000.0))

Definition at line 6 of file io_serial.c.

Typedef Documentation

Function Documentation

static int fb_hSerialCheckLines ( HANDLE  hDevice,
FB_SERIAL_OPTIONS pOptions 
)
static

Definition at line 32 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int fb_hSerialWaitSignal ( HANDLE  hDevice,
DWORD  dwMask,
DWORD  dwResult,
DWORD  dwTimeout 
)
static

Definition at line 14 of file io_serial.c.

Here is the caller graph for this function:

int fb_SerialClose ( FB_FILE handle,
void *  pvHandle 
)

Definition at line 331 of file io_serial.c.

Here is the call graph for this function:

int fb_SerialGetRemaining ( FB_FILE handle,
void *  pvHandle,
fb_off_t pLength 
)

Definition at line 272 of file io_serial.c.

Here is the call graph for this function:

int fb_SerialOpen ( FB_FILE handle,
int  iPort,
FB_SERIAL_OPTIONS options,
const char *  pszDevice,
void **  ppvHandle 
)

Definition at line 51 of file io_serial.c.

Here is the call graph for this function:

int fb_SerialRead ( FB_FILE handle,
void *  pvHandle,
void *  data,
size_t *  pLength 
)

Definition at line 308 of file io_serial.c.

Here is the call graph for this function:

int fb_SerialWrite ( FB_FILE handle,
void *  pvHandle,
const void *  data,
size_t  length 
)

Definition at line 285 of file io_serial.c.

Here is the call graph for this function: