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

commands.h File Reference


Detailed Description

Commands.


Enumerations

enum  COMMANDS {
  LEIT_GRAND_INST = 14,
  LEIT_PERIODO_FALTA_ENERGIA = 25,
  INICIA_MEDIDOR = 38,
  ALTERA_HOR_VERAO = 64,
  ALTERA_TARIF_REAT = 67,
  ALTERA_TEMPO_APRES_GRAND = 75,
  LEIT_PARAM_MEDICAO = 80
}
 Defines the implemented commands from the ABNT. More...


Functions

int mountCommandInicia_Medidor (unsigned char *buffer, int serialNum)
 Function used by the Reader Device to mount the Inicia_Medidor command.

int mountCommandLeit_Periodo_Falta_Energia (unsigned char *buffer, int serialNum)
 Function used by the Reader Device to mount the Leit_Periodo_Falta_Energia command.

int mountAnswInicia_Medidor (unsigned char *buffer, int serialNum)
 Function used by the Meter Device to mount the answer for the Inicia_Medidor command.

int mountAnswLeit_Periodo_Falta_Energia (unsigned char *buffer, int serialNum)
 Function used by the Meter Device to mount the answer for the Leit_Periodo_Falta_Energia command.


Enumeration Type Documentation

enum COMMANDS
 

Defines the implemented commands from the ABNT.

Enumeration values:
LEIT_GRAND_INST  Leitura de Grandezas Instantaneas.
LEIT_PERIODO_FALTA_ENERGIA  Leitura dos Periodos de Falta de Energia.
INICIA_MEDIDOR  Inicializacao do Medidor.
ALTERA_HOR_VERAO  Alteracao de horario de verao.
ALTERA_TARIF_REAT  Alteracao de tarifa de reativos.
ALTERA_TEMPO_APRES_GRAND  Alteracao do tempo de apresentacao das grandezas no mostrador.
LEIT_PARAM_MEDICAO  Leitura de Parametros de Medicao.


Function Documentation

int mountAnswInicia_Medidor unsigned char *  buffer,
int  serialNum
 

Function used by the Meter Device to mount the answer for the Inicia_Medidor command.

Parameters:
buffer answer-command to transmit.
serialNum the meter serial number.
Returns:
the number of bytes in the answer-command.

int mountAnswLeit_Periodo_Falta_Energia unsigned char *  buffer,
int  serialNum
 

Function used by the Meter Device to mount the answer for the Leit_Periodo_Falta_Energia command.

Parameters:
buffer answer-command to transmit.
serialNum the meter serial number.
Returns:
the number of bytes in the answer-command.

int mountCommandInicia_Medidor unsigned char *  buffer,
int  serialNum
 

Function used by the Reader Device to mount the Inicia_Medidor command.

Parameters:
buffer command to transmit.
serialNum the reader serial number.
Returns:
the number of bytes in the command.

int mountCommandLeit_Periodo_Falta_Energia unsigned char *  buffer,
int  serialNum
 

Function used by the Reader Device to mount the Leit_Periodo_Falta_Energia command.

Parameters:
buffer command to transmit.
serialNum the reader serial number.
Returns:
the number of bytes in the command.


Generated on Sun Aug 21 21:28:43 2005 for PLC Modem/ABNT-14522 Library by doxygen 1.3.7