Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
SuperbitRF Struct Reference

#include <superbitrf.h>

+ Collaboration diagram for SuperbitRF:

Data Fields

uint8_t bind_mfg_id [4]
 The MFG id where the receiver is bound to. More...
 
uint32_t bind_mfg_id32
 The MFG id where the receiver is bound to in uint32. More...
 
uint8_t num_channels
 The number of channels the transmitter has. More...
 
enum dsm_protocol protocol
 The protocol the transmitter uses. More...
 
struct Cyrf6936 cyrf6936
 The cyrf chip used. More...
 
enum SuperbitRFStatus status
 The status of the superbitRF. More...
 
uint8_t state
 The states each status can be in. More...
 
uint32_t timer
 The timer in microseconds. More...
 
bool_t timer_overflow
 When the timer overflows. More...
 
uint8_t timeouts
 The amount of timeouts. More...
 
uint32_t transfer_timeouts
 The amount of timeouts during transfer. More...
 
uint32_t resync_count
 The amount of resyncs needed during transfer. More...
 
uint8_t packet_loss_bit
 The packet loss indicating bit. More...
 
bool_t packet_loss
 When we have packet loss last packet. More...
 
uint8_t channels [23]
 The channels used for DSM2/DSMX. More...
 
uint8_t channel_idx
 The current channel index. More...
 
uint8_t channel
 The current channel number. More...
 
uint32_t irq_count
 How many interrupts are made. More...
 
uint32_t rx_packet_count
 How many packets are received(also the invalid) More...
 
uint32_t tx_packet_count
 How many packets are send(also the invalid) More...
 
uint32_t uplink_count
 How many valid uplink packages are received. More...
 
uint32_t rc_count
 How many valid RC packages are received. More...
 
enum dsm_resolution resolution
 The resolution that the transmitter has. More...
 
uint16_t crc_seed
 The CRC seed that is calculated with the bind MFG id. More...
 
uint8_t sop_col
 The sop code column number calculated with the bind MFG id. More...
 
uint8_t data_col
 The data code column number calculated with the bind MFG id. More...
 
bool_t rc_frame_available
 When a RC frame is available. More...
 
uint32_t timing1
 Time between last receive in microseconds. More...
 
uint32_t timing2
 Time between second last receive in microseconds. More...
 
int16_t rc_values [14]
 The rc values from the packet. More...
 
struct pprz_transport rx_transport
 The receive transport. More...
 
uint8_t tx_buffer [128]
 The transmit buffer. More...
 
uint8_t tx_insert_idx
 The transmit buffer insert index. More...
 
uint8_t tx_extract_idx
 The transmit buffer extract index. More...
 

Detailed Description

Definition at line 43 of file superbitrf.h.

Field Documentation

uint8_t SuperbitRF::bind_mfg_id

The MFG id where the receiver is bound to.

Definition at line 44 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_gen_dsmx_channels(), superbitrf_receive_packet_cb(), and superbitrf_set_mfg_id().

uint32_t SuperbitRF::bind_mfg_id32

The MFG id where the receiver is bound to in uint32.

Definition at line 45 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), and superbitrf_set_mfg_id().

uint8_t SuperbitRF::channel

The current channel number.

Definition at line 87 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_receive_packet_cb().

uint8_t SuperbitRF::channel_idx

The current channel index.

Definition at line 86 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_receive_packet_cb().

uint8_t SuperbitRF::channels[23]

The channels used for DSM2/DSMX.

Definition at line 85 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_gen_dsmx_channels(), and superbitrf_receive_packet_cb().

uint16_t SuperbitRF::crc_seed

The CRC seed that is calculated with the bind MFG id.

Definition at line 99 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_receive_packet_cb(), and superbitrf_set_mfg_id().

struct Cyrf6936 SuperbitRF::cyrf6936

The cyrf chip used.

Definition at line 74 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), and superbitrf_receive_packet_cb().

