dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
flyingpio_messages.h File Reference

Go to the source code of this file.

Data Structures

struct  flyingpicmd_actuator_fc
 
struct  flyingpicmd_cfg_fa
 
struct  flyingpiresp_io_10
 
struct  flyingpi_msg
 

Macros

#define FPPROTO_MAX_SERVOS   16
 
#define FPPROTO_MAX_BANKS   4
 
#define FPPROTO_MAX_RCCHANS   10
 
#define FPPROTO_MAX_ADCCHANS   4
 
#define FLYINGPICMD_ACTUATOR   0xfc
 
#define FLYINGPICMD_CFG   0xfa
 
#define FLYINGPIRESP_IO   0x10
 

Functions

struct flyingpicmd_actuator_fc __attribute__ ((__packed__))
 
static bool flyingpi_calc_crc (struct flyingpi_msg *msg, bool fill_in, int *total_len)
 

Variables

uint16_t values [FPPROTO_MAX_SERVOS]
 
uint16_t led_status
 
uint16_t flags_resv
 
struct {
   uint16_t   min
 
   uint16_t   max
 
actuators [FPPROTO_MAX_SERVOS]
 
uint16_t rate [FPPROTO_MAX_BANKS]
 
uint16_t receiver_protocol
 
uint16_t chan_data [FPPROTO_MAX_RCCHANS]
 
uint16_t adc_data [FPPROTO_MAX_ADCCHANS]
 
uint16_t valid_messages_recvd
 
uint8_t crc8
 
uint8_t id
 
union {
   struct flyingpicmd_actuator_fc   actuator_fc
 
   struct flyingpicmd_cfg_fa   cfg_fa
 
   struct flyingpiresp_io_10   io_10
 
body
 

Macro Definition Documentation

#define FLYINGPICMD_ACTUATOR   0xfc

Definition at line 8 of file flyingpio_messages.h.

#define FLYINGPICMD_CFG   0xfa

Definition at line 9 of file flyingpio_messages.h.

#define FLYINGPIRESP_IO   0x10

Definition at line 10 of file flyingpio_messages.h.

#define FPPROTO_MAX_ADCCHANS   4

Definition at line 4 of file flyingpio_messages.h.

#define FPPROTO_MAX_BANKS   4

Definition at line 2 of file flyingpio_messages.h.

#define FPPROTO_MAX_RCCHANS   10

Definition at line 3 of file flyingpio_messages.h.

#define FPPROTO_MAX_SERVOS   16

Definition at line 1 of file flyingpio_messages.h.

Function Documentation

struct flyingpicmd_actuator_fc __attribute__ ( (__packed__)  )

Definition at line 185 of file morsel.c.

static bool flyingpi_calc_crc ( struct flyingpi_msg msg,
bool  fill_in,
int *  total_len 
)
inlinestatic

Definition at line 61 of file flyingpio_messages.h.

Variable Documentation

struct flyingpicmd_actuator_fc actuator_fc

Definition at line 121 of file flyingpio_messages.h.

struct { ... } actuators[FPPROTO_MAX_SERVOS]
uint16_t adc_data[FPPROTO_MAX_ADCCHANS]

Definition at line 118 of file flyingpio_messages.h.

union { ... } body
struct flyingpicmd_cfg_fa cfg_fa

Definition at line 122 of file flyingpio_messages.h.

uint16_t chan_data[FPPROTO_MAX_RCCHANS]

Definition at line 117 of file flyingpio_messages.h.

uint8_t crc8

Definition at line 117 of file flyingpio_messages.h.

uint16_t flags_resv

Definition at line 121 of file flyingpio_messages.h.

uint8_t id

Definition at line 118 of file flyingpio_messages.h.

struct flyingpiresp_io_10 io_10

Definition at line 123 of file flyingpio_messages.h.

uint16_t led_status

Definition at line 120 of file flyingpio_messages.h.

uint16_t max

Definition at line 124 of file flyingpio_messages.h.

uint16_t min

Definition at line 123 of file flyingpio_messages.h.

uint16_t rate[FPPROTO_MAX_BANKS]

Definition at line 128 of file flyingpio_messages.h.

uint16_t receiver_protocol

Definition at line 129 of file flyingpio_messages.h.

uint16_t valid_messages_recvd

Definition at line 120 of file flyingpio_messages.h.

uint16_t values[FPPROTO_MAX_SERVOS]

Definition at line 118 of file flyingpio_messages.h.