Class used to create an output latch interface (for use as a chip selector or other control line). More...
#include <core/DspOutputLatch.h>
Public Types | |
enum | teLatch { eeAssert = 0, eeRelease = 1 } |
Enumeration defining the conventions for asserting and releasing a latch. More... | |
Public Member Functions | |
virtual int | SetOutput (unsigned int ID, unsigned int value)=0 |
This interface sets a latched output keyed by ID to high or low based on the value provided. | |
Static Public Attributes | |
static const int | gnBAD_ID = -1 |
definition of error return code(s) |
Class used to create an output latch interface (for use as a chip selector or other control line).
Note that the convention is for latches to be asserted active-low. Use of the provided enumeration to assert/release locks is recommended.
virtual int MityDSP::tcDspOutputLatch::SetOutput | ( | unsigned int | ID, | |
unsigned int | value | |||
) | [pure virtual] |
This interface sets a latched output keyed by ID to high or low based on the value provided.
[in] | ID | the ID of the output to configure |
[in] | value | non-zero drives high, 0 drivers low |
const int MityDSP::tcDspOutputLatch::gnBAD_ID = -1 [static] |
definition of error return code(s)