NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
feature.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  feature_config
 

Enumerations

enum  features_e {
  FEATURE_RX_PPM = 1 << 0, FEATURE_VBAT = 1 << 1, FEATURE_INFLIGHT_ACC_CAL = 1 << 2, FEATURE_RX_SERIAL = 1 << 3,
  FEATURE_MOTOR_STOP = 1 << 4, FEATURE_SERVO_TILT = 1 << 5, FEATURE_SOFTSERIAL = 1 << 6, FEATURE_GPS = 1 << 7,
  FEATURE_FAILSAFE = 1 << 8, FEATURE_SONAR = 1 << 9, FEATURE_TELEMETRY = 1 << 10, FEATURE_CURRENT_METER = 1 << 11,
  FEATURE_3D = 1 << 12, FEATURE_RX_PARALLEL_PWM = 1 << 13, FEATURE_RX_MSP = 1 << 14, FEATURE_RSSI_ADC = 1 << 15,
  FEATURE_LED_STRIP = 1 << 16, FEATURE_DISPLAY = 1 << 17, FEATURE_ONESHOT125 = 1 << 18, FEATURE_BLACKBOX = 1 << 19,
  FEATURE_CHANNEL_FORWARDING = 1 << 20, FEATURE_TRANSPONDER = 1 << 21
}
 

Functions

struct feature_config __attribute__ ((packed))
 
bool feature (const struct config *self, uint32_t mask)
 
void featureSet (struct config *self, uint32_t mask)
 
void featureClear (struct config *self, uint32_t mask)
 
void featureClearAll (struct config *self)
 
uint32_t featureMask (const struct config *self)
 

Variables

typedef __attribute__
 
uint32_t enabledFeatures
 

Enumeration Type Documentation

enum features_e
Enumerator
FEATURE_RX_PPM 
FEATURE_VBAT 
FEATURE_INFLIGHT_ACC_CAL 
FEATURE_RX_SERIAL 
FEATURE_MOTOR_STOP 
FEATURE_SERVO_TILT 
FEATURE_SOFTSERIAL 
FEATURE_GPS 
FEATURE_FAILSAFE 
FEATURE_SONAR 
FEATURE_TELEMETRY 
FEATURE_CURRENT_METER 
FEATURE_3D 
FEATURE_RX_PARALLEL_PWM 
FEATURE_RX_MSP 
FEATURE_RSSI_ADC 
FEATURE_LED_STRIP 
FEATURE_DISPLAY 
FEATURE_ONESHOT125 
FEATURE_BLACKBOX 
FEATURE_CHANNEL_FORWARDING 
FEATURE_TRANSPONDER 

Function Documentation

struct feature_config __attribute__ ( (packed)  )
bool feature ( const struct config self,
uint32_t  mask 
)
void featureClear ( struct config self,
uint32_t  mask 
)
void featureClearAll ( struct config self)
uint32_t featureMask ( const struct config self)
void featureSet ( struct config self,
uint32_t  mask 
)

Variable Documentation

typedef __attribute__
uint32_t enabledFeatures