NAME
Device::MindWave::Packet::ThinkGear::DataValue
DESCRIPTION
Interface module for MindWave ThinkGear data values.
PUBLIC METHODS
- new
-
Takes a byte arrayref and an index into that arrayref as its arguments, representing the payload of the data value. Returns a new instance of the relevant data value. Dies on error.
- as_string
-
Returns the data value's details as a human-readable string.
- as_hashref
-
Returns the actual data value(s) from the data value as a hashref. (Most data values only have one actual data value, but at least one has multiple, hence this method.)
For a given module, the key(s) in this hashref will begin with the final segment of the module's name.
- as_bytes
-
Returns the data value's payload as an arrayref of bytes.
- length
-
Returns the number of bytes in the data value's payload.