SpiSink Class Reference

#include <spisink.h>

Inheritance diagram for SpiSink:
Inheritance graph
[legend]
Collaboration diagram for SpiSink:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SpiSink (Net &ssNet, Net &sclkNet, Net &misoNet, bool clockIsIdleHigh=true, bool clockSampleOnLeadingEdge=true) throw ()

Private Member Functions

int Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0)
 Return nonzero if a breakpoint was hit.

Private Attributes

unsigned char _port
Pin _ss
Pin _sclk
Pin _miso
bool _ssState
bool _sclkState
bool _misoState
unsigned _state
unsigned char _sr
bool _clockIsIdleHigh
bool _clockSampleOnLeadingEdge
bool _prevClkState
bool _prevSS

Detailed Description

Definition at line 8 of file spisink.h.


Constructor & Destructor Documentation

SpiSink::SpiSink ( Net ssNet,
Net sclkNet,
Net misoNet,
bool  clockIsIdleHigh = true,
bool  clockSampleOnLeadingEdge = true 
) throw ()

Definition at line 12 of file spisink.cpp.

References Pin::PULLUP.


Member Function Documentation

int SpiSink::Step ( bool &  trueHwStep,
SystemClockOffset timeToNextStepIn_ns = 0 
) [private, virtual]

Return nonzero if a breakpoint was hit.

Implements SimulationMember.

Definition at line 42 of file spisink.cpp.

References _clockIsIdleHigh, _clockSampleOnLeadingEdge, _misoState, _port, _prevClkState, _prevSS, _sclkState, _sr, _ssState, _state, MISOBIT, SCLKBIT, and SSBIT.


Member Data Documentation

bool SpiSink::_clockIsIdleHigh [private]

Definition at line 19 of file spisink.h.

Referenced by Step().

Definition at line 20 of file spisink.h.

Referenced by Step().

Pin SpiSink::_miso [private]

Definition at line 13 of file spisink.h.

bool SpiSink::_misoState [private]

Definition at line 16 of file spisink.h.

Referenced by Step().

unsigned char SpiSink::_port [private]

Definition at line 10 of file spisink.h.

Referenced by Step().

bool SpiSink::_prevClkState [private]

Definition at line 21 of file spisink.h.

Referenced by Step().

bool SpiSink::_prevSS [private]

Definition at line 22 of file spisink.h.

Referenced by Step().

Pin SpiSink::_sclk [private]

Definition at line 12 of file spisink.h.

bool SpiSink::_sclkState [private]

Definition at line 15 of file spisink.h.

Referenced by Step().

unsigned char SpiSink::_sr [private]

Definition at line 18 of file spisink.h.

Referenced by Step().

Pin SpiSink::_ss [private]

Definition at line 11 of file spisink.h.

bool SpiSink::_ssState [private]

Definition at line 14 of file spisink.h.

Referenced by Step().

unsigned SpiSink::_state [private]

Definition at line 17 of file spisink.h.

Referenced by Step().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:53:07 2012 for Simulavr by  doxygen 1.6.3