📄 smaddr.h
字号:
#define MANUFACTURERACCESS 0x00 //0x00 read/write n/a
#define REMAININGCAPACITYALARM 0x01 //0x01 read/write mAh, 10mWh
#define REMAININGTIMEALARM 0x02 //0x02 read/write minutes
#define BATTERYMODE 0x03 //0x03 read/write n/a
#define ATRATE 0x04 //0x04 read/write mA, 10mW
#define ATRATETIMETOFULL 0x05 //0x05 read minutes
#define ATRATETIMETOEMPTY 0x06 //0x06 read minutes
#define ATRATEOK 0x07 //0x07 read Boolean
#define TEMPERATURE 0x08 //0x08 read 0.1°K
#define VOLTAGE 0x09 //0x09 read mV
#define CURRENT 0x0a //0x0a read mA
#define AVERAGECURRENT 0x0b //0x0b read mA
#define MAXERROR 0x0c //0x0c read percent
#define RELATIVESTATEOFCHARGE 0x0d //0x0d read percent
#define ABSOLUTESTATEOFCHARGE 0x0e //0x0e read percent
#define REMAININGCAPACITY 0x0f //0x0f read mAh, 10mWh
#define FULLCHARGECAPACITY 0x10 //0x10 read mAh, 10mWh
#define RUNTIMETOEMPTY 0x11 //0x11 read minutes
#define AVERAGETIMETOEMPTY 0x12 //0x12 read minutes
#define AVERAGETIMETOFULL 0x13 //0x13 read minutes
#define CHARGINGCURRENT 0x14 //0x14 read mA
#define CHARGINGVOLTAGE 0x15 //0x15 read mV
#define BATTERYSTATUS 0x16 //0x16 read n/a
#define CYCLECOUNT 0x17 //0x17 read cycles
#define DESIGNCAPACITY 0x18 //0x18 read mAh, 10mWh
#define DESIGNVOLTAGE 0x19 //0x19 read mV
#define SPECIFICATIONINFO 0x1a //0x1a read n/a
#define MANUFACTUREDATE 0x1b //0x1b read n/a
#define SERIALNUMBER 0x1c //0x1c read integer
//Reserved 0x1d–0x1f 0x1d - 0x1f - -
#define MANUFACTURERNAME 0x20 //0x20–0x25 read string
#define DEVICENAME 0x21 //0x28–0x2b read string
#define DEVICECHEMISTRY 0x22 //0x30–0x32 read string
#define MANUFACTURERDATA 0x23 //0x38–0x3b read string
#define PACKSTATUS 0x2f //(LSB) 0x2f (LSB) read/write n/a
#define PACKCONFIGURATION 0x2f //(MSB) 0x2f (MSB) read/write n/a
#define VCELL4 0x3c //0x3c read/write mV
#define VCELL3 0x3d //0x3d read/write mV
#define VCELL2 0x3e //0x3e read/write mV
#define VCELL1 0x3f //0x3f read/write mV
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -