Microchip® Advanced Software Framework

hid_short_item_data_t Union Reference

HID report descriptor short item data.

#include <hid.h>

Data Fields

union {
   struct {
      unsigned   int: 28
 
      int   unit_exponent: 4
 
   } 
 
   int   logical_maximum
 
   int   logical_minimum
 
   int   physical_maximum
 
   int   physical_minimum
 
   unsigned int   report_count
 
   unsigned int   report_id
 
   unsigned int   report_size
 
   struct {
enum  {
  HID_UNIT_LUMINOUS_INTENSITY_NONE = 0x0,
  HID_UNIT_LUMINOUS_INTENSITY_CANDELA = 0x1
}
 
enum  {
  HID_UNIT_CURRENT_NONE = 0x0,
  HID_UNIT_CURRENT_AMPERE = 0x1
}
 
enum  {
  HID_UNIT_TEMPERATURE_NONE = 0x0,
  HID_UNIT_TEMPERATURE_KELVIN = 0x1,
  HID_UNIT_TEMPERATURE_FAHRENHEIT = 0x3
}
 
enum  {
  HID_UNIT_TIME_NONE = 0x0,
  HID_UNIT_TIME_SECONDS = 0x1
}
 
enum  {
  HID_UNIT_MASS_NONE = 0x0,
  HID_UNIT_MASS_GRAM = 0x1,
  HID_UNIT_MASS_SLUG = 0x3
}
 
enum  {
  HID_UNIT_LENGTH_NONE = 0x0,
  HID_UNIT_LENGTH_CENTIMETER = 0x1,
  HID_UNIT_LENGTH_RADIANS = 0x2,
  HID_UNIT_LENGTH_INCH = 0x3,
  HID_UNIT_LENGTH_DEGREES = 0x4
}
 
enum  {
  HID_UNIT_SYSTEM_NONE = 0x0,
  HID_UNIT_SYSTEM_SI_LINEAR = 0x1,
  HID_UNIT_SYSTEM_SI_ROTATION = 0x2,
  HID_UNIT_SYSTEM_ENGLISH_LINEAR = 0x3,
  HID_UNIT_SYSTEM_ENGLISH_ROTATION = 0x4
}
 
      enum hid_short_item_data_t:: { ... } ::   current
 
      unsigned   int: 4
 
      enum hid_short_item_data_t:: { ... } ::   length
 
      enum hid_short_item_data_t:: { ... } ::   luminous_intensity
 
      enum hid_short_item_data_t:: { ... } ::   mass
 
      enum hid_short_item_data_t:: { ... } ::   system
 
      enum hid_short_item_data_t:: { ... } ::   temperature
 
      enum hid_short_item_data_t:: { ... } ::   time
 
   }   unit
 
   unsigned int   usage_page
 
global
 
union {
enum  {
  HID_DELIMITER_OPEN_SET = 0x01,
  HID_DELIMITER_CLOSE_SET = 0x00
}
 
   enum hid_short_item_data_t:: { ... }    delimiter
 
   unsigned int   designator_index
 
   unsigned int   designator_maximum
 
   unsigned int   designator_minimum
 
   unsigned int   string_index
 
   unsigned int   string_maximum
 
   unsigned int   string_minimum
 
   unsigned int   usage
 
   unsigned int   usage_maximum
 
   unsigned int   usage_minimum
 
local
 
union {
enum  {
  HID_COLLECTION_PHYSICAL = 0x00,
  HID_COLLECTION_APPLICATION = 0x01,
  HID_COLLECTION_LOGICAL = 0x02,
  HID_COLLECTION_REPORT = 0x03,
  HID_COLLECTION_NAMED_ARRAY = 0x04,
  HID_COLLECTION_USAGE_SWITCH = 0x05,
  HID_COLLECTION_USAGE_MODIFIER = 0x06
}
 
   enum hid_short_item_data_t:: { ... }    collection
 
   struct {
      unsigned int   buffered_bytes: 1
 
      unsigned int   constant: 1
 
      unsigned   int: 23
 
      unsigned int   no_preferred: 1
 
      unsigned int   non_linear: 1
 
      unsigned int   null_state: 1
 
      unsigned int   relative: 1
 
      unsigned int   variable: 1
 
      unsigned int   volatile_: 1
 
      unsigned int   wrap: 1
 
   }   feature
 
   struct {
      unsigned int   buffered_bytes: 1
 
      unsigned int   constant: 1
 
      unsigned   int: 23
 
      unsigned int   no_preferred: 1
 
      unsigned int   non_linear: 1
 
      unsigned int   null_state: 1
 
      unsigned int   relative: 1
 
      unsigned int   variable: 1
 
      unsigned int   wrap: 1
 
   }   input
 
   struct {
      unsigned int   buffered_bytes: 1
 
      unsigned int   constant: 1
 
      unsigned   int: 23
 
      unsigned int   no_preferred: 1
 
      unsigned int   non_linear: 1
 
      unsigned int   null_state: 1
 
      unsigned int   relative: 1
 
      unsigned int   variable: 1
 
      unsigned int   volatile_: 1
 
      unsigned int   wrap: 1
 
   }   output
 
main
 
unsigned long value
 

unsigned int hid_short_item_data_t::buffered_bytes
enum { ... } hid_short_item_data_t::collection
unsigned int hid_short_item_data_t::constant
enum { ... } hid_short_item_data_t::current
enum { ... } hid_short_item_data_t::delimiter
unsigned int hid_short_item_data_t::designator_index
unsigned int hid_short_item_data_t::designator_maximum
unsigned int hid_short_item_data_t::designator_minimum
struct { ... } hid_short_item_data_t::feature
union { ... } hid_short_item_data_t::global
struct { ... } hid_short_item_data_t::input
unsigned hid_short_item_data_t::int
enum { ... } hid_short_item_data_t::length
union { ... } hid_short_item_data_t::local
int hid_short_item_data_t::logical_maximum
int hid_short_item_data_t::logical_minimum
enum { ... } hid_short_item_data_t::luminous_intensity
union { ... } hid_short_item_data_t::main
enum { ... } hid_short_item_data_t::mass
unsigned int hid_short_item_data_t::no_preferred
unsigned int hid_short_item_data_t::non_linear
unsigned int hid_short_item_data_t::null_state
struct { ... } hid_short_item_data_t::output
int hid_short_item_data_t::physical_maximum
int hid_short_item_data_t::physical_minimum
unsigned int hid_short_item_data_t::relative
unsigned int hid_short_item_data_t::report_count
unsigned int hid_short_item_data_t::report_id
unsigned int hid_short_item_data_t::report_size
unsigned int hid_short_item_data_t::string_index
unsigned int hid_short_item_data_t::string_maximum
unsigned int hid_short_item_data_t::string_minimum
enum { ... } hid_short_item_data_t::system
enum { ... } hid_short_item_data_t::temperature
enum { ... } hid_short_item_data_t::time
struct { ... } hid_short_item_data_t::unit
int hid_short_item_data_t::unit_exponent
unsigned int hid_short_item_data_t::usage
unsigned int hid_short_item_data_t::usage_maximum
unsigned int hid_short_item_data_t::usage_minimum
unsigned int hid_short_item_data_t::usage_page
unsigned long hid_short_item_data_t::value

Referenced by host_hid_get_item().

unsigned int hid_short_item_data_t::variable
unsigned int hid_short_item_data_t::volatile_
unsigned int hid_short_item_data_t::wrap