MityDSP Documentation Index

MityDSP::tcDspOutputLatch Class Reference

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 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)

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:
eeAssert 
eeRelease 

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)


  
Generated on Fri Sep 23 16:33:52 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.