Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

CommPLC Class Reference

#include <commplc.h>

Inheritance diagram for CommPLC:

Inheritance graph
[legend]
Collaboration diagram for CommPLC:

Collaboration graph
[legend]

Detailed Description

Power Line Communication class.

This class was created to keep the same interface for the programs made for the communication between two computers and the programs made for the communication between a PLC modem and a computer. Thus, the functions in this class map the functions of the general Communication class (communication.h) onto the functions of the PLC modem (plcmodem.h).


Public Member Functions

 CommPLC (const char *device)
 Initializes the communication wiht the PLC modem.

 ~CommPLC (void)
 Finishes the communication with the PLC modem.

int send (unsigned char const *buffer, int numBytes)
 Transmits data through the the PLC modem.

int receive (unsigned char *buffer_receive, int numBytes)
 Receives data from the the PLC modem.


Member Function Documentation

int CommPLC::receive unsigned char *  buffer_receive,
int  numBytes
[virtual]
 

Receives data from the the PLC modem.

Parameters:
buffer_receive data received.
numBytes number of bytes expected to be received.
Returns:
the number of bytes received or an error code

Implements Communication.

int CommPLC::send unsigned char const *  buffer,
int  numBytes
[virtual]
 

Transmits data through the the PLC modem.

Parameters:
buffer data to transmit.
numBytes the number of bytes to transmit.
Returns:
an error code

Implements Communication.


The documentation for this class was generated from the following file:
Generated on Sun Aug 21 21:28:47 2005 for PLC Modem/ABNT-14522 Library by doxygen 1.3.7