Device::USB::PCSensor::HidTEMPer::Device - Generic device class


Device-USB-PCSensor-HidTEMPer documentation  | view source Contained in the Device-USB-PCSensor-HidTEMPer distribution.

Index


Top

Device::USB::PCSensor::HidTEMPer::Device - Generic device class

VERSION

Top

Version 0.02

SYNOPSIS

Top

None

DESCRIPTION

Top

This module contains a generic class that all HidTEMPer devices should inherit from, thereby keeping the implemented methods consistent and making it possible to use the same code to contact every supported device.

CONSTANTS

* CONNECTION_TIMEOUT

USB communication timeout, specified in milliseconds.

use constant CONNECTION_TIMEOUT => 60;

METHODS

* new( $usb_device )

Creates a new generic Device object.

* identifier()

This method is used to acquire the numerical value representing the device type identifier.

* internal()

Returns the corresponding Sensor object representing the internal sensor connected to the device. If the device does not have an internal sensor undef is returned.

* external()

Returns the corresponding Sensor object representing the external sensor connected to the device. If the device does not have an external sensor undef is returned.

* init()

Empty method that should be implemented in order to be able to initialize a object instance.

DEPENDENCIES

Top

This module internally includes and takes use of the following packages:

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

This module uses the strict and warning pragmas.

BUGS

Top

Please report any bugs or missing features using the CPAN RT tool.

FOR MORE INFORMATION

Top

None

AUTHOR

Top

Magnus Sulland < msulland@cpan.org >

ACKNOWLEDGEMENTS

Top

None

COPYRIGHT & LICENSE

Top


Device-USB-PCSensor-HidTEMPer documentation  | view source Contained in the Device-USB-PCSensor-HidTEMPer distribution.