NAME
Device::MindWave::Packet::Parser
DESCRIPTION
Provides for parsing packet payloads and returning appropriate instances of Device::MindWave::Packet implementations.
CONSTRUCTOR
- new
-
Returns a new instance of Device::MindWave::Packet::Parser.
PUBLIC METHODS
- parse
-
Takes the packet payload as an arrayref of bytes as its single argument. Returns a Device::MindWave::Packet object representing the packet.
The packet payload includes all the packet's data, except for the two initial synchronisation bytes, the packet length byte and the final checksum byte.