Lightweight USB stack  1.0
HID Usage Tables for Power Devices.

Contains USB HID Usage tables definitions for HID Power Devices. More...

Modules

 Power Device Page
 
 Battery Device Page
 

Macros

#define BATTERY_MGF_DATE(y, m, d)   (((((y) - 1980) & 0x7F) << 9) + (((m) & 0x0F) << 5) + ((d) & 0x1F))
 

Measures and Physical Units ant it's exponents in Reports according to this table.

Name Physical Unit HID unit HID unit code HID unit exponent HID size
AC voltage Volt Volt 0x00F0D121 7 8
AC current centiAmp Amp 0x00100001 -2 16
Frequency Hertz Hertz 0xF001 0 8
DC voltage centiVolt Volt 0x00F0D121 5 16
Time second s 0x1001 0 16
DC current centiAmp Amp 0x00100001 -2 16
Power VA or W VA or W 0xD121 7 16
Temperature K degree K degree 0x00010001 0 16
Battery capacity AmpSec AmpSec 0x00101001 0 24
#define HID_POWER_UNIT_AC_VOLTAGE   0x67, 0x21, 0xD1, 0xF0, 0x00, 0x55, 0x07
 
#define HID_POWER_UNIT_AC_CURRENT   0x67, 0x01, 0x00, 0x10, 0x00, 0x55, 0xFE
 
#define HID_POWER_UNIT_FREQUENCY   0x66, 0x01, 0xF0, 0x55, 0x00
 
#define HID_POWER_UNIT_DC_VOLTAGE   0x67, 0x21, 0xD1, 0xF0, 0x00, 0x55, 0x07
 
#define HID_POWER_UNIT_TIME   0x66, 0x01, 0x10, 0x55, 0x00
 
#define HID_POWER_UNIT_DC_CURRENT   0x67, 0x01, 0x00, 0x10, 0x00, 0x55, 0xFE
 
#define HID_POWER_UNIT_POWER   0x66, 0x21, 0xD1, 0x55, 0x07
 
#define HID_POWER_UNIT_TEMPERATURE   0x67, 0x01, 0x00, 0x01, 0x00, 0x55, 0x00
 
#define HID_POWER_UNIT_BATTERY_CAPACITY   0x67, 0x01, 0x10, 0x10, 0x00, 0x55, 0x00
 

Detailed Description

Contains USB HID Usage tables definitions for HID Power Devices.

This module based on

Macro Definition Documentation

◆ HID_POWER_UNIT_AC_VOLTAGE

#define HID_POWER_UNIT_AC_VOLTAGE   0x67, 0x21, 0xD1, 0xF0, 0x00, 0x55, 0x07

AC voltage unit code. Volt.

Definition at line 44 of file hid_usage_power.h.

◆ HID_POWER_UNIT_AC_CURRENT

#define HID_POWER_UNIT_AC_CURRENT   0x67, 0x01, 0x00, 0x10, 0x00, 0x55, 0xFE

AC current unit code. centiAmpere.

Definition at line 46 of file hid_usage_power.h.

◆ HID_POWER_UNIT_FREQUENCY

#define HID_POWER_UNIT_FREQUENCY   0x66, 0x01, 0xF0, 0x55, 0x00

Frequency unit code. Hertz.

Definition at line 48 of file hid_usage_power.h.

◆ HID_POWER_UNIT_DC_VOLTAGE

#define HID_POWER_UNIT_DC_VOLTAGE   0x67, 0x21, 0xD1, 0xF0, 0x00, 0x55, 0x07

DC voltage unit code. Volt.

Definition at line 50 of file hid_usage_power.h.

◆ HID_POWER_UNIT_TIME

#define HID_POWER_UNIT_TIME   0x66, 0x01, 0x10, 0x55, 0x00

Time unit code. Second.

Definition at line 52 of file hid_usage_power.h.

◆ HID_POWER_UNIT_DC_CURRENT

#define HID_POWER_UNIT_DC_CURRENT   0x67, 0x01, 0x00, 0x10, 0x00, 0x55, 0xFE

DC current unit code. centiAmpere.

Definition at line 54 of file hid_usage_power.h.

◆ HID_POWER_UNIT_POWER

#define HID_POWER_UNIT_POWER   0x66, 0x21, 0xD1, 0x55, 0x07

Power unic code. Watt.

Definition at line 56 of file hid_usage_power.h.

◆ HID_POWER_UNIT_TEMPERATURE

#define HID_POWER_UNIT_TEMPERATURE   0x67, 0x01, 0x00, 0x01, 0x00, 0x55, 0x00

Temperature unit code. K degree.

Definition at line 58 of file hid_usage_power.h.

◆ HID_POWER_UNIT_BATTERY_CAPACITY

#define HID_POWER_UNIT_BATTERY_CAPACITY   0x67, 0x01, 0x10, 0x10, 0x00, 0x55, 0x00

Battery capacity unit code. AmpSec.

Definition at line 60 of file hid_usage_power.h.

◆ BATTERY_MGF_DATE

#define BATTERY_MGF_DATE (   y,
  m,
 
)    (((((y) - 1980) & 0x7F) << 9) + (((m) & 0x0F) << 5) + ((d) & 0x1F))

Macro to encode battery manufacturing date.

Parameters
yYear [1980 - 2108]
mMonth [1 - 12]
dDay [1 - 31]

Definition at line 67 of file hid_usage_power.h.