Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

backend.h File Reference

Different backends that can be used by device drivers. More...

#include <stdlib.h>
#include <common/xmlt.h>

Include dependency graph for backend.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void * backend_create_handle (xml_node *config, const char *name)
 Create a backend handle.

int backend_send (void *handle, const char *data, size_t len)
 Send some data over the backend.

void backend_free_handle (void *handle)
 Close backend handle and free the memory.


Detailed Description

Different backends that can be used by device drivers.

This header file defines a uniform API for sending data over serial, parallel, USB, and I2C ports, as well as a curses window for those who want to test FreeLCD without an LCD.

Definition in file backend.h.


Function Documentation

void* backend_create_handle xml_node *    config,
const char *    name
 

Create a backend handle.

The XML configuration data is the part of the central config file enclosed within <backend> tags.

Parameters:
config  Part of the configuration file, root tag is normally <backend>.
name  Name of this backend.
Returns:
Pointer to backend handle.

Definition at line 306 of file backend.c.

void backend_free_handle void *    handle
 

Close backend handle and free the memory.

Parameters:
handle  Handle returned by backend_create_handle.

Definition at line 344 of file backend.c.

int backend_send void *    handle,
const char *    data,
size_t    len
 

Send some data over the backend.

Parameters:
handle  Handle returned by backend_create_handle.
data  Pointer to the data to send.
len  Amount of data to send.
Returns:
Zero if operation failed, nonzero if it succeeded.

Definition at line 332 of file backend.c.


Generated on Sun Feb 16 23:39:50 2003 for FreeLCD by doxygen1.2.18