uint8_t SuperbitRF::data_col

The data code column number calculated with the bind MFG id.

Definition at line 101 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_set_mfg_id().

uint32_t SuperbitRF::irq_count

How many interrupts are made.

Definition at line 88 of file superbitrf.h.

Referenced by superbitrf_event().

uint8_t SuperbitRF::num_channels

The number of channels the transmitter has.

Definition at line 46 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), and superbitrf_receive_packet_cb().

bool_t SuperbitRF::packet_loss

When we have packet loss last packet.

Definition at line 83 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_receive_packet_cb().

uint8_t SuperbitRF::packet_loss_bit

The packet loss indicating bit.

Definition at line 82 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_receive_packet_cb().

enum dsm_protocol SuperbitRF::protocol

The protocol the transmitter uses.

Definition at line 47 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), superbitrf_receive_packet_cb(), and superbitrf_set_protocol().

uint32_t SuperbitRF::rc_count

How many valid RC packages are received.

Definition at line 92 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

bool_t SuperbitRF::rc_frame_available

When a RC frame is available.

Definition at line 103 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

int16_t SuperbitRF::rc_values[14]

The rc values from the packet.

Definition at line 106 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

enum dsm_resolution SuperbitRF::resolution

The resolution that the transmitter has.

Definition at line 98 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb(), and superbitrf_set_protocol().

uint32_t SuperbitRF::resync_count

The amount of resyncs needed during transfer.

Definition at line 81 of file superbitrf.h.

Referenced by superbitrf_event().

uint32_t SuperbitRF::rx_packet_count

How many packets are received(also the invalid)

Definition at line 89 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_init().

struct pprz_transport SuperbitRF::rx_transport

The receive transport.

Definition at line 108 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

uint8_t SuperbitRF::sop_col

The sop code column number calculated with the bind MFG id.

Definition at line 100 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_set_mfg_id().

uint8_t SuperbitRF::state

The states each status can be in.

Definition at line 76 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), superbitrf_receive_packet_cb(), and superbitrf_send_packet_cb().

enum SuperbitRFStatus SuperbitRF::status

The status of the superbitRF.

Definition at line 75 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), superbitrf_receive_packet_cb(), and superbitrf_send_packet_cb().

uint8_t SuperbitRF::timeouts

The amount of timeouts.

Definition at line 79 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_receive_packet_cb().

uint32_t SuperbitRF::timer

The timer in microseconds.

Definition at line 77 of file superbitrf.h.

Referenced by superbitrf_event(), superbitrf_init(), and superbitrf_receive_packet_cb().

bool_t SuperbitRF::timer_overflow

When the timer overflows.

Definition at line 78 of file superbitrf.h.

Referenced by superbitrf_event().

uint32_t SuperbitRF::timing1

Time between last receive in microseconds.

Definition at line 104 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

uint32_t SuperbitRF::timing2

Time between second last receive in microseconds.

Definition at line 105 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().

uint32_t SuperbitRF::transfer_timeouts

The amount of timeouts during transfer.

Definition at line 80 of file superbitrf.h.

Referenced by superbitrf_event().

uint8_t SuperbitRF::tx_buffer[128]

The transmit buffer.

Definition at line 110 of file superbitrf.h.

Referenced by superbitrf_event().

uint8_t SuperbitRF::tx_extract_idx

The transmit buffer extract index.

Definition at line 112 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_init().

uint8_t SuperbitRF::tx_insert_idx

The transmit buffer insert index.

Definition at line 111 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_init().

uint32_t SuperbitRF::tx_packet_count

How many packets are send(also the invalid)

Definition at line 90 of file superbitrf.h.

Referenced by superbitrf_event(), and superbitrf_init().

uint32_t SuperbitRF::uplink_count

How many valid uplink packages are received.

Definition at line 91 of file superbitrf.h.

Referenced by superbitrf_receive_packet_cb().


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