rng90 1.0
rng90 driver library
Loading...
Searching...
No Matches
RNG90_Packet_t Struct Reference

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

Detailed Description

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.

Field Documentation

◆ count

unsigned char count

Total number of bytes in the packet (including fields and CRC)

◆ crc

unsigned int crc

CRC value used to verify the integrity of the packet

◆ opcode

unsigned char opcode

Operation code specifying the command or response type

◆ param1

unsigned char param1

First parameter byte for the command or response

◆ param2

unsigned int param2

Second parameter field, typically a 16-bit value


The documentation for this struct was generated from the following file: