The GPIO_RESUME_PLS_CNT command resumes suspended pulse counter. This command can resume time counting and/or pulse counting.
| Byte 0 | GPIO_RESUME_PLS_CNT | Command ID |
| Byte 1 | ECHO | Echo to associate the command with the response |
| Byte 2 | PLS_CNT_NUMBER | ID number of the pulse counter to be resumed |
| Byte 3 | RESET_TIMER | Byte to reset time count |
| Byte 4 | RESET_COUNTER | Byte to reset pulse count |
| Bytes 5..7 | Reserved | Reserved |
Command is an 8-byte array of the following format:
This byte contains command ID (command type). It must be set to 0x2A.
This byte can be used to associate a response received from GPIO-24 adapter with a specific command. Response will contain exactly the same value in its echo byte.
The ID number of the pulse counter:
0 – pulse counter on A.3 pin;
1 – pulse counter on A.4 pin.
This byte resets time count:
1 – time count will start from 0;
0 – time count will start from suspended value.
This byte resets pulse count:
1 – pulse count will start from 0;
0 – pulse count will start from suspended value,
These bytes are reserved for future usage and must be set to 0.
For convenience GPIO_RESUME_PLS_CNT_CMD structure is declared in reports.h file.
GPIO-24 adapter sends GPIO_RESUME_PLS_CNT response after command execution.
| Byte 0 | GPIO_RESUME_PLS_CNT | Response ID |
| Byte 1 | ECHO | Echo to associate the command with the response |
| Byte 2 | ST | Command execution status |
| Bytes 3..7 | Reserved | Reserved |
Response is an 8-byte array of the following format:
Response ID (response type). This byte will contain 0x2A.
Echo byte copied from the corresponding command. It can be used to associate the response with the specific command.
Status of the command execution:
GPIO_ST_SUCCESS (0x00) – Pulse counter has succesfully been resumed;
GPIO_ST_INVALID_PLS_CNT_NUMBER (0x0A) – Invalid ID of the pulse counter has been specified (only 0 and 1 values are valid);
GPIO_ST_INVALID_PARAMETER (0x0B) – Invalid reset timer parameter or reset counter parameter has been specified (only 0 and 1 values are valid).
These bytes are reserved for future usage.
For convenience GPIO_RESUME_PLS_CNT_RSP structure is declared in reports.h file.