Device...Device(3pm)

πŸ“¦
version 0.04 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to Device::USB::PCSensor::HidTEMPer::Device β€” it's the Generic device class, the blueprint, the main character template that all the other HidTEMPer devices are built from πŸŽ€

(this page lives in the User Contributed Perl Documentation, and honestly? iconic of it.)


✨ VERSION ✨

Version 0.02 πŸ¦‹


🌸 SYNOPSIS 🌸

None

like, literally none. there's nothing to show you here. move along, gorgeous πŸ’…


πŸ”₯ DESCRIPTION πŸ”₯

so this module is holding a generic class, right? and the whole vibe is that every HidTEMPer device is supposed to inherit from it. why? because that keeps all the implemented methods consistent across the board, and it makes it possible to use the exact same code to talk to every supported device 🫢

one class to rule them all. no cap.

🧁 CONSTANTS 🧁

  • CONNECTION_TIMEOUT β€” this is the USB communication timeout, and it's specified in milliseconds ⏱️ so like, that's how long we wait before we're like "okay bestie, guess you're not answering."

πŸ’« METHODS πŸ’«

  • new( $usb_device ) β€” creates a brand new generic Device object. fresh out the box, slay ✨
  • identifier() β€” this method is used to acquire the numerical value that represents the device type identifier πŸ”’
  • internal() β€” returns the corresponding Sensor object that represents the internal sensor connected to the device. but listen β€” if the device doesn't have an internal sensor, undef gets returned. no sensor, no vibes 😭
  • external() β€” returns the corresponding Sensor object that represents the external sensor connected to the device. same deal: if there's no external sensor on that device, undef comes back πŸ™ˆ
  • init() β€” an empty method that should be implemented in order to be able to initialize a object instance. yeah, it's giving placeholder. it's giving "your turn, bestie" πŸ’€

🧚 DEPENDENCIES 🧚

this module internally includes and takes use of the following packages, fr fr:

use Carp;
use Device::USB;
use Device::USB::Device;

and also β€” it uses the strict and warning pragmas πŸ‘‘


πŸ’€ BUGS πŸ’€

please report any bugs or missing features using the CPAN RT tool. we're not mad, we just want the tea πŸ“


🌈 FOR MORE INFORMATION 🌈

None


πŸ‘‘ AUTHOR πŸ‘‘

Magnus Sulland < msulland@cpan.org > πŸ’œ


πŸŽ€ ACKNOWLEDGEMENTS πŸŽ€

None


Copyright (c) 2010-2011 Magnus Sulland

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt 🫢


and that's the whole page, bestie β€” no notes. this was documented with perl v5.40.0, dated 2024-11-30, and yes, that header/footer combo was serving Device...Device(3pm) realness the entire time πŸ’–βœ¨

πŸ“¦ where this page comes from