Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
led_control.h File Reference

Go to the source code of this file.

Data Structures

struct  LedStateInfo_t
 
struct  _LED_INFO_STRUCT
 

Macros

#define NUM_OF_LEDS   4
 
#define DSD_START_OFFSET   0x0200
 
#define EEPROM_VERSION_OFFSET   0x020E
 
#define EEPROM_HW_PARAM_POINTER_ADDRESS   0x0218
 
#define EEPROM_HW_PARAM_POINTER_ADDRRES_MAP5   0x0220
 
#define GPIO_SECTION_START_OFFSET   0x03
 
#define COMPATIBILITY_SECTION_LENGTH   42
 
#define COMPATIBILITY_SECTION_LENGTH_MAP5   84
 
#define EEPROM_MAP5_MAJORVERSION   5
 
#define EEPROM_MAP5_MINORVERSION   0
 
#define MAX_NUM_OF_BLINKS   10
 
#define NUM_OF_GPIO_PINS   16
 
#define DISABLE_GPIO_NUM   0xFF
 
#define EVENT_SIGNALED   1
 
#define MAX_FILE_NAME_BUFFER_SIZE   100
 
#define TURN_ON_LED(GPIO, index)
 
#define TURN_OFF_LED(GPIO, index)
 
#define B_ULONG32   unsigned long
 
#define BCM_LED_THREAD_DISABLED   0 /* LED Thread is not running. */
 
#define BCM_LED_THREAD_RUNNING_ACTIVELY   1 /* LED thread is running. */
 
#define BCM_LED_THREAD_RUNNING_INACTIVELY   2 /*LED thread has been put on hold*/
 

Typedefs

typedef enum _LEDColors LEDColors
 
typedef enum LedEvents LedEventInfo_t
 
typedef struct LedStateInfo_t LEDStateInfo
 
typedef struct LedStateInfo_tpLEDStateInfo
 
typedef struct _LED_INFO_STRUCT LED_INFO_STRUCT
 
typedef struct _LED_INFO_STRUCTPLED_INFO_STRUCT
 

Enumerations

enum  _LEDColors { RED_LED = 1, BLUE_LED = 2, YELLOW_LED = 3, GREEN_LED = 4 }
 
enum  LedEvents {
  SHUTDOWN_EXIT = 0x00, DRIVER_INIT = 0x1, FW_DOWNLOAD = 0x2, FW_DOWNLOAD_DONE = 0x4,
  NO_NETWORK_ENTRY = 0x8, NORMAL_OPERATION = 0x10, LOWPOWER_MODE_ENTER = 0x20, IDLEMODE_CONTINUE = 0x40,
  IDLEMODE_EXIT = 0x80, LED_THREAD_INACTIVE = 0x100, LED_THREAD_ACTIVE = 0x200, DRIVER_HALT = 0xff
}
 

Macro Definition Documentation

#define B_ULONG32   unsigned long

Definition at line 43 of file led_control.h.

#define BCM_LED_THREAD_DISABLED   0 /* LED Thread is not running. */

Definition at line 95 of file led_control.h.

#define BCM_LED_THREAD_RUNNING_ACTIVELY   1 /* LED thread is running. */

Definition at line 96 of file led_control.h.

#define BCM_LED_THREAD_RUNNING_INACTIVELY   2 /*LED thread has been put on hold*/

Definition at line 97 of file led_control.h.

#define COMPATIBILITY_SECTION_LENGTH   42

Definition at line 13 of file led_control.h.

#define COMPATIBILITY_SECTION_LENGTH_MAP5   84

Definition at line 14 of file led_control.h.

#define DISABLE_GPIO_NUM   0xFF

Definition at line 24 of file led_control.h.

#define DSD_START_OFFSET   0x0200

Definition at line 7 of file led_control.h.

#define EEPROM_HW_PARAM_POINTER_ADDRESS   0x0218

Definition at line 9 of file led_control.h.

#define EEPROM_HW_PARAM_POINTER_ADDRRES_MAP5   0x0220

Definition at line 10 of file led_control.h.

#define EEPROM_MAP5_MAJORVERSION   5

Definition at line 17 of file led_control.h.

#define EEPROM_MAP5_MINORVERSION   0

Definition at line 18 of file led_control.h.

#define EEPROM_VERSION_OFFSET   0x020E

Definition at line 8 of file led_control.h.

#define EVENT_SIGNALED   1

Definition at line 25 of file led_control.h.

#define GPIO_SECTION_START_OFFSET   0x03

Definition at line 11 of file led_control.h.

#define MAX_FILE_NAME_BUFFER_SIZE   100

Definition at line 27 of file led_control.h.

#define MAX_NUM_OF_BLINKS   10

Definition at line 21 of file led_control.h.

#define NUM_OF_GPIO_PINS   16

Definition at line 22 of file led_control.h.

#define NUM_OF_LEDS   4

Definition at line 5 of file led_control.h.

#define TURN_OFF_LED (   GPIO,
  index 
)
Value:
do { \
UINT gpio_val = GPIO; \
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)); \
} while (0);

Definition at line 36 of file led_control.h.

#define TURN_ON_LED (   GPIO,
  index 
)
Value:
do { \
UINT gpio_val = GPIO; \
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)); \
} while (0);

Definition at line 29 of file led_control.h.

Typedef Documentation

typedef enum _LEDColors LEDColors
typedef enum LedEvents LedEventInfo_t

Enumeration Type Documentation

enum _LEDColors
Enumerator:
RED_LED 
BLUE_LED 
YELLOW_LED 
GREEN_LED 

Definition at line 48 of file led_control.h.

enum LedEvents
Enumerator:
SHUTDOWN_EXIT 
DRIVER_INIT 
FW_DOWNLOAD 
FW_DOWNLOAD_DONE 
NO_NETWORK_ENTRY 
NORMAL_OPERATION 
LOWPOWER_MODE_ENTER 
IDLEMODE_CONTINUE 
IDLEMODE_EXIT 
LED_THREAD_INACTIVE 
LED_THREAD_ACTIVE 
DRIVER_HALT 

Definition at line 55 of file led_control.h.