PX4 Firmware
PX4 Autopilot Software http://px4.io
ReceiverFcPacket Struct Reference

#include <st24.h>

Collaboration diagram for ReceiverFcPacket:

Public Attributes

uint8_t header1
 0x55 for a valid packet More...
 
uint8_t header2
 0x55 for a valid packet More...
 
uint8_t length
 length includes type, data, and crc = sizeof(type)+sizeof(data[payload_len])+sizeof(crc8) More...
 
uint8_t type
 from enum ST24_PACKET_TYPE More...
 
uint8_t st24_data [ST24_DATA_LEN_MAX]
 
uint8_t crc8
 crc8 checksum, calculated by st24_common_crc8 and including fields length, type and st24_data More...
 

Detailed Description

Definition at line 68 of file st24.h.

Member Data Documentation

◆ crc8

uint8_t ReceiverFcPacket::crc8

crc8 checksum, calculated by st24_common_crc8 and including fields length, type and st24_data

Definition at line 74 of file st24.h.

Referenced by st24_decode().

◆ header1

uint8_t ReceiverFcPacket::header1

0x55 for a valid packet

Definition at line 69 of file st24.h.

◆ header2

uint8_t ReceiverFcPacket::header2

0x55 for a valid packet

Definition at line 70 of file st24.h.

◆ length

uint8_t ReceiverFcPacket::length

length includes type, data, and crc = sizeof(type)+sizeof(data[payload_len])+sizeof(crc8)

Definition at line 71 of file st24.h.

Referenced by st24_decode().

◆ st24_data

uint8_t ReceiverFcPacket::st24_data[ST24_DATA_LEN_MAX]

Definition at line 73 of file st24.h.

Referenced by st24_decode().

◆ type

uint8_t ReceiverFcPacket::type

from enum ST24_PACKET_TYPE

Definition at line 72 of file st24.h.

Referenced by st24_decode().


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