DC_USBHID_DEVICE_GET_PID(3)

πŸ“¦ version 0.9.0, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

dc_usbhid_device_get_pid β€” bestie, this one gets the product id (PID) of the USB HID device. πŸ’…

Okay so this is the dc_usbhid_device_get_pid(3) page, from the Library Functions Manual, and it’s giving β€œsimple getter, but make it iconic.” πŸŽ€


πŸ“š LIBRARY πŸ“š

This cutie lives in the library libdivecomputer. 🫢


🌸 SYNOPSIS 🌸

#include <libdivecomputer/usbhid.h>

unsigned int
dc_usbhid_device_get_pid(dc_usbhid_device_t *device);

πŸ’– DESCRIPTION πŸ’–

Get the product id (PID) of the USB HID device. It’s used for displaying, periodt. ✨

You need a valid usbhid device of type dc_usbhid_device_t, and you can retrieve one using dc_usbhid_iterator_new(3). No valid device, no PID moment β€” iykyk. πŸ¦‹


πŸ”₯ RETURN VALUES πŸ”₯

It returns the product id (PID) of the given usbhid_device. That’s the whole vibe. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Go peek at those too, bestie. 🌈


πŸŽ€ AUTHORS πŸŽ€

The libdivecomputer library was written by Jef Driesen, jef@libdivecomputer.org. πŸ’œ

This manpage is written by Vincent Hagen, vinnie@script4web.nl. 🌸


And that’s the page, bestie! This lil’ beauty came from the Debian manual page, dated June 5, 2020 β€” mwah, bye! πŸ’‹πŸ’–

πŸ“¦ where this page comes from