#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <media/as3645a.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
Go to the source code of this file.
#define as3645a_resume NULL |
#define as3645a_suspend NULL |
#define AS_BOOST_CURRENT_DISABLE (0 << 0) |
#define AS_BOOST_CURRENT_ENABLE (1 << 0) |
#define AS_BOOST_REG 0x0d |
#define AS_CONTROL_COIL_PEAK_SHIFT 6 |
#define AS_CONTROL_EXT_TORCH_ON (1 << 4) |
#define AS_CONTROL_MODE_SETTING_SHIFT 0 |
#define AS_CONTROL_OUT_ON (1 << 3) |
#define AS_CONTROL_REG 0x04 |
#define AS_CONTROL_STROBE_ON (1 << 2) |
#define AS_CONTROL_STROBE_TYPE_EDGE (0 << 5) |
#define AS_CONTROL_STROBE_TYPE_LEVEL (1 << 5) |
#define AS_CURRENT_ASSIST_LIGHT_SHIFT 0 |
#define AS_CURRENT_FLASH_CURRENT_SHIFT 4 |
#define AS_CURRENT_LED_DET_ON (1 << 3) |
#define AS_CURRENT_SET_REG 0x03 |
#define AS_DESIGN_INFO_FACTORY |
( |
|
x | ) |
(((x) >> 4)) |
#define AS_DESIGN_INFO_MODEL |
( |
|
x | ) |
((x) & 0x0f) |
#define AS_DESIGN_INFO_REG 0x00 |
#define AS_FAULT_INFO_INDICATOR_LED (1 << 2) |
#define AS_FAULT_INFO_INDUCTOR_PEAK_LIMIT (1 << 1) |
#define AS_FAULT_INFO_LED_AMOUNT (1 << 3) |
#define AS_FAULT_INFO_OVER_TEMPERATURE (1 << 5) |
#define AS_FAULT_INFO_OVER_VOLTAGE (1 << 7) |
#define AS_FAULT_INFO_REG 0x05 |
#define AS_FAULT_INFO_SHORT_CIRCUIT (1 << 6) |
#define AS_FAULT_INFO_TIMEOUT (1 << 4) |
#define AS_INDICATOR_AND_TIMER_INDICATOR_SHIFT 6 |
#define AS_INDICATOR_AND_TIMER_REG 0x02 |
#define AS_INDICATOR_AND_TIMER_TIMEOUT_SHIFT 0 |
#define AS_INDICATOR_AND_TIMER_VREF_SHIFT 4 |
#define AS_PASSWORD_REG 0x0f |
#define AS_PASSWORD_UNLOCK_VALUE 0x55 |
#define AS_TIMER_CODE_TO_MS |
( |
|
c | ) |
(50 * (c) + 100) |
#define AS_TIMER_MS_TO_CODE |
( |
|
t | ) |
(((t) - 100) / 50) |
#define AS_VERSION_CONTROL_REG 0x01 |
#define AS_VERSION_CONTROL_RFU |
( |
|
x | ) |
(((x) >> 4)) |
#define AS_VERSION_CONTROL_VERSION |
( |
|
x | ) |
((x) & 0x0f) |
- Enumerator:
AS_MODE_EXT_TORCH |
|
AS_MODE_INDICATOR |
|
AS_MODE_ASSIST |
|
AS_MODE_FLASH |
|
Definition at line 96 of file as3645a.c.
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
as3645a_id_table |
|
|
) |
| |
module_i2c_driver |
( |
as3645a_i2c_driver |
| ) |
|