Production Test Program (PTP) for the LPC4088 Experiment Base Board

Dependencies:   EALib I2S LM75B SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

TestShiftreg Class Reference

TestShiftreg Class Reference

Test the shift register and the LEDs connected to it on the LPC4088 Experiment Base Board. More...

#include <TestShiftreg.h>

Public Member Functions

 TestShiftreg (PinName mosi=p5, PinName miso=p6, PinName sclk=p7, PinName cs=p30)
 Create an interface to the shift register.
bool runTest ()
 Test the shift register.
void output (uint8_t value)
 Set a value in the shift register.

Detailed Description

Test the shift register and the LEDs connected to it on the LPC4088 Experiment Base Board.

Definition at line 25 of file TestShiftreg.h.


Constructor & Destructor Documentation

TestShiftreg ( PinName  mosi = p5,
PinName  miso = p6,
PinName  sclk = p7,
PinName  cs = p30 
)

Create an interface to the shift register.

Definition at line 33 of file TestShiftreg.cpp.


Member Function Documentation

void output ( uint8_t  value )

Set a value in the shift register.

Definition at line 75 of file TestShiftreg.cpp.

bool runTest (  )

Test the shift register.

Returns:
true if the test was successful; otherwise false

Definition at line 40 of file TestShiftreg.cpp.