Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
rtl871x_led.h File Reference
#include "osdep_service.h"
#include "drv_types.h"

Go to the source code of this file.

Data Structures

struct  LED_871x
 
struct  led_priv
 

Macros

#define IS_LED_WPS_BLINKING(_LED_871x)
 
#define IS_LED_BLINKING(_LED_871x)
 

Enumerations

enum  LED_CTL_MODE {
  LED_CTL_POWER_ON = 1, LED_CTL_LINK = 2, LED_CTL_NO_LINK = 3, LED_CTL_TX = 4,
  LED_CTL_RX = 5, LED_CTL_SITE_SURVEY = 6, LED_CTL_POWER_OFF = 7, LED_CTL_START_TO_LINK = 8,
  LED_CTL_START_WPS = 9, LED_CTL_STOP_WPS = 10, LED_CTL_START_WPS_BOTTON = 11, LED_CTL_STOP_WPS_FAIL = 12,
  LED_CTL_STOP_WPS_FAIL_OVERLAP = 13
}
 
enum  LED_PIN_871x { LED_PIN_GPIO0, LED_PIN_LED0, LED_PIN_LED1 }
 
enum  LED_STRATEGY_871x {
  SW_LED_MODE0, SW_LED_MODE1, SW_LED_MODE2, SW_LED_MODE3,
  SW_LED_MODE4, SW_LED_MODE5, SW_LED_MODE6, HW_LED
}
 

Functions

void r8712_InitSwLeds (struct _adapter *padapter)
 
void r8712_DeInitSwLeds (struct _adapter *padapter)
 
void LedControl871x (struct _adapter *padapter, enum LED_CTL_MODE LedAction)
 

Macro Definition Documentation

#define IS_LED_BLINKING (   _LED_871x)
Value:
(((struct LED_871x *)_LED_871x)->bLedWPSBlinkInProgress \
|| ((struct LED_871x *)_LED_871x)->bLedScanBlinkInProgress)

Definition at line 57 of file rtl871x_led.h.

#define IS_LED_WPS_BLINKING (   _LED_871x)
Value:
(((struct LED_871x *)_LED_871x)->CurrLedState == LED_BLINK_WPS \
|| ((struct LED_871x *)_LED_871x)->CurrLedState == LED_BLINK_WPS_STOP \
|| ((struct LED_871x *)_LED_871x)->bLedWPSBlinkInProgress)

Definition at line 52 of file rtl871x_led.h.

Enumeration Type Documentation

Enumerator:
LED_CTL_POWER_ON 
LED_CTL_LINK 
LED_CTL_NO_LINK 
LED_CTL_TX 
LED_CTL_RX 
LED_CTL_SITE_SURVEY 
LED_CTL_POWER_OFF 
LED_CTL_START_TO_LINK 
LED_CTL_START_WPS 
LED_CTL_STOP_WPS 
LED_CTL_START_WPS_BOTTON 
LED_CTL_STOP_WPS_FAIL 
LED_CTL_STOP_WPS_FAIL_OVERLAP 

Definition at line 36 of file rtl871x_led.h.

Enumerator:
LED_PIN_GPIO0 
LED_PIN_LED0 
LED_PIN_LED1 

Definition at line 61 of file rtl871x_led.h.

Enumerator:
SW_LED_MODE0 
SW_LED_MODE1 
SW_LED_MODE2 
SW_LED_MODE3 
SW_LED_MODE4 
SW_LED_MODE5 
SW_LED_MODE6 
HW_LED 

Definition at line 71 of file rtl871x_led.h.

Function Documentation

void LedControl871x ( struct _adapter padapter,
enum LED_CTL_MODE  LedAction 
)

Definition at line 1785 of file rtl8712_led.c.

void r8712_DeInitSwLeds ( struct _adapter padapter)

Definition at line 193 of file rtl8712_led.c.

void r8712_InitSwLeds ( struct _adapter padapter)

Definition at line 181 of file rtl8712_led.c.