The Pedigree Project 0.1
Public Member Functions | Private Attributes | List of all members
Ps2MousePacketDecoder Class Reference

#include <Ps2MousePacket.h>

+ Collaboration diagram for Ps2MousePacketDecoder:

Public Member Functions

void reset ()
 
bool feed (uint8_t byte, Ps2MousePacket &packet)
 

Private Attributes

uint8_t m_Buffer [3]
 
size_t m_BufferIndex
 

Detailed Description

Decodes the standard three-byte PS/2 mouse packet format.

Definition at line 21 of file Ps2MousePacket.h.

Constructor & Destructor Documentation

◆ Ps2MousePacketDecoder()

Ps2MousePacketDecoder::Ps2MousePacketDecoder ( )

Definition at line 33 of file Ps2MousePacket.cc.

Member Function Documentation

◆ feed()

bool Ps2MousePacketDecoder::feed ( uint8_t  byte,
Ps2MousePacket packet 
)

Feeds one byte into the decoder.

Returns true when packet contains a complete decoded packet.

Definition at line 39 of file Ps2MousePacket.cc.

◆ reset()

void Ps2MousePacketDecoder::reset ( )

Definition at line 35 of file Ps2MousePacket.cc.

Member Data Documentation

◆ m_Buffer

uint8_t Ps2MousePacketDecoder::m_Buffer[3]
private

Definition at line 35 of file Ps2MousePacket.h.

◆ m_BufferIndex

size_t Ps2MousePacketDecoder::m_BufferIndex
private

Definition at line 36 of file Ps2MousePacket.h.


The documentation for this class was generated from the following files: