|
rng90 1.0
rng90 driver library
|
Represents a generic command or response packet for the RNG90 device. More...
#include <rng90.h>
Data Fields | |
| unsigned char | count |
| unsigned char | opcode |
| unsigned char | param1 |
| unsigned int | param2 |
| unsigned int | crc |
Represents a generic command or response packet for the RNG90 device.
This structure describes the basic frame format used to communicate with the RNG90 device. It contains a byte count, an opcode selecting the command or response type, two parameter fields, and a CRC value for data integrity checking. The exact semantics of the parameters depend on the specific command being sent or received.
| unsigned char count |
Total number of bytes in the packet (including fields and CRC)
| unsigned int crc |
CRC value used to verify the integrity of the packet
| unsigned char opcode |
Operation code specifying the command or response type
| unsigned char param1 |
First parameter byte for the command or response
| unsigned int param2 |
Second parameter field, typically a 16-bit value