#include <leitor.h>
Collaboration diagram for Leitor:

Contains all functions, parameters and data related to the reader device and its communication, such as the FSM and the function used to build the command block.
Public Member Functions | |
| Leitor (Communication *com) | |
| Sets the communication device and the initial communication state in the FSM. | |
| void | Fsm (void) |
| Contains the states of the communication. | |
| int | montarComando (unsigned char *buffer, unsigned char comando) |
| Mounts the command to be transmitted. | |
| void | doCommunication (int comando) |
| Called when the communication is established. | |
| void | setCommand (unsigned char comando) |
| Sets the command number code to be sent to the meter device. | |
| unsigned char | getCommand (void) |
| Gets the command number code to be sent to the meter device. | |
| int | getSerialNumber (void) |
| Gets the serial number of the reader device being used. | |
| void | setSerialNumber (int serialNum) |
| Sets the serial number of the reader device being used. | |
|
|
Called when the communication is established.
|
|
|
Gets the command number code to be sent to the meter device.
|
|
|
Gets the serial number of the reader device being used.
|
|
||||||||||||
|
Mounts the command to be transmitted.
|
|
|
Sets the command number code to be sent to the meter device.
|
|
|
Sets the serial number of the reader device being used.
|
1.3.7