Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
DSM2 and DSMX datalink implementation for the cyrf6936 2.4GHz radio chip trough SPI. More...
Go to the source code of this file.
Data Structures | |
struct | SuperbitRF |
Enumerations | |
enum | dsm_protocol { DSM_DSM2_1 = 0x01 , DSM_DSM2_2 = 0x02 , DSM_DSM2P = 0x10 , DSM_DSMXP = 0x11 , DSM_DSMX_1 = 0xA2 , DSM_DSMX_2 = 0xB2 , DSM_DSM2_1 = 0x01 , DSM_DSM2_2 = 0x02 , DSM_DSM2P = 0x10 , DSM_DSMXP = 0x11 , DSM_DSMX_1 = 0xA2 , DSM_DSMX_2 = 0xB2 } |
Functions | |
void | superbitrf_set_mfg_id (uint32_t id) |
void | superbitrf_set_protocol (uint8_t protocol) |
Variables | |
struct SuperbitRF | superbitrf |
DSM2 and DSMX datalink implementation for the cyrf6936 2.4GHz radio chip trough SPI.
Dummy for sim so you don't have to remove the superbitrf.xml settings file.
Definition in file superbitrf.h.
struct SuperbitRF |
Definition at line 43 of file superbitrf.h.
Data Fields | ||
---|---|---|
uint8_t | bind_mfg_id[4] | The MFG id where the receiver is bound to. |
uint32_t | bind_mfg_id32 | The MFG id where the receiver is bound to in uint32. |
uint8_t | channel | The current channel number. |
uint8_t | channel_idx | The current channel index. |
uint8_t | channels[23] | The channels used for DSM2/DSMX. |
uint16_t | crc_seed | The CRC seed that is calculated with the bind MFG id. |
struct Cyrf6936 | cyrf6936 | The cyrf chip used. |
uint8_t | data_col | The data code column number calculated with the bind MFG id. |
struct link_device | device | Generic device interface. |
uint32_t | irq_count | How many interrupts are made. |
uint8_t | num_channels | The number of channels the transmitter has. |
bool | packet_loss | When we have packet loss last packet. |
uint8_t | packet_loss_bit | The packet loss indicating bit. |
enum dsm_protocol | protocol | The protocol the transmitter uses. |
uint32_t | rc_count | How many valid RC packages are received. |
bool | rc_frame_available | When a RC frame is available. |
int16_t | rc_values[14] | The rc values from the packet. |
enum dsm_resolution | resolution | The resolution that the transmitter has. |
uint32_t | resync_count | The amount of resyncs needed during transfer. |
uint32_t | rx_packet_count | How many packets are received(also the invalid) |
struct pprz_transport | rx_transport | The receive transport. |
uint8_t | sop_col | The sop code column number calculated with the bind MFG id. |
uint8_t | state | The states each status can be in. |
enum SuperbitRFStatus | status | The status of the superbitRF. |
uint8_t | timeouts | The amount of timeouts. |
uint32_t | timer | The timer in microseconds. |
bool | timer_overflow | When the timer overflows. |
uint32_t | timing1 | Time between last receive in microseconds. |
uint32_t | timing2 | Time between second last receive in microseconds. |
uint32_t | transfer_timeouts | The amount of timeouts during transfer. |
uint8_t | tx_buffer[SUPERBITRF_TX_BUFFER_SIZE] | The transmit buffer. |
uint8_t | tx_extract_idx | The transmit buffer extract index. |
uint8_t | tx_insert_idx | The transmit buffer insert index. |
uint32_t | tx_packet_count | How many packets are send(also the invalid) |
uint32_t | uplink_count | How many valid uplink packages are received. |
enum dsm_protocol |
Definition at line 33 of file superbitrf.h.
void superbitrf_set_mfg_id | ( | uint32_t | id | ) |
Definition at line 34 of file superbitrf.c.
void superbitrf_set_protocol | ( | uint8_t | protocol | ) |
Definition at line 39 of file superbitrf.c.
|
extern |
Definition at line 1 of file superbitrf.c.