#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
#include <linux/platform_data/ina2xx.h>
Go to the source code of this file.
#define INA219_CONFIG_DEFAULT 0x399F /* PGA=8 */ |
#define INA219_REGISTERS 6 |
#define INA226_ALERT_LIMIT 0x07 |
#define INA226_CONFIG_DEFAULT 0x4527 /* averages=16 */ |
#define INA226_DIE_ID 0xFF |
#define INA226_MASK_ENABLE 0x06 |
#define INA226_REGISTERS 8 |
#define INA2XX_BUS_VOLTAGE 0x02 /* readonly */ |
#define INA2XX_CALIBRATION 0x05 |
#define INA2XX_CONFIG 0x00 |
#define INA2XX_CONVERSION_RATE 15 |
#define INA2XX_CURRENT 0x04 /* readonly */ |
#define INA2XX_MAX_REGISTERS 8 |
#define INA2XX_POWER 0x03 /* readonly */ |
#define INA2XX_SHUNT_VOLTAGE 0x01 /* readonly */ |
- Enumerator:
-
Definition at line 67 of file ina2xx.c.
MODULE_DESCRIPTION |
( |
"ina2xx driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
ina2xx_id |
|
|
) |
| |
module_exit |
( |
ina2xx_exit |
| ) |
|
module_init |
( |
ina2xx_init |
| ) |
|