usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

LOHWD2xxUSBDMX Class Reference

Implementation of a HWBridge for the USBDMX.COM interface. More...

#import <LOHWD2xxUSBDMX.h>

Inheritance diagram for LOHWD2xxUSBDMX:

LOHWBridge

Public Member Functions

(id) - initWithIdentifier:
 Open a specific DMX Interface, and initlise it ready for use.
(NSString *) - versionString
 Get the version (copyright) string.
(unsigned char) - versionByte
 Get the versino byte for the interfacxe.
(BOOL) - reopen

Static Public Member Functions

(NSArray *) + interfaceIdentifiers
 Get a list of all possible hardware interfaces.

Protected Attributes

BOOL TX
 Flag to show if the Bridge is currently operating as a transmitter.
BOOL RX
 Flag to show if the Bridge is currently operating as a receiver.
unsigned char TXStartCode
 Current start code for TX.
unsigned char RXStartCode
 Current start code for RX.
unsigned int TXLastChannel
 Current last TX channel.
BOOL blackout
 Flag to see if we are currently in blackout.
unsigned char out_universe [513]
 Cached output universe, used with reopen.
NSString * serialNumber
 Serial number of the interface.
FT_HANDLE ftHandle
 The HTDI handler.
BOOL isOpen
 True if th interface is currently open.
unsigned char versionByte
 The version byte for this interface.
NSString * versionString
 The version string for the interface.
BOOL shouldReceiverBeRunning
 Flag to tell the receiver if it should be running.
NSThread * receiverThread
 The receiver Thread handle.
NSLock * threadRunningLock
 A thread lock used to sychronise the exiting of the receiver thread.
BOOL shouldTransmitterBeRunning
 Flag to tell the transmitter if it should be running.
NSThread * transmitterThread
 The receiver Thread handle.
NSLock * transmitterRunningLock
 A thread lock used to sychronise the exiting of the receiver thread.
pthread_mutex_t TXSentMutex
 The mutex for the TXSent condition.
pthread_cond_t TXSentCondition
 Condition to show if we have Sent TX.
BOOL TXSent
 Flag to show we are clear to send more DMX data.
BOOL TXData
 Flag to show a DMX value has changed.

Detailed Description

Implementation of a HWBridge for the USBDMX.COM interface.

This implementation uses the D2xx driver library as opposed to the VCP drivers

This in interface supports both TX and RX at the same time

See also:
http://www.usbdmx.com

Member Function Documentation

- (id) initWithIdentifier: (NSString *)  identifier  

Open a specific DMX Interface, and initlise it ready for use.

Parameters:
identifier The identifier to the device driver of the interface
A bridge should always be obtained via the hardware manager, and not directly.

YOU SHOULD NEVER NEED TO CALL THIS FUNCTION.

Returns:
The HW Bridge
See also:
LOHWManager

+ (NSArray *) interfaceIdentifiers  

Get a list of all possible hardware interfaces.

These identifiers can be passed into initWithIdentifier:

Returns:
An Array (as NSString objects) of identifiers

- (unsigned char) versionByte  

Get the versino byte for the interfacxe.

- (NSString *) versionString  

Get the version (copyright) string.


The documentation for this class was generated from the following files: