Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
adc_jack_cond Struct Reference

#include <extcon-adc-jack.h>

Data Fields

u32 state
 
u32 min_adc
 
u32 max_adc
 

Detailed Description

struct adc_jack_cond - condition to use an extcon state - the corresponding extcon state (if 0, this struct denotes the last adc_jack_cond element among the array) - min adc value for this condition - max adc value for this condition

For example, if { .state = 0x3, .min_adc = 100, .max_adc = 200}, it means that if ADC value is between (inclusive) 100 and 200, than the cable 0 and 1 are attached (1<<0 | 1<<1 == 0x3)

Note that you don't need to describe condition for "no cable attached" because when no adc_jack_cond is met, state = 0 is automatically chosen.

Definition at line 35 of file extcon-adc-jack.h.

Field Documentation

u32 max_adc

Definition at line 38 of file extcon-adc-jack.h.

u32 min_adc

Definition at line 37 of file extcon-adc-jack.h.

Definition at line 36 of file extcon-adc-jack.h.


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