Class used to create an output latch interface (for use as a chip selector or other control line).
More...
#include <core/DspOutputLatch.h>
List of all members.
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)
|
Detailed Description
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.
- See also:
- tcDspOutputLatch Page
Member Enumeration Documentation
Enumeration defining the conventions for asserting and releasing a latch.
- Enumerator:
-
Member Function Documentation
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.
- Parameters:
-
[in] | ID | the ID of the output to configure |
[in] | value | non-zero drives high, 0 drivers low |
- Returns:
- - 0 on success
- gnBAD_ID if ID is not supported by device
Member Data Documentation
const int MityDSP::tcDspOutputLatch::gnBAD_ID = -1 |
|
static |
definition of error return code(s)