|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/slab.h>#include <linux/leds.h>#include <linux/err.h>#include <linux/i2c.h>#include <linux/gpio.h>#include <linux/workqueue.h>#include <linux/leds-tca6507.h>Go to the source code of this file.
Data Structures | |
| struct | tca6507_chip |
| struct | tca6507_chip::bank |
| struct | tca6507_chip::tca6507_led |
Macros | |
| #define | TCA6507_LS_LED_OFF 0x0 /* Output HI-Z (off) */ |
| #define | TCA6507_LS_LED_OFF1 0x1 /* Output HI-Z (off) - not used */ |
| #define | TCA6507_LS_LED_PWM0 0x2 /* Output LOW with Bank0 rate */ |
| #define | TCA6507_LS_LED_PWM1 0x3 /* Output LOW with Bank1 rate */ |
| #define | TCA6507_LS_LED_ON 0x4 /* Output LOW (on) */ |
| #define | TCA6507_LS_LED_MIR 0x5 /* Output LOW with Master Intensity */ |
| #define | TCA6507_LS_BLINK0 0x6 /* Blink at Bank0 rate */ |
| #define | TCA6507_LS_BLINK1 0x7 /* Blink at Bank1 rate */ |
| #define | TCA6507_REG_CNT 11 |
| #define | TCA6507_FADE_ON 0x03 |
| #define | TCA6507_FULL_ON 0x04 |
| #define | TCA6507_FADE_OFF 0x05 |
| #define | TCA6507_FIRST_OFF 0x06 |
| #define | TCA6507_SECOND_OFF 0x07 |
| #define | TCA6507_MAX_INTENSITY 0x08 |
| #define | TCA6507_MASTER_INTENSITY 0x09 |
| #define | TCA6507_INITIALIZE 0x0A |
| #define | INIT_CODE 0x8 |
| #define | TIMECODES 16 |
| #define | NUM_LEDS 7 |
Enumerations | |
| enum | { BANK0, BANK1, MASTER } |
Functions | |
| MODULE_DEVICE_TABLE (i2c, tca6507_id) | |
| module_i2c_driver (tca6507_driver) | |
| MODULE_AUTHOR ("NeilBrown <[email protected]>") | |
| MODULE_DESCRIPTION ("TCA6507 LED/GPO driver") | |
| MODULE_LICENSE ("GPL v2") | |
| #define INIT_CODE 0x8 |
Definition at line 130 of file leds-tca6507.c.
| #define NUM_LEDS 7 |
Definition at line 152 of file leds-tca6507.c.
| #define TCA6507_FADE_OFF 0x05 |
Definition at line 123 of file leds-tca6507.c.
| #define TCA6507_FADE_ON 0x03 |
Definition at line 121 of file leds-tca6507.c.
| #define TCA6507_FIRST_OFF 0x06 |
Definition at line 124 of file leds-tca6507.c.
| #define TCA6507_FULL_ON 0x04 |
Definition at line 122 of file leds-tca6507.c.
| #define TCA6507_INITIALIZE 0x0A |
Definition at line 128 of file leds-tca6507.c.
| #define TCA6507_LS_BLINK0 0x6 /* Blink at Bank0 rate */ |
Definition at line 96 of file leds-tca6507.c.
| #define TCA6507_LS_BLINK1 0x7 /* Blink at Bank1 rate */ |
Definition at line 97 of file leds-tca6507.c.
| #define TCA6507_LS_LED_MIR 0x5 /* Output LOW with Master Intensity */ |
Definition at line 95 of file leds-tca6507.c.
| #define TCA6507_LS_LED_OFF 0x0 /* Output HI-Z (off) */ |
Definition at line 90 of file leds-tca6507.c.
| #define TCA6507_LS_LED_OFF1 0x1 /* Output HI-Z (off) - not used */ |
Definition at line 91 of file leds-tca6507.c.
| #define TCA6507_LS_LED_ON 0x4 /* Output LOW (on) */ |
Definition at line 94 of file leds-tca6507.c.
| #define TCA6507_LS_LED_PWM0 0x2 /* Output LOW with Bank0 rate */ |
Definition at line 92 of file leds-tca6507.c.
| #define TCA6507_LS_LED_PWM1 0x3 /* Output LOW with Bank1 rate */ |
Definition at line 93 of file leds-tca6507.c.
| #define TCA6507_MASTER_INTENSITY 0x09 |
Definition at line 127 of file leds-tca6507.c.
| #define TCA6507_MAX_INTENSITY 0x08 |
Definition at line 126 of file leds-tca6507.c.
| #define TCA6507_REG_CNT 11 |
Definition at line 115 of file leds-tca6507.c.
| #define TCA6507_SECOND_OFF 0x07 |
Definition at line 125 of file leds-tca6507.c.
| #define TIMECODES 16 |
Definition at line 132 of file leds-tca6507.c.
| anonymous enum |
Definition at line 99 of file leds-tca6507.c.
| MODULE_AUTHOR | ( | "NeilBrown <[email protected]>" | ) |
| MODULE_DEVICE_TABLE | ( | i2c | , |
| tca6507_id | |||
| ) |
| module_i2c_driver | ( | tca6507_driver | ) |
| MODULE_LICENSE | ( | "GPL v2" | ) |
1.8.2