#include <medidor.h>
Collaboration diagram for Medidor:

Contains all functions, parameters and data related to the meter device and its communication, such as the FSM and the function used to build the answer to the command received.
Public Member Functions | |
| Medidor (Communication *com) | |
| Sets the communication device and the initial communication state in the FSM. | |
| void | Fsm (void) |
| Contains the states of the communication. | |
| int | montarResposta (unsigned char *buffer, unsigned char comando) |
| Builds the answer to the command received. | |
| void | doCommunication (unsigned char *buffer_snd, int numBytes, unsigned char *buffer_rec, int bytes_rec, Communication *med) |
| Called when the communication is established. | |
| int | getSerialNumber (void) |
| Gets the serial number of the meter device being used. | |
| void | setSerialNumber (int serialNum) |
| Sets the serial number of the meter device being used. | |
|
|
Sets the communication device and the initial communication state in the FSM.
|
|
||||||||||||||||||||||||
|
Called when the communication is established.
|
|
|
Gets the serial number of the meter device being used.
|
|
||||||||||||
|
Builds the answer to the command received.
|
|
|
Sets the serial number of the meter device being used.
|
1.3.7