libusb.h | libusb.h | |||
---|---|---|---|---|
skipping to change at line 133 | skipping to change at line 133 | |||
* // Use one of the newer features from the libusbx API | * // Use one of the newer features from the libusbx API | |||
* #endif | * #endif | |||
* \endcode | * \endcode | |||
* | * | |||
* Another feature of LIBUSBX_API_VERSION is that it can be used to detect | * Another feature of LIBUSBX_API_VERSION is that it can be used to detect | |||
* whether you are compiling against the libusb or the libusbx library. | * whether you are compiling against the libusb or the libusbx library. | |||
* | * | |||
* Internally, LIBUSBX_API_VERSION is defined as follows: | * Internally, LIBUSBX_API_VERSION is defined as follows: | |||
* (libusbx major << 24) | (libusbx minor << 16) | (16 bit incremental) | * (libusbx major << 24) | (libusbx minor << 16) | (16 bit incremental) | |||
*/ | */ | |||
#define LIBUSBX_API_VERSION 0x01000100 | #define LIBUSBX_API_VERSION 0x010000FF | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/** \def libusb_cpu_to_le16 | /** \def libusb_cpu_to_le16 | |||
* \ingroup misc | * \ingroup misc | |||
* Convert a 16-bit value from host-endian to little-endian format. On | * Convert a 16-bit value from host-endian to little-endian format. On | |||
* little endian systems, this function does nothing. On big endian systems , | * little endian systems, this function does nothing. On big endian systems , | |||
* the bytes are swapped. | * the bytes are swapped. | |||
skipping to change at line 630 | skipping to change at line 630 | |||
/** Index of string descriptor describing this configuration */ | /** Index of string descriptor describing this configuration */ | |||
uint8_t iConfiguration; | uint8_t iConfiguration; | |||
/** Configuration characteristics */ | /** Configuration characteristics */ | |||
uint8_t bmAttributes; | uint8_t bmAttributes; | |||
/** Maximum power consumption of the USB device from this bus in thi s | /** Maximum power consumption of the USB device from this bus in thi s | |||
* configuration when the device is fully opreation. Expressed in un its | * configuration when the device is fully opreation. Expressed in un its | |||
* of 2 mA. */ | * of 2 mA. */ | |||
uint8_t bMaxPower; | uint8_t MaxPower; | |||
/** Array of interfaces supported by this configuration. The length of | /** Array of interfaces supported by this configuration. The length of | |||
* this array is determined by the bNumInterfaces field. */ | * this array is determined by the bNumInterfaces field. */ | |||
const struct libusb_interface *interface; | const struct libusb_interface *interface; | |||
/** Extra descriptors. If libusbx encounters unknown configuration | /** Extra descriptors. If libusbx encounters unknown configuration | |||
* descriptors, it will store them here, should you wish to parse th em. */ | * descriptors, it will store them here, should you wish to parse th em. */ | |||
const unsigned char *extra; | const unsigned char *extra; | |||
/** Length of the extra descriptors, in bytes. */ | /** Length of the extra descriptors, in bytes. */ | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||