muse_port_type_t Struct Reference
[Functional objectsPorts]

Defines the Ports protocol. More...

#include <muse_port.h>

Collaboration diagram for muse_port_type_t:

Collaboration graph
[legend]

Data Fields

muse_functional_object_type_t obj
void(* close )(void *port)
 The close function should release all system resources allocated by the port object.
size_t(* read )(void *buffer, size_t nbytes, void *port)
 Should read nbytes bytes from the port and copy them to the given buffer.
size_t(* write )(void *buffer, size_t nbytes, void *port)
 Should write the given nbytes bytes to the port.
int(* flush )(void *port)
 If a port is buffered at the system level, this should call the system flush function appropriate for the task.

Detailed Description

Defines the Ports protocol.

ALl the port arguments are pointers to the muse_port_base_t data structure.


Field Documentation

muse_functional_object_type_t muse_port_type_t::obj


The documentation for this struct was generated from the following file:
Generated on Mon Sep 25 23:12:51 2006 for muSE by  doxygen 1.4.7