Ps2KeyboardHost  1.0.1
Allows you to read from one or more PS2-style keyboards on an Arduino.
ps2::NullDiagnostics Class Reference

This is the default class for diagnostic information for all the classes in this library. It's the class you want if want to drop diagnostic information on the floor (because, say, your device works plenty reliably and there's nothing to debug anymore). If you're not in that blessed place, then you can create your own class that implements all these methods and stashes the data somewhere. More...

#include <ps2_NullDiagnostics.h>

Public Member Functions

void packetDidNotStartWithZero ()
 
void parityError ()
 
void packetDidNotEndWithOne ()
 
void packetIncomplete ()
 
void sendFrameError ()
 
void startupFailure ()
 
void bufferOverflow ()
 
void incorrectResponse (ps2::KeyboardOutput scanCode, ps2::KeyboardOutput expectedScanCode)
 
void noResponse (ps2::KeyboardOutput expectedScanCode)
 
void noTranslationForKey (bool isExtended, KeyboardOutput code)
 
void sentByte (byte b)
 
void receivedByte (byte b)
 
void clockLineGlitch (uint8_t numBitsSent)
 

Static Public Member Functions

static NullDiagnosticsdefaultInstance ()
 

Detailed Description

This is the default class for diagnostic information for all the classes in this library. It's the class you want if want to drop diagnostic information on the floor (because, say, your device works plenty reliably and there's nothing to debug anymore). If you're not in that blessed place, then you can create your own class that implements all these methods and stashes the data somewhere.

Member Function Documentation

◆ bufferOverflow()

void ps2::NullDiagnostics::bufferOverflow ( )
inline

◆ clockLineGlitch()

void ps2::NullDiagnostics::clockLineGlitch ( uint8_t  numBitsSent)
inline

◆ defaultInstance()

static NullDiagnostics* ps2::NullDiagnostics::defaultInstance ( )
inlinestatic

◆ incorrectResponse()

void ps2::NullDiagnostics::incorrectResponse ( ps2::KeyboardOutput  scanCode,
ps2::KeyboardOutput  expectedScanCode 
)
inline

◆ noResponse()

void ps2::NullDiagnostics::noResponse ( ps2::KeyboardOutput  expectedScanCode)
inline

◆ noTranslationForKey()

void ps2::NullDiagnostics::noTranslationForKey ( bool  isExtended,
KeyboardOutput  code 
)
inline

◆ packetDidNotEndWithOne()

void ps2::NullDiagnostics::packetDidNotEndWithOne ( )
inline

◆ packetDidNotStartWithZero()

void ps2::NullDiagnostics::packetDidNotStartWithZero ( )
inline

◆ packetIncomplete()

void ps2::NullDiagnostics::packetIncomplete ( )
inline

◆ parityError()

void ps2::NullDiagnostics::parityError ( )
inline

◆ receivedByte()

void ps2::NullDiagnostics::receivedByte ( byte  b)
inline

◆ sendFrameError()

void ps2::NullDiagnostics::sendFrameError ( )
inline

◆ sentByte()

void ps2::NullDiagnostics::sentByte ( byte  b)
inline

◆ startupFailure()

void ps2::NullDiagnostics::startupFailure ( )
inline

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