FreeBASIC  0.91.0
fb_serial.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _FB_SERIAL_OPTIONS
 

Typedefs

typedef enum _FB_SERIAL_PARITY FB_SERIAL_PARITY
 
typedef enum _FB_SERIAL_STOP_BITS FB_SERIAL_STOP_BITS
 
typedef struct _FB_SERIAL_OPTIONS FB_SERIAL_OPTIONS
 

Enumerations

enum  _FB_SERIAL_PARITY {
  FB_SERIAL_PARITY_NONE, FB_SERIAL_PARITY_EVEN, FB_SERIAL_PARITY_ODD, FB_SERIAL_PARITY_SPACE,
  FB_SERIAL_PARITY_MARK
}
 
enum  _FB_SERIAL_STOP_BITS { FB_SERIAL_STOP_BITS_1, FB_SERIAL_STOP_BITS_1_5, FB_SERIAL_STOP_BITS_2 }
 

Functions

int fb_DevSerialSetWidth (const char *pszDevice, int width, int default_width)
 
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_SerialWriteWstr (FB_FILE *handle, void *pvHandle, const FB_WCHAR *data, size_t length)
 
int fb_SerialRead (FB_FILE *handle, void *pvHandle, void *data, size_t *pLength)
 
int fb_SerialReadWstr (FB_FILE *handle, void *pvHandle, FB_WCHAR *data, size_t *pLength)
 
int fb_SerialClose (FB_FILE *handle, void *pvHandle)
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
FB_SERIAL_PARITY_NONE 
FB_SERIAL_PARITY_EVEN 
FB_SERIAL_PARITY_ODD 
FB_SERIAL_PARITY_SPACE 
FB_SERIAL_PARITY_MARK 

Definition at line 1 of file fb_serial.h.

Enumerator
FB_SERIAL_STOP_BITS_1 
FB_SERIAL_STOP_BITS_1_5 
FB_SERIAL_STOP_BITS_2 

Definition at line 9 of file fb_serial.h.

Function Documentation

int fb_DevSerialSetWidth ( const char *  pszDevice,
int  width,
int  default_width 
)

Definition at line 373 of file dev_com.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_SerialClose ( FB_FILE handle,
void *  pvHandle 
)

Definition at line 1038 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 968 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 896 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1008 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 984 of file io_serial.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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