| Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 |
|---|---|---|---|---|---|---|---|
| GPIO _MAKE _PULSE (0x0A) | ECHO | GPIO | VAL | TL | TH | 0 | 0 |
The GPIO_MAKE_PULSE command instructs GPIO-24 adapter to make a single pulse on selected I/O pin. Pulse length has to be specified in bytes 4 and 5 and can vary from 1 ms to 65.535 seconds (65535 ms). After the pulse is finished the pin remains configured for output.
Command is an 8-byte array of the following format:
For convenience GPIO_MAKE_PULSE_CMD structure is declared in reports.h file:
typedef struct _GPIO_MAKE_PULSE_CMD
{
unsigned char id; // = GPIO_MAKE_PULSE;
unsigned char echo;
unsigned char gpio;
unsigned char val;
unsigned short t;
unsigned char reserved[2]; // must be 0
} __PACKED_ATTR GPIO_MAKE_PULSE_CMD, *PGPIO_MAKE_PULSE_CMD;
GPIO-24 adapter sends GPIO_MAKE_PULSE response after command execution.