/AliOS-Things-master/components/SDL2/src/joystick/hidapi/ |
A D | SDL_hidapi_xboxone.c | 87 Uint16 product_id; member 118 Uint16 product_id; member 154 IsBluetoothXboxOneController(Uint16 vendor_id, Uint16 product_id) in IsBluetoothXboxOneController() argument 158 if (product_id == USB_PRODUCT_XBOX_ONE_S_REV1_BLUETOOTH || in IsBluetoothXboxOneController() 168 ControllerHasPaddles(Uint16 vendor_id, Uint16 product_id) in ControllerHasPaddles() argument 171 if (product_id == USB_PRODUCT_XBOX_ONE_ELITE_SERIES_1 || in ControllerHasPaddles() 172 product_id == USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2) { in ControllerHasPaddles() 204 Uint16 product_id = ctx->product_id; in SendControllerInit() local 215 if (packet->product_id && (product_id != packet->product_id)) { in SendControllerInit() 273 if (!IsBluetoothXboxOneController(vendor_id, product_id)) { in HIDAPI_DriverXboxOne_IsSupportedDevice() [all …]
|
A D | SDL_hidapijoystick.c | 394 HIDAPI_IsDeviceSupported(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name) in HIDAPI_IsDeviceSupported() argument 423 if (RAWINPUT_IsDevicePresent(device->vendor_id, device->product_id, device->version)) { in HIDAPI_GetDeviceDriver() 468 HIDAPI_GetJoystickByInfo(const char *path, Uint16 vendor_id, Uint16 product_id) in HIDAPI_GetJoystickByInfo() argument 472 if (device->vendor_id == vendor_id && device->product_id == product_id && in HIDAPI_GetJoystickByInfo() 491 const char *name = device->driver->GetDeviceName(device->vendor_id, device->product_id); in HIDAPI_SetupDeviceDriver() 690 device->product_id = info->product_id; in HIDAPI_AddDevice() 701 const Uint16 product = device->product_id; in HIDAPI_AddDevice() 846 HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const char *name) in HIDAPI_IsDevicePresent() argument 863 supported = HIDAPI_IsDeviceSupported(vendor_id, product_id, version, name); in HIDAPI_IsDevicePresent() 884 if (device->vendor_id == vendor_id && device->product_id == product_id && device->driver) { in HIDAPI_IsDevicePresent() [all …]
|
A D | SDL_hidapijoystick_c.h | 61 Uint16 product_id; member 89 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… 90 const char *(*GetDeviceName)(Uint16 vendor_id, Uint16 product_id); 117 extern SDL_bool HIDAPI_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version, const c…
|
A D | SDL_hidapi_ps4.c | 131 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… in HIDAPI_DriverPS4_IsSupportedDevice() argument 137 HIDAPI_DriverPS4_GetDeviceName(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverPS4_GetDeviceName() argument 175 static SDL_bool HIDAPI_DriverPS4_CanRumble(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverPS4_CanRumble() argument 179 … (product_id == USB_PRODUCT_RAZER_PANTHERA || product_id == USB_PRODUCT_RAZER_PANTHERA_EVO)) { in HIDAPI_DriverPS4_CanRumble() 261 …ctx->is_dongle = (device->vendor_id == USB_VENDOR_SONY && device->product_id == USB_PRODUCT_SONY_D… in HIDAPI_DriverPS4_OpenJoystick() 276 …(device->product_id == USB_PRODUCT_SONY_DS4_SLIM || device->product_id == USB_PRODUCT_SONY_DS4_DON… in HIDAPI_DriverPS4_OpenJoystick() 280 if (HIDAPI_DriverPS4_CanRumble(device->vendor_id, device->product_id)) { in HIDAPI_DriverPS4_OpenJoystick()
|
A D | SDL_hidapi_xbox360w.c | 45 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… in HIDAPI_DriverXbox360W_IsSupportedDevice() argument 49 …if ((vendor_id == USB_VENDOR_MICROSOFT && (product_id == 0x0291 || product_id == 0x02a9 || product… in HIDAPI_DriverXbox360W_IsSupportedDevice() 57 HIDAPI_DriverXbox360W_GetDeviceName(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverXbox360W_GetDeviceName() argument
|
A D | SDL_hidapi_xbox360.c | 579 IsBluetoothXboxOneController(Uint16 vendor_id, Uint16 product_id) in IsBluetoothXboxOneController() argument 583 if (product_id == USB_PRODUCT_XBOX_ONE_S_REV1_BLUETOOTH || in IsBluetoothXboxOneController() 584 product_id == USB_PRODUCT_XBOX_ONE_S_REV2_BLUETOOTH || in IsBluetoothXboxOneController() 585 product_id == USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2_BLUETOOTH) { in IsBluetoothXboxOneController() 594 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… in HIDAPI_DriverXbox360_IsSupportedDevice() argument 602 if ((vendor_id == USB_VENDOR_MICROSOFT && (product_id == 0x0291 || product_id == 0x0719)) || in HIDAPI_DriverXbox360_IsSupportedDevice() 612 if (vendor_id == USB_VENDOR_MICROSOFT && product_id == 0x028e && version == 1) { in HIDAPI_DriverXbox360_IsSupportedDevice() 623 if (IsBluetoothXboxOneController(vendor_id, product_id)) { in HIDAPI_DriverXbox360_IsSupportedDevice() 634 HIDAPI_DriverXbox360_GetDeviceName(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverXbox360_GetDeviceName() argument 762 if (IsBluetoothXboxOneController(device->vendor_id, device->product_id)) { in HIDAPI_DriverXbox360_RumbleJoystick()
|
A D | SDL_hidapi_switch.c | 243 HasHomeLED(int vendor_id, int product_id) in HasHomeLED() argument 246 if (vendor_id == 0 && product_id == 0) { in HasHomeLED() 251 if (vendor_id == 0x0f0d && product_id == 0x00f6) { in HasHomeLED() 259 IsGameCubeFormFactor(int vendor_id, int product_id) in IsGameCubeFormFactor() argument 265 Uint32 id = MAKE_VIDPID(vendor_id, product_id); in IsGameCubeFormFactor() 277 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… in HIDAPI_DriverSwitch_IsSupportedDevice() argument 292 HIDAPI_DriverSwitch_GetDeviceName(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverSwitch_GetDeviceName() argument 732 …tx->m_bInputOnly = SDL_IsJoystickNintendoSwitchProInputOnly(device->vendor_id, device->product_id); in HIDAPI_DriverSwitch_OpenJoystick() 734 ctx->m_bHasHomeLED = HasHomeLED(device->vendor_id, device->product_id); in HIDAPI_DriverSwitch_OpenJoystick() 758 device->product_id == USB_PRODUCT_NINTENDO_SWITCH_PRO) { in HIDAPI_DriverSwitch_OpenJoystick() [all …]
|
A D | SDL_hidapi_gamecube.c | 54 …onst char *name, SDL_GameControllerType type, Uint16 vendor_id, Uint16 product_id, Uint16 version,… in HIDAPI_DriverGameCube_IsSupportedDevice() argument 56 if (vendor_id == USB_VENDOR_NINTENDO && product_id == USB_PRODUCT_NINTENDO_GAMECUBE_ADAPTER) { in HIDAPI_DriverGameCube_IsSupportedDevice() 64 HIDAPI_DriverGameCube_GetDeviceName(Uint16 vendor_id, Uint16 product_id) in HIDAPI_DriverGameCube_GetDeviceName() argument
|
/AliOS-Things-master/components/SDL2/src/hidapi/linux/ |
A D | hid.cpp | 34 pDst->product_id = pSrc->product_id; in CopyHIDDeviceInfo() 67 …fo HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 69 struct HIDUSB::hid_device_info *usb_devs = HIDUSB::hid_enumerate( vendor_id, product_id ); in hid_enumerate() 71 struct HIDRAW::hid_device_info *raw_devs = HIDRAW::hid_enumerate( vendor_id, product_id ); in hid_enumerate() 80 if ( usb_dev->vendor_id == raw_dev->vendor_id && usb_dev->product_id == raw_dev->product_id ) in hid_enumerate() 142 …evice * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *… in hid_open() argument 145 if ( ( pDevice = (hid_device *)HIDRAW::hid_open( vendor_id, product_id, serial_number ) ) != NULL ) in hid_open() 150 if ( ( pDevice = (hid_device *)HIDUSB::hid_open( vendor_id, product_id, serial_number ) ) != NULL ) in hid_open()
|
A D | hid.c | 221 unsigned short *vendor_id, unsigned short *product_id, in parse_uevent_info() argument 250 int ret = sscanf(value, "%x:%hx:%hx", bus_type, vendor_id, product_id); in parse_uevent_info() 464 …hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 546 (product_id == 0x0 || product_id == dev_pid)) { in hid_enumerate() 566 cur_dev->product_id = dev_pid; in hid_enumerate() 671 hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_nu… in hid_open() argument 677 devs = hid_enumerate(vendor_id, product_id); in hid_open() 681 cur_dev->product_id == product_id) { in hid_open()
|
/AliOS-Things-master/components/SDL2/src/joystick/windows/ |
A D | SDL_rawinputjoystick.c | 93 static SDL_bool RAWINPUT_IsDeviceSupported(Uint16 vendor_id, Uint16 product_id, Uint16 version); 101 Uint16 product_id; member 271 … type = SDL_GetJoystickGameControllerType("", device->vendor_id, device->product_id, -1, 0, 0, 0); in RAWINPUT_GetDeviceDriver() 308 device->product_id = (Uint16)rdi.hid.dwProductId; in RAWINPUT_AddDevice() 315 const Uint16 product = device->product_id; in RAWINPUT_AddDevice() 335 name = device->driver->GetDeviceName(device->vendor_id, device->product_id); in RAWINPUT_AddDevice() 457 RAWINPUT_IsDeviceSupported(Uint16 vendor_id, Uint16 product_id, Uint16 version) in RAWINPUT_IsDeviceSupported() argument 461 …SDL_GameControllerType type = SDL_GetJoystickGameControllerType("", vendor_id, product_id, -1, 0, … in RAWINPUT_IsDeviceSupported() 477 RAWINPUT_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version) in RAWINPUT_IsDevicePresent() argument 482 if (!RAWINPUT_IsDeviceSupported(vendor_id, product_id, version)) { in RAWINPUT_IsDevicePresent() [all …]
|
A D | SDL_rawinputjoystick_c.h | 24 extern SDL_bool RAWINPUT_IsDevicePresent(Uint16 vendor_id, Uint16 product_id, Uint16 version);
|
/AliOS-Things-master/components/SDL2/src/hidapi/hidapi/ |
A D | hidapi.h | 63 unsigned short product_id; member 146 …o HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id); 174 …evice * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *…
|
/AliOS-Things-master/components/SDL2/src/hidapi/ |
A D | SDL_hidapi.c | 408 pDst->product_id = pSrc->product_id; in LIBUSB_CopyHIDDeviceInfo() 430 pDst->product_id = pSrc->product_id; in PLATFORM_CopyHIDDeviceInfo() 537 …fo HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 555 usb_devs = LIBUSB_hid_enumerate(vendor_id, product_id); in hid_enumerate() 572 raw_devs = PLATFORM_hid_enumerate(vendor_id, product_id); in hid_enumerate() 578 raw_dev->product_id == usb_dev->product_id && in hid_enumerate() 623 …evice * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *… in hid_open() argument 633 (pDevice = (hid_device*) PLATFORM_hid_open(vendor_id, product_id, serial_number)) != NULL) { in hid_open() 641 (pDevice = (hid_device*) LIBUSB_hid_open(vendor_id, product_id, serial_number)) != NULL) { in hid_open()
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_tvoc_sensirion_sgp30.c | 143 int product_id = data[0] >> 4; in drv_sgp30_init_sensor() local 147 if (product_id == 1) { in drv_sgp30_init_sensor() 153 } else if (product_id == 0) { in drv_sgp30_init_sensor()
|
A D | drv_mag_temp_memsic_mmc3680kj.c | 102 static int mmc3680kj_validate_id(i2c_dev_t *drv, uint8_t product_id) in mmc3680kj_validate_id() argument 117 if (value != product_id) { in mmc3680kj_validate_id()
|
/AliOS-Things-master/components/SDL2/src/hidapi/windows/ |
A D | hid.c | 315 int hid_blacklist(unsigned short vendor_id, unsigned short product_id) in hid_blacklist() argument 330 if ((vendor_id == known_bad[i].vid) && (product_id == known_bad[i].pid)) { in hid_blacklist() 338 …fo HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 466 (product_id == 0x0 || attrib.ProductID == product_id) && in hid_enumerate() 550 cur_dev->product_id = attrib.ProductID; in hid_enumerate() 608 …evice * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *… in hid_open() argument 615 devs = hid_enumerate(vendor_id, product_id); in hid_open() 619 cur_dev->product_id == product_id) { in hid_open()
|
/AliOS-Things-master/components/SDL2/src/joystick/android/ |
A D | SDL_sysjoystick.c | 325 …(int device_id, const char *name, const char *desc, int vendor_id, int product_id, SDL_bool is_acc… in Android_AddJoystick() argument 346 if (HIDAPI_IsDevicePresent(vendor_id, product_id, 0, name)) { in Android_AddJoystick() 353 … = 0x%.4x, product = 0x%.4x, %d axes, %d hats\n", name, desc, vendor_id, product_id, naxes, nhats); in Android_AddJoystick() 388 if (vendor_id && product_id) { in Android_AddJoystick() 391 *guid16++ = SDL_SwapLE16(product_id); in Android_AddJoystick() 412 item->name = SDL_CreateJoystickName(vendor_id, product_id, NULL, name); in Android_AddJoystick()
|
A D | SDL_sysjoystick_c.h | 35 …(int device_id, const char *name, const char *desc, int vendor_id, int product_id, SDL_bool is_acc…
|
/AliOS-Things-master/components/SDL2/src/joystick/ |
A D | SDL_joystick_c.h | 65 extern SDL_bool SDL_IsJoystickNintendoSwitchProInputOnly(Uint16 vendor_id, Uint16 product_id); 68 extern SDL_bool SDL_IsJoystickSteamController(Uint16 vendor_id, Uint16 product_id);
|
/AliOS-Things-master/components/ble_host/ble_profiles/include/yoc/ |
A D | dis.h | 28 uint16_t product_id; /* Product ID. */ member
|
/AliOS-Things-master/components/SDL2/src/hidapi/mac/ |
A D | hid.c | 443 …hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 489 if ((vendor_id == 0x0 && product_id == 0x0) || in hid_enumerate() 490 (vendor_id == dev_vid && product_id == dev_pid)) { in hid_enumerate() 525 cur_dev->product_id = dev_pid; in hid_enumerate() 556 hid_device * HID_API_EXPORT hid_open(unsigned short vendor_id, unsigned short product_id, const wch… in hid_open() argument 563 devs = hid_enumerate(vendor_id, product_id); in hid_open() 567 cur_dev->product_id == product_id) { in hid_open()
|
/AliOS-Things-master/components/SDL2/src/hidapi/libusb/ |
A D | hid.c | 569 …hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 610 (product_id == 0x0 || product_id == dev_pid)) { in hid_enumerate() 710 cur_dev->product_id = dev_pid; in hid_enumerate() 750 hid_device * hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_nu… in hid_open() argument 756 devs = hid_enumerate(vendor_id, product_id); in hid_open() 760 cur_dev->product_id == product_id) { in hid_open()
|
/AliOS-Things-master/components/SDL2/src/hidapi/android/ |
A D | hid.cpp | 359 if ( pInfo->vendor_id == VALVE_USB_VID && pInfo->product_id == D0G_BLE2_PID ) in CHIDDevice() 869 pInfo->product_id = nProductId; in HID_DEVICE_MANAGER_JAVA_INTERFACE() 994 …fo HID_API_EXPORT * HID_API_CALL hid_enumerate(unsigned short vendor_id, unsigned short product_id) in hid_enumerate() argument 1001 if ( ( vendor_id == 0 && product_id == 0 ) || in hid_enumerate() 1002 ( vendor_id == info->vendor_id && product_id == info->product_id ) ) in hid_enumerate() 1022 …evice * HID_API_CALL hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *… in hid_open() argument
|
/AliOS-Things-master/components/SDL2/src/hidapi/hidtest/ |
A D | hidtest.cpp | 52 …%04hx\n path: %s\n serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, … in main()
